Skip to contentSkip to conversation

booting iso image having syslinux

DISCUSSION J.Bakshi 5 participants 18 messages Aug 6, 2009 – Aug 9, 2009

lore
Share & tools
lore

J.Bakshi

author
#0 lore raw

Hello list,

GRUB2 has a cool feature to boot .iso image. It is really a cool option as we can simply put the .iso and test it without making a cd. Some of the .iso has syslinux inbuilt. Like live .iso of gparted and dban. How can we manage those .iso ? We need to call the syslinux.cfg in those distros to get the boot option ( ex- dban ). Could any one kindly focus on this issue ?

Thanks

#1 lore raw
Quoted 9 lines · J.Bakshi

Hello list,

GRUB2 has a cool feature to boot .iso image.  It is really a cool option as we can simply put the .iso and test it without making a cd. Some of the .iso has syslinux inbuilt. Like live .iso of gparted and dban. How can we manage those .iso ? We need to call the syslinux.cfg in those distros to get the boot option ( ex- dban ). Could any one kindly focus on this issue ?

It's not an issue. Just bypass the syslinux and boot the kernel you want with options you want and initrd you want using linux and initrd commands

Quoted 8 lines

Thanks

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
author
#2 lore raw
Quoted 10 lines · Vladimir 'phcoder' Serbinenko
Quoted 9 lines · J.Bakshi

Hello list,

GRUB2 has a cool feature to boot .iso image.  It is really a cool option as we can simply put the .iso and test it without making a cd. Some of the .iso has syslinux inbuilt. Like live .iso of gparted and dban. How can we manage those .iso ? We need to call the syslinux.cfg in those distros to get the boot option ( ex- dban ). Could any one kindly focus on this issue ?

Quoted 5 lines

It's not an issue. Just bypass the syslinux and boot the kernel you want with options you want and initrd you want using linux and initrd commands

Quoted 2 lines

Thanks

I have done that and here is the menu entry

```````````````````
menuentry "gparted"
{
loopback loop (hd0,2)/gparted-live-0.4.5-2.iso
linux (loop)/live/vmlinuz1 union=aufs boot=live noswap noprompt
vga=791 toram ip=frommedia nolocales isofrom=/gparted-live-0.4.5-2.iso
initrd (loop)/live/initrd1.img
}
`````````````````````````

and grub reports "invalid magic number " Obviously the gparted-live-0.4.5-2.iso is located at the second partition of my usb stick and the file system is reiserfs. The options with kernel is collected from the syslinux.cfg file

#3 lore raw
Quoted 18 lines
Quoted 5 lines

It's not an issue. Just bypass the syslinux and boot the kernel you want with options you want and initrd you want using linux and initrd commands

Quoted 2 lines

Thanks

I have done that and here is the menu entry

```````````````````
menuentry "gparted"
{
loopback loop (hd0,2)/gparted-live-0.4.5-2.iso
linux (loop)/live/vmlinuz1 union=aufs boot=live noswap noprompt
vga=791 toram ip=frommedia nolocales isofrom=/gparted-live-0.4.5-2.iso
initrd (loop)/live/initrd1.img
}
`````````````````````````
Quoted 5 lines

and grub reports "invalid magic number "  Obviously the gparted-live-0.4.5-2.iso is located at the second partition of my usb stick and the file system is reiserfs.  The options with kernel is collected from the syslinux.cfg file

Are you sure your kernel /live/vmlinuz1 is correct? Check that iso was copied correctly (chacksum)

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
author
#4 lore raw
Quoted 18 lines · Vladimir 'phcoder' Serbinenko
Quoted 18 lines
Quoted 5 lines

It's not an issue. Just bypass the syslinux and boot the kernel you want with options you want and initrd you want using linux and initrd commands

Quoted 2 lines

Thanks

I have done that and here is the menu entry

```````````````````
menuentry "gparted"
{
loopback loop (hd0,2)/gparted-live-0.4.5-2.iso
linux (loop)/live/vmlinuz1 union=aufs boot=live noswap noprompt
vga=791 toram ip=frommedia nolocales isofrom=/gparted-live-0.4.5-2.iso
initrd (loop)/live/initrd1.img
}
`````````````````````````
Quoted 8 lines
Quoted 5 lines

and grub reports "invalid magic number "  Obviously the gparted-live-0.4.5-2.iso is located at the second partition of my usb stick and the file system is reiserfs.  The options with kernel is collected from the syslinux.cfg file

Are you sure your kernel /live/vmlinuz1 is correct? Check that iso was copied correctly (chacksum)

Quoted 1 line

Thanks for your kind guidance.
The kernel path is correct. But after getting your response, I have downloaded the iso again and overwrite the existing one in usb-stick. Also check the md5sum and it is correct. And something *NEW* has happend this time. No more error like before ( invalid magic number ) . Though not sucees yet. Now grub display "Linux-bzimage" and just stick there. No further progress.

#5 lore raw
Quoted 8 lines

Thanks for your kind guidance.
The kernel path is correct. But after getting your response, I have downloaded the iso again and overwrite the existing one in usb-stick. Also check the md5sum and it is correct. And something *NEW* has happend this time. No more error like before ( invalid magic number ) .  Though not sucees yet. Now grub display "Linux-bzimage" and just stick there. No further progress.

