fstab

Terence Simpson stdin at stdin.me.uk
Thu Jul 26 05:13:41 UTC 2007


Ralph Alvy wrote:
> Ralph Alvy wrote:
>   
>> Well, now I notice that when I reboot, the device names switch back from
>> hda... to sda... again. Then if I edit fstab, to accomodate this, the next
>> boot it switches back to hda... names again. I guess I should have kept
>> those UUIDs. I don't experience this with any other linux distro (Fedora
>> Core, Arch, Slackware, for instance), and I use hal and udev in all of
>> them. I'll have to read up on UUIDs and see how to generate them anew and
>> then use them in fstab.
>>     
>
> Okay, I found out how to get me UUIDs back by reading this page:
>
>         http://tinyurl.com/2utvl9
>
> The command was 
>
>         sudo vol_id -u device
>
> Now I have UUIDs where I need them in my fstab and all is working
> consistently now. Thanks to all for pushing me not to fight UUIDs and learn
> how to use them.
>
>
>   
As I remember, any kernel before 2.6.20 will use hdX (for IDE devices) 
and 2.6.20 on will use sda.
So if you are booting into different kernel versions then UUIDs are the 
best bet.
Also, to save you time, you can use the command "sudo blkid" to print 
the UUIDs of all disks/partitions in one go.

Terence





More information about the kubuntu-users mailing list