Interesting recovery frustrations

Goh Lip g.lip at gmx.com
Fri Dec 17 02:06:21 UTC 2010


On Fri, 17 Dec 2010 02:55:28 +0800, MR ZenWiz <mrzenwiz at gmail.com> wrote:


> Actually, no.  My fstab uses labels to find and mount the drives, not
> UUIDs.  That way I don't have to worry about things like
> reformatting-changed UUIDs and other nit-witticisms of the latest
> whizzbang new way to screw up a perfectly good working system that
> won't get changed out from underneath me.
>
> That was also among the changes I made to the grub.cfg - to use the
> labels for the kernel to choose where / was - and that was what
> "saved" me on the last go around.
>
> I have since run update-grub (of course) to ensure that this will be
> less likely to clobber me next time.
>
> Thanks to all for your input - it's been helpful.
>


To modify Avi's 4 line command to use labels,

search --no-floppy --label --set xxx
linux /boot/vmlinuz-2.6.32-2 root=LABEL=xxx ro
nitrd /boot/initrd.img-2.6.32-2
boot

or on different /boot and / partitions

search --no-floppy --label --set </bootlabel>
linux /vmlinuz-2.6.32-2 root=LABEL=</label> ro
nitrd /initrd.img-2.6.32-2
boot

or use configfile......

search --no-floppy --label --set </bootlabel>
configfile /boot/grub/grub.cfg


[for diff /boot]

search --no-floppy --label --set </bootlabel>
configfile /grub/grub.cfg

Regards - Goh Lip




-- 
I used to have an open mind,
but my brains kept falling out.




More information about the ubuntu-users mailing list