[TriLUG] Any Kubuntu/Ubuntu users explain to me why my IDE drives show up as sda?

Josh Vickery josh at vickeryj.com
Fri Apr 18 07:41:14 EDT 2008


>  My guess is that they don't have a good mechanism for changing
>  everything due to a kernel upgrade, /etc/fstab might have to change
>  etc...

It looks like Ubuntu put something in to attempt to deal with this.
Instead of listing disks by path in /etc/fstab, they use a UUID:

# /dev/sda1
UUID=342c5e8f-efcc-4636-9845-010ec2d20b7c /               ext3
defaults,noatime,errors=remount-ro 0       1

This seems like a good idea, as the UUID is not supposed to change if
you change from /dev/hda1 /dev/sda1, but I actually ran into an issue
with it recently.

I changed the size of my swap partition and that, combined with my
unawareness of /etc/initramfs-tools/conf.d/resume made the UUID of my
swap partition change, causing my machine to not see my hibernate
image when resuming and not mount the swap space.

A little digging seems to indicated that mkswap generates a UUID. My
response was to change my fstab and /etc/initramfs-tools/conf.d/resume
to use the device path rather than the UUID for my swap/resume
partition since at least that doesn't change when I change the
contents of the partition.

Josh



More information about the TriLUG mailing list