Jump to content











Photo
- - - - -

Booting linux distros iso with grub4dos


Best Answer steve6375 , 07 January 2014 - 12:54 PM

I found this

 

so it looks like fromiso is supported.

 

So try

title CrunchBang
set ISO=/crunchbang-11-20130506-i686.iso
uuid (hd1,0) > nul
set UUID=%?%
echo %UUID%
map (hd1,0)%ISO% (0xff) || map --mem (hd1,0)%ISO% (0xff)
map --hook
root (0xff)
kernel /live/vmlinuz boot=live fromiso=/dev/disk/by-uuid/%UUID%%ISO% live-media-path=/live config splash noeject
initrd /live/initrd.img

This worked for me fine. For a USB boot drive, replace (hd1,0) with ().

 

P.S. If you just put the ISO on an Easy2Boot USB drive, you get the initial live/install/memtest menu and it boots fine to the live desktop.

If you choose the Install menu option, the 'detect and mount CD-ROM' stage will fail, to fix this, choose 'Execute a shell' and enter the command

mount /dev/sdb4 /cdrom

(assuming that /dev/sdb is the E2B USB drive)

 

then type exit

and re-detect the 'CD-ROM' and it should work.

 

HTH

Steve

 

 

 

 

 

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 florin91

florin91

    Frequent Member

  • Team Reboot
  • 197 posts
  •  
    European Union

Posted 07 January 2014 - 10:59 AM

Hi!

 

I'm trying to boot various linux distro isos with grub4dos from usb and hdd. I have succesfully booted ubuntu and an arch linux derivative named ArchBang with the following code:

 

Ubuntu:

title Try Ubuntu without installing
find --set-root /ubuntu-13.10-desktop-i386.iso
map /ubuntu-13.10-desktop-i386.iso (0xff) || map --mem /ubuntu-13.10-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed noprompt boot=casper persistent iso-scan/filename=/ubuntu-13.10-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

ArchBang:

title ARCHBANG
map (hd1,0)/archbang-testing-2013.12.17-i686.iso (0xff) || map --mem (hd1,0)/archbang-testing-2013.12.17-i686.iso (0xff)
map --hook
root (0xff)
kernel /arch/boot/i686/vmlinuz archisobasedir=arch archisolabel=ARCHBANG quiet img_dev=/dev/sdb1 img_loop=/archbang-testing-2013.12.17-i686.iso earlymodules=loop
initrd /arch/boot/i686/archiso.img

Now, any idea for booting a debian based distro named CrunchBang http://crunchbang.org ?

What are the kernel parameters that need to be pased ?

 

Thanks



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 6598 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 January 2014 - 11:38 AM

if you have partition 4 empty then you can use the partnew method which will boot pretty much any linux ISO.

Or just make an Easy2Boot USB drive and copy all your linux ISOs to the \_ISO\MAINMENU folder.

 

As regards cheat codes, I searched the forum and found

http://crunchbang.or...ic.php?id=28770

 

however that is not booting from ISO but from the extracted files. If there is no cheat code to specify the ISO file to linux, then you will need to use either a flat file approach or the partnew/Easy2Boot approach.



#3 steve6375

steve6375

    Platinum Member

  • Developer
  • 6598 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 07 January 2014 - 12:54 PM   Best Answer

I found this

 

so it looks like fromiso is supported.

 

So try

title CrunchBang
set ISO=/crunchbang-11-20130506-i686.iso
uuid (hd1,0) > nul
set UUID=%?%
echo %UUID%
map (hd1,0)%ISO% (0xff) || map --mem (hd1,0)%ISO% (0xff)
map --hook
root (0xff)
kernel /live/vmlinuz boot=live fromiso=/dev/disk/by-uuid/%UUID%%ISO% live-media-path=/live config splash noeject
initrd /live/initrd.img

This worked for me fine. For a USB boot drive, replace (hd1,0) with ().

 

P.S. If you just put the ISO on an Easy2Boot USB drive, you get the initial live/install/memtest menu and it boots fine to the live desktop.

If you choose the Install menu option, the 'detect and mount CD-ROM' stage will fail, to fix this, choose 'Execute a shell' and enter the command

mount /dev/sdb4 /cdrom

(assuming that /dev/sdb is the E2B USB drive)

 

then type exit

and re-detect the 'CD-ROM' and it should work.

 

HTH

Steve

 

 

 

 

 



#4 florin91

florin91

    Frequent Member

  • Team Reboot
  • 197 posts
  •  
    European Union

Posted 07 January 2014 - 11:52 PM

Nice! It works!

 

Does e2b uses the same technique, but building the menu.lst in memory dinamycally ? Or the partnew one by modifying the partition table ?

 

Thanks!



#5 steve6375

steve6375

    Platinum Member

  • Developer
  • 6598 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 08 January 2014 - 12:04 AM

E2B uses partnew.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users