Do you use amd64 kernel? If so check that your CPU is amd64-capable. amd64 linux kernel has a behaviour of just hanging on non-amd64 capable CPU instead of outputting an error message

Quoted 6 lines

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
author
#6 lore raw
Quoted 11 lines · On Thu, 6 Aug 2009 13:51:46 +0200 "Vladimir 'phcoder' Serbinenko"…
Quoted 8 lines

Thanks for your kind guidance.
The kernel path is correct. But after getting your response, I have downloaded the iso again and overwrite the existing one in usb-stick. Also check the md5sum and it is correct. And something *NEW* has happend this time. No more error like before ( invalid magic number ) . __Though not sucees yet. Now grub display "Linux-bzimage" and just stick there. No further progress.

Do you use amd64 kernel? If so check that your CPU is amd64-capable. amd64 linux kernel has a behaviour of just hanging on non-amd64 capable CPU instead of outputting an error message

Nope, it is kernel 2.6.29-4 from backports.undebian.org and iso file is "isohybrided" ( source http://sourceforge.net/project/shownotes.php?release_id=683279 )

I have tested my pendrive with both 32 and 64 bit machine and the same problem as before. I have rechecked the path inside iso ( by mounting with loopback and I'm sure there is no error in grub config)

#7 lore raw
In reply to J.Bakshi

Am Donnerstag, den 06.08.2009, 17:18 +0530 schrieb J.Bakshi:

Quoted 29 lines
Quoted 18 lines · Vladimir 'phcoder' Serbinenko
Quoted 18 lines
Quoted 5 lines

It's not an issue. Just bypass the syslinux and boot the kernel you want with options you want and initrd you want using linux and initrd commands

Quoted 2 lines

Thanks

I have done that and here is the menu entry

```````````````````
menuentry "gparted"
{
loopback loop (hd0,2)/gparted-live-0.4.5-2.iso
linux (loop)/live/vmlinuz1 union=aufs boot=live noswap noprompt
vga=791 toram ip=frommedia nolocales isofrom=/gparted-live-0.4.5-2.iso
initrd (loop)/live/initrd1.img
}
`````````````````````````
Quoted 8 lines
Quoted 5 lines

and grub reports "invalid magic number " Obviously the gparted-live-0.4.5-2.iso is located at the second partition of my usb stick and the file system is reiserfs. The options with kernel is collected from the syslinux.cfg file

Are you sure your kernel /live/vmlinuz1 is correct? Check that iso was copied correctly (chacksum)

Quoted 1 line
Quoted 7 lines

Thanks for your kind guidance.
The kernel path is correct. But after getting your response, I have downloaded the iso again and overwrite the existing one in usb-stick. Also check the md5sum and it is correct. And something *NEW* has happend this time. No more error like before ( invalid magic number ) . Though not sucees yet. Now grub display "Linux-bzimage" and just stick there. No further progress.

Try loading the kernel with the old linux loader with linux16 and initrd16.

Signature · 2 lines
Felix Zielcke
Proud Debian Maintainer
#8 lore raw
In reply to J.Bakshi
Quoted 7 lines · J.Bakshi

Thanks for your kind guidance.
The kernel path is correct. But after getting your response, I have downloaded the iso again and overwrite the existing one in usb-stick. Also check the md5sum and it is correct. And something *NEW* has happend this time. No more error like before ( invalid magic number ) . Though not sucees yet. Now grub display "Linux-bzimage" and just stick there. No further progress.

Are you using vga= ? I fixed a bug recently (in SVN) that may cause this behaviour.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
author
#9 lore raw
Quoted 4 lines

Are you using vga= ?  I fixed a bug recently (in SVN) that may cause this behaviour.

Then I have to reinstall grub from my sqeeeze box to the usb-stick again to see the effect.

#10 lore raw

Some comments about live iso booting and grub2 loopback -

After grub boots the live iso kernel and initrd, they need to loop mount the iso again to access the live files. Otherwise the initrd would need rebuild, or some way found to pass the loop mount from grub.

I have been trying some available live iso's (there are others out there). I am using grub.efi, not using syslinux..

These live isos do loop mount the iso, and run -
ununtu, grml, slax.

These don't -
fedora, debian, gparted.

In all cases, grub loopback mounting of the iso and booting the kernel and initrd works.

Quoted 14 lines · J.Bakshi
Quoted 4 lines

Are you using vga= ? I fixed a bug recently (in SVN) that may cause this behaviour.

Then I have to reinstall grub from my sqeeeze box to the usb-stick again to see the effect.

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 1 line
Cros (pxw)
author
#11 lore raw
Quoted 10 lines · On Sat, 8 Aug 2009 13:25:34 +1000 Peter Cros <[email protected]> wrote:

Some comments about live iso booting and grub2 loopback -

After grub boots the live iso kernel and initrd, they need to loop mount the iso again to access the live files. Otherwise the initrd would need rebuild, or some way found to pass the loop mount from grub.

I have been trying some available live iso's (there are others out there). I am using grub.efi, not using syslinux..

Quoted 9 lines

These live isos do loop mount the iso, and run -
ununtu, grml, slax.

These don't -
fedora, debian, gparted.

In all cases, grub loopback mounting of the iso and booting the kernel and initrd works.

I don't know if it is a coincident but your timing to share these info is directly connected with my problem.
I am presently trying to collect some live iso in my usb stick and like to call those by grub2. gparted is one of them.
I have in mind to use gparted iso but you have already mentioned that it can't be. Is there any other work around within grub to cope with these type of iso ?

Thanks for sharing

#12 lore raw
Quoted 3 lines

I don't know if it is a coincident but your timing to share these info is directly connected with my problem.
I am presently trying to collect some live iso in my usb stick and like to call those by grub2. gparted is one of them.
I have in mind to use gparted iso but you have already mentioned that it can't be. Is there any other work around within grub to cope with these type of iso ?

It's not a question about grub but about initrd being or not being able to loopmount. Ask gparted live guys to add this feature to their scripts

Quoted 9 lines

Thanks for sharing

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
author
#13 lore raw
Quoted 10 lines · On Sat, 8 Aug 2009 12:34:12 +0200 "Vladimir 'phcoder' Serbinenko"…
Quoted 6 lines

I don't know if it is a coincident but your timing to share these info is directly connected with my problem. I am presently trying to collect some live iso in my usb stick and like to call those by grub2. gparted is one of them. I have in mind to use gparted iso but you have already mentioned that it can't be. Is there any other work around within grub to cope with these type of iso ?

It's not a question about grub but about initrd being or not being able to loopmount. Ask gparted live guys to add this feature to their scripts

Quoted 1 line

I'll do it.

#14 lore raw

It could be easier to use the partedmagic live iso, pmagic-4.3.iso, (kernel 2.6.30.1-pmagic), which does loop mount iso with 64 bit grub.efi loopback on Apple mac (It has gparted).

Quoted 22 lines · J. Bakshi
Quoted 10 lines · On Sat, 8 Aug 2009 12:34:12 +0200 "Vladimir 'phcoder' Serbinenko"…
Quoted 6 lines

I don't know if it is a coincident but your timing to share these info is directly connected with my problem. I am presently trying to collect some live iso in my usb stick and like to call those by grub2. gparted is one of them. I have in mind to use gparted iso but you have already mentioned that it can't be. Is there any other work around within grub to cope with these type of iso ?

It's not a question about grub but about initrd being or not being able to loopmount. Ask gparted live guys to add this feature to their scripts

Quoted 1 line

I'll do it.

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 1 line
Cros (pxw)
author
#15 lore raw
Quoted 4 lines · On Sun, 9 Aug 2009 16:55:57 +1000 Peter Cros <[email protected]> wrote:

It could be easier to use the partedmagic live iso, pmagic-4.3.iso, (kernel 2.6.30.1-pmagic), which does loop mount iso with 64 bit grub.efi loopback on Apple mac (It has gparted).

Thanks but it seems pmagic is much more than a partitioning tool. In that case I can use puppy linux. Though my aim is to collect little live iso tools in usb stick.

Quoted 29 lines · J. Bakshi
Quoted 24 lines
Quoted 11 lines · On Sat, 8 Aug 2009 12:34:12 +0200 "Vladimir 'phcoder' Serbinenko"…
Quoted 7 lines

I don't know if it is a coincident but your timing to share these info is directly connected with my problem. I am presently trying to collect some live iso in my usb stick and like to call those by grub2. gparted is one of them. I have in mind to use gparted iso but you have already mentioned that it can't be. Is there any other work around within grub to cope with these type of iso ?

It's not a question about grub but about initrd being or not being able to loopmount. Ask gparted live guys to add this feature to their scripts

Quoted 1 line

I'll do it.

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#16 lore raw
In reply to J.Bakshi
Quoted 8 lines · J.Bakshi

Hello list,

GRUB2 has a cool feature to boot .iso image. It is really a cool option as we can simply put the .iso and test it without making a cd. Some of the .iso has syslinux inbuilt. Like live .iso of gparted and dban. How can we manage those .iso ? We need to call the syslinux.cfg in those distros to get the boot option ( ex- dban ). Could any one kindly focus on this issue ?

There's no proper standard for what you want to do, so a homegrown approach is the only option.

Try putting grub.cfg in /, then use "configfile" command on it.

Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
author
#17 lore raw
Quoted 10 lines · Robert Millan
Quoted 8 lines · J.Bakshi

Hello list,

GRUB2 has a cool feature to boot .iso image.  It is really a cool option as we can simply put the .iso and test it without making a cd. Some of the .iso has syslinux inbuilt. Like live .iso of gparted and dban. How can we manage those .iso ? We need to call the syslinux.cfg in those distros to get the boot option ( ex- dban ). Could any one kindly focus on this issue ?

Quoted 7 lines

There's no proper standard for what you want to do, so a homegrown approach is the only option.

Try putting grub.cfg in /, then use "configfile" command on it.

--
Robert Millan

Thanks , I'll definately give it a try and come back with the feedback.