On 2014-04-25 13:06, roberto68 wrote:
>
> but I think there must be way to boot it anyway - set root=hd0,6 (the /
> partition) and specify that initrd and vmlinuz are somwhere else in
> theese lines of grub.cfg file
> Code:
> --------------------
>
> linux /vmlinuz-3.14.0-23.gfa168d7-desktop root=UUID=7b9d027c-1093-466c-8be4-aea8f94863bc quiet quiet liveinstall resume=/dev/disk/by-id/ata-WDC_WD7500BPKT-00PK4T0_WD-WXF1E32MVUC9-part5 splash=silent quiet showopts
> echo ‘Loading initial ramdisk …’
> initrd /initrd-3.14.0-23.gfa168d7-desktop
>
>
>
> --------------------
You have a separate boot partition. Both the kernel and initrd must
reside in that partition, same one as the grub files, not in the root
partition - which is btrfs, I understand. The boot partition is the only
one that grub can access.
A different issue is that the kernel has to be informed of where the
root filesystem is.
On the other hand, are you sure you want the “liveinstall” option in there?
Assuming this is grub2, this is what I have (also with a separate grub
partition)
> set root='hd0,msdos3'
> if x$feature_platform_search_hint = xy ]; then
> search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3' 6d9d4270-3fd1-4027-9316-c614d6c090e4
> else
> search --no-floppy --fs-uuid --set=root 6d9d4270-3fd1-4027-9316-c614d6c090e4
> fi
> echo 'Loading Linux 3.11.10-7-desktop ...'
> linux /vmlinuz-3.11.10-7-desktop root=UUID=00eb9a40-d067-459e-a22f-1d3b667dddbb resume=/dev/disk/by-label/b_swap splash=verbose showopts
> echo 'Loading initial ramdisk ...'
> initrd /initrd-3.11.10-7-desktop
6d9d4270-3fd1-4027-9316-c614d6c090e4 -> ../../sdc3
00eb9a40-d067-459e-a22f-1d3b667dddbb -> ../../sdc9
sdc3 is my boot partition (one of them), and sdc9 is my root partition
(one of them):
Telcontar:~ # mount | grep "sdc3\|sdc9"
/dev/sdc9 on /other/test_a2 type ext4 (rw,relatime,data=ordered)
/dev/sdc3 on /other/test_a2/boot type ext2 (rw,relatime)
Telcontar:~ #
But you can not configure this in /boot/grub2/grub.cfg, because it is
automatically generated. Nor in /etc/default/grub either. I fact, I
don’t know where, except that YaST does it.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)