How do I permanently mount local device?
I'm been handed the responsibility of administering my own development systems. I know very little about managing a Linux system. At present, there is an unused filesystem called /export/kits mounted on a device called /dev/sba3, but I don't see an entry in /etc/fstab for it. It mounts every time the system boots. I want to unmount /export/kits and create a root level filesystem called /apps on that device, permanently, so that /apps, not /export/kits, is associated with /dev/sda3 at boot time. Any help is appreciated.
|
Quote:
Regardless, if you open the fstab file in an editor, you should be able to look at the existing lines, and copy one, making the necessary changes. Step one would be to create the /apps directory. Step two would be to associate /dev/sda3 with /apps. A line like this: Code:
/dev/sda3 /apps ext3 acl,user_xattr 1 2 Since you got handed the admin responsibilities, that implies that you've got other admins there. One of them can probably give you a hand, or spend five minutes with you. |
Quote:
|
Quote:
|
Thanks TB0ne. I always used tabs on fstab, so I never realized such a issue existed. I will keep that in mind if anyone experiences some oddities with fstab.
-Jessica- |
Quote:
Quote:
Can you simply mount it by hand to see what happens? |
maybe symlink (ln -s /export/kits /apps) would be the lazy way of dealing with it.
assuming redhat: maybe some genius decided it was better to mount it via /etc/rc.d rather than in fstab. maybe doing this will find the culprit: Code:
find /etc/rc.d -exec grep -l kits '{}' \; else, perhaps putting a few lines in /etc/rc.d/rc.local will get you what you want (always backup any file before editing it). Code:
umount -f /dev/sda3 |
I found an entry in a file called blkid.tab that associates /exports/kits with a label /exports/kits1. Unfortunately I don't know the significance, if any, of this.
PS - There is one system administrator available to me, but that person doesn't seem to know how to go about accomplishing what I want in this case (or in just about any other matter I've had so far). No help there I'm afraid. PPS - The system in question is running RedHat Linux 4.4. |
Quote:
Was this in a home directory in someone's account? Was it in another location? What was in the file? Please post the file. |
All times are GMT -5. The time now is 04:54 AM. |