Booting iso images with GRUB 2

Booting iso images with GRUB 2


With thousdands of linux distributions around , booting iso images with out burning it to a cd or dvd  saves a lot of money and effort.   Let us try to boot system rescue cd. I have  ubuntu  lucid lynx installed on my laptop. Let us see how to boot   system rescue cd  from the iso image.   Get the latest system  rescue cd from here.
I keep all my iso images under /boot/iso folder . You can choose a different folder. (but note the exact path)

Add  the following lines to   /etc/grub.d/40_custom file
 
menuentry "SystemRescue CD ISO" {
loopback loop (hd0,1)/boot/iso/systemrescuecd-x86-1.5.8.iso
linux (loop)/isolinux/rescue64 setkmap=us isoloop=/systemrescuecd-x86-1.5.8.iso
initrd (loop)/isolinux/initram.igz
}


 You may have to tweak ( hd0,1 ) depending on  the location of your  iso image.   The line  
   
  loopback loop (hd0,1)/boot/iso/systemrescuecd-x86-1.5.8.iso

 above  mounts the iso image to  "loop".   The remaining lines specify kernel and initram image within the iso image.  


Now run "sudo update-grub" after saving /etc/grub.d/40_custom to include the new entries into the Grub 2 menu

Comments

Popular posts from this blog

Bodhi Linux 1 1 0 Ubuntu and Enlightenment based Promising Linux distribution

brengos13 linux

Bodhi Linux ARM Alpha Release for RaspBerry Pi