External Drive Mounting to Wrong Point Even Though It's In fstab Ubuntu 8.10
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
External Drive Mounting to Wrong Point Even Though It's In fstab Ubuntu 8.10
I've searched everywhere I could and I can't seem to find this specific problem. I have two external drives and one internal drive (in addition to my main drive). The three drives are all setup to be mounted in fstab.
However, I just restarted my computer and one of the drives that used to be at /dev/sdg1 is now at /dev/sdc1. How do I get it to mount to the correct point everytime I reboot?
Side note, I've been using the computer for a couple months and haven't had this problem until now.
Having external drives mount automatically when you boot may not be a good idea. If the drive isn't connected, the "mount -a" will fail and the boot process will abort. You can use the "noauto" mount option in the /etc/fstab entry to prevent this.
For external drives, use "UUID=<filesystem UUID#>" instead of the device node in the first field of /etc/fstab. You can find this out by using the "udevinfo" command. For example, to find the UUID of the filesystem mounted on /dev/sdb1, use "udevinfo -q env -n /dev/sdb1". The entry will look like your entry for /dev/sda1 that you posted. Then you can mount the external drive even if it has been assigned a different device node.
On my system (openSUSE), if there is an entry in /etc/stab, then HAL & friends will not automount the drive. If you manually mount an external drive, don't mount under /media. Leave that for the automount system. I think that Ubuntu is configured differently and may modify /etc/fstab, but this may be an earlier version.
Also check if you have a program called "halmount". It is a very convenient program (script actually) that you run as a normal user. You can use it to trigger the automount system to mount a partition by giving its node or its label. You can use it to mount a dvd or cdrom or to eject. You may not have it however. ( may only be on certain rpm based systems ) I'm just bringing it up, because if you do have it, using it to mount, unmount or eject media is very handy.
So there's no way to force it to mount to the same point everytime? Or if I remove both of my external drives from the fstab they will mount to the same spot?
The reason it's a problem is I have playlists on my main drive that reference files from these drives. If the drive doesn't mount to the same spot everytime, my playlists break.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.