PDA

View Full Version : [ubuntu] Strange fstab problem after 8.10 upgrade



whyamihere
November 1st, 2008, 11:19 AM
Hi,
Upgraded to 8.10 last week, and I'm having some trouble with my hard drives.

I run the OS off a SATA disk, sda, this boots fine. I also have a second SATA disk containing all my media files. The problem is that this second disk seems to alternate between being called sdb and sdc for some reason. As a result, when I put it into fstab, the next time it switches it will not be mounted because it's not there. I can mount it fine using the mount command having found out what name it's using in gParted.
There is also a third disk in there, which appears to be displaying wrong. It's a PATA drive, so should be labelled as hda in theory, but it's instead being labelled as sd*, and switching between sdb and sdc depending on what my storage drive isn't taking up. (This third drive contains my test setup which I can boot into separately when I don't want to risk breaking my main installation).
I basically just need a way to make sure that the second and third drives keep the same drive name so that I can create a proper entry for them in fstab.
Thanks in advance, Chris.

PA_Dummy
November 4th, 2008, 09:15 PM
I had the same problem.

I changed GRUB to boot kernel 2.6.24-21-generic.

The install default was kernel 2.6.27-7-generic.

This solved the problem

__

whyamihere
November 4th, 2008, 09:22 PM
Ah, that might be a problem, I allowed the installer to removed the .24 kernel as part of the cleanup process.

Thanks for that. If it's a kernel issue then there's not a lot I can do until the next release as the .24 kernel's been removed from the repos.

jimv
November 4th, 2008, 10:17 PM
The 24 kernel is Hardy's kernel. DOn't use it.

The solution is rather simple. Instead of using /dev/sdb or /dev/sdc in your fstab file, use the UUID for that drive (doesn't change). The line will look like this:

UUID=bf3ecdec-ca1c-4f1d-86d0-b7540f3e6420 /media/storage ext3 users 0 0

You can get the UUID by typing 'sudo blkid' in the command line.