2012/9/20 Tomasz Sekściński <tom...@sekscinski.pl>:
> Hi,
>
> I copied entire LFS instalation from hdd to USB stick and installed
> grub into USB.
>
> My grub.cfg contains entry:
>
> menuentry 'GNU/Linux, with Linux 3.2.6-lfs-7.1'
> {
> set root='(/dev/sdb,msdos1)'
> search --no-floppy --fs-uuid --set=root
> f53d22a3-c6a4-41d9-bd02-de1397f2a85d
> echo 'Loading Linux 3.2.6-lfs-7.1 ...'
> linux     /boot/vmlinuz rootdelay=20 root=/dev/sdb1 ro
> }
>
> The system boots properly from USB stick but on another
> laptop root partition /dev/sdb1 isn't correct anymore.
> I could make moore entries in grub.cfg with sdc1, sdd1 etc. of course
> but i don't like this solution.
> I am trying without success this way:
>
> menuentry 'GNU/Linux, with Linux 3.2.6-lfs-7.1'
> {
> set
> root='(/dev/disk/by-uuid/f53d22a3-c6a4-41d9-bd02-de1397f2a85d,msdos1)'
> search --no-floppy --fs-uuid --set=root
> f53d22a3-c6a4-41d9-bd02-de1397f2a85d echo 'Loading Linux
> 3.2.6-lfs-7.1 ...' linux     /boot/vmlinuz rootdelay=20
> root=/dev/disk/by-uuid/f53d22a3-c6a4-41d9-bd02-de1397f2a85d ro }
>
> It gives mi kernel panic
> Grub in his early stage seems to not recognize usb stick uuid.
>
> In grub commandline ls /dev/disk/by-uuid not showing
> f53d22a3-c6a4-41d9-bd02-de1397f2a85d device.
>
> How can i boot using uuid instead /dev/sdX? Or is the other way to by
> more independent of /dev/sdX naming?
>
> --
> Pozdrawiam,
> Tomasz Sekściński
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page

use
search.fs_uuid f53d22a3-c6a4-41d9-bd02-de1397f2a85d root
instead of
set root=blablabla
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to