Discussion:
[Grml] Boot from iso option not working with grub2
Theodotos Andreou
2010-11-18 17:17:36 UTC
Permalink
Guys I want to have a grml small iso under the /boot/iso partition in
Debian 6.0 with Grub2. My config in /boot/grub/grub.cfg is:

menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}

When I boot I get:

"error: cannot read the Linux header"

Any idea what am i doing wrong?

Theo
Michael Prokop
2010-11-18 23:52:59 UTC
Permalink
Post by Theodotos Andreou
Guys I want to have a grml small iso under the /boot/iso partition in
menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}
"error: cannot read the Linux header"
Any idea what am i doing wrong?
The 'hd0,0' can't be valid as grub2 starts counting partition numbers
with 1.

Try to reduce your grub configuration to a minimum, see
http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/ and
http://www.supergrubdisk.org/wiki/Loopback.cfg#How_do_you_use_a_loopback.cfg_to_boot_an_iso.3F
for further details regarding the loopback feature.

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mur.at/pipermail/grml/attachments/20101119/b3991a07/attachment.pgp>
Theodotos Andreou
2010-11-18 17:17:36 UTC
Permalink
Guys I want to have a grml small iso under the /boot/iso partition in
Debian 6.0 with Grub2. My config in /boot/grub/grub.cfg is:

menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}

When I boot I get:

"error: cannot read the Linux header"

Any idea what am i doing wrong?

Theo
Michael Prokop
2010-11-18 23:52:59 UTC
Permalink
Post by Theodotos Andreou
Guys I want to have a grml small iso under the /boot/iso partition in
menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}
"error: cannot read the Linux header"
Any idea what am i doing wrong?
The 'hd0,0' can't be valid as grub2 starts counting partition numbers
with 1.

Try to reduce your grub configuration to a minimum, see
http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/ and
http://www.supergrubdisk.org/wiki/Loopback.cfg#How_do_you_use_a_loopback.cfg_to_boot_an_iso.3F
for further details regarding the loopback feature.

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml/attachments/20101119/b3991a07/attachment-0002.pgp>
Theodotos Andreou
2010-11-18 17:17:36 UTC
Permalink
Guys I want to have a grml small iso under the /boot/iso partition in
Debian 6.0 with Grub2. My config in /boot/grub/grub.cfg is:

menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}

When I boot I get:

"error: cannot read the Linux header"

Any idea what am i doing wrong?

Theo
Michael Prokop
2010-11-18 23:52:59 UTC
Permalink
Post by Theodotos Andreou
Guys I want to have a grml small iso under the /boot/iso partition in
menuentry 'grml' {
insmod part_msdos
insmod ext2
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set <uuid>
echo 'Loading GRML Small'
loopback loop (hd0,0)/iso/grml-small_2010.04.iso
echo 'Loading Kernel'
linux (loop)/boot/grmlsmall/linux26 boot=live vga=791 noeject noprompt
echo 'Loading ramdisk'
initrd (loop)/boot/grmlsmall/initrd.gz
}
"error: cannot read the Linux header"
Any idea what am i doing wrong?
The 'hd0,0' can't be valid as grub2 starts counting partition numbers
with 1.

Try to reduce your grub configuration to a minimum, see
http://michael-prokop.at/blog/2009/05/25/boot-an-iso-via-grub2/ and
http://www.supergrubdisk.org/wiki/Loopback.cfg#How_do_you_use_a_loopback.cfg_to_boot_an_iso.3F
for further details regarding the loopback feature.

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml/attachments/20101119/b3991a07/attachment-0003.pgp>
Loading...