Added IDE card, drive numbering screwed up

Derek Broughton news at pointerstop.ca
Sun Jul 15 19:57:51 UTC 2007


GyroTech wrote:

>> 
>> OK, but that really isn't a solution.  Next time you change something,
>> you could find yourself with the same problem (and if you're anything
>> like me, you'll have to google for the solution again, because you won't
>> remember how you fixed it).
>> 
>> The solution is to make fstab and grub recognize your partitions using
>> UUID rather than /dev IDs.
> 
> Ok, this sounds more promising.. I know under Ubuntu fstab uses UUIDs by
> default, or at least it does on my install since they are listed by UUID
> (at least / and swap are). So in my grub menu.lst, I just replace
> "kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda1 ro quiet splash
> " with "kernel /boot/vmlinuz-2.6.17-11-generic
> root=UUID=bdf12a57-958f-47d0-a976-2f8908de03a4 ro quiet splash"
> 
> But won't this get overwritten every time a new kernel comes down?? Is
> there a way to conf grub to always use uuids??

You should have a line like: 

# kopt=root=/dev/hda1 ro quiet splash

Change that to use the UUID option, then "update-grub", which runs everytime
you install a kernel, will update the automatic kernel lines correctly.
-- 
derek





More information about the ubuntu-users mailing list