fstab, mtab, and Gnome
Greetings,
I'm having a little trouble understanding and how to fix this quagmire. I'm simply trying to change the default mount point of a USB drive. I am working with SuSE Enterprise Dektop (SLED) 10.2. I have one harde drive (sda) in the laptop with 3 partiticions (one ntfs for windows, one fat for data, and one reiserfs for Linux). I also have one more hard drive and internal laptop drive (sdb) with 1 partition (one reiserfs for data) in a vantec sx enclosure connecting to my laptop by way of USB2.0. If I leave my fstab file alone Code:
/dev/sda6 / reiserfs acl,user_xattr 1 1 Code:
/dev/sda6 / reiserfs rw,acl,user_xattr 0 0 Code:
/dev/sdb1 /media/MoreStuff reiserfs auto,user,rw 0 0 Can someone please explain the difference between fstab and mtab and where the default mount points of USB devices are stored? Thanks in advance. |
fstab is the filesystem table. mtab is the mount table, listing only mounted devices. You can edit fstab to change mount points, but you shouldn't mess with mtab. I don't know how to change the default mount point of a usb device off hand, but I think it is usually mounted as /media/<volume label>. If it's getting mounted as /media/disk it might mean it has no label. Changing the label may be one way to solve your problem.
My other thought is that I think use drives are represented in fstab by this line: Code:
usbfs /proc/bus/usb usbfs noauto 0 0 |
Hi,
/etc/fstab stands for FileSystemTABle. All information about mount points, filesystems of volumes are stored in here, like default mountpoints. /etc/mtab stands for MountTABle. The only job of /etc/mtab is to record the filesystems that are currently mounted. !Never edit /etc/mtab directly! So to change the default mountpoint of your USB disk, find out what device it is. It's probably going to be /dev/sdb1 for you. Your system will automount it in /media if there is no entry. It appears you entry was correct, but try taking the 'auto' part out. It may be trying to mount it twice. good luck, rabbit2345 |
/etc/fstab records how the devices should be mounted. It is populated by the system administrator.
/etc/mtab tells which devices are actually mounted, and on which mountpoint. When you issue the command 'mount' with no arguments, it parse /etc/mtab to answer you. When you issue it with arguments it mounts some device according to either /etc/fstab or the mount point you indicate. To know more: 'man fstab' and 'man mount' |
All times are GMT -5. The time now is 10:00 AM. |