Quick Access

User login

Who's online

There are currently 0 users and 15 guests online.

Visitors Map

Site Counter

  • Site Counter: 247163
  • Registered Users: 807
  • Published Nodes: 328
  • Your IP: 38.107.191.94
  • Since: 2008-09-09

Link Exchange

BlogCatalog Blog DirectoryTechnology blogs
Technology Business Directory - BTS LocalTop stories
Dignow.netClick here
        Top Blog
       CracktoHack
         SecGeeks

       Megapanzer

      Your Site Here?

Live Traffic Info

Advertisements

      ExitJunction.com - Make Money From Your Exit Traffic!
      Click Here to Check WidgetBucks
      Click here to Advertise
     


     

Boot from an ISO via Grub2


With grub2 you can directly boot an (iso9660) ISO using its loopback option. This is great because it provides another nice rescue scenario - for example when using grml (the Debian based Linux Live-CD for sysadmins). You no longer need to extract kernel and initrd from the ISO to be able to boot it using the isofrom bootoption. All you need to do is put a plain grml ISO to your harddisk.

I’ve tested it with grml-small 2008.11 and grml-small 2009.05-rc1 using grub2 from Debian/unstable (1.96+20090317-1). In the following example the ISO file grml-small_2008.11.iso is available in directory grml on device /dev/sda1. You can boot it from the interactive grub shell using:

from the interactive grub shell using:

Code:
loopback loop (hd0,1)/grml/grml-small_2008.11.iso
linux (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt
initrd (loop)/boot/grmlsmall/initrd.gz
boot

So if you are using grub2 already consider adding an entry like the following to your grub config (/boot/grub/grub.cfg):

Code:
menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)" { loopback loop (hd0,1)/grml/grml-small_2008.11.iso linux (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt initrd (loop)/boot/grmlsmall/initrd.gz }


This entry gives you the option to boot grml from your harddisk even if you don’t have the possibility to boot via CD/USB/PXE/….

Tip: starting with grml 2009.05(-rc1) you can also use findiso=/path/to/grml.iso instead of isofrom=/dev/sdX/path/to/grml.iso. findiso is a dynamic version of isofrom as it looks for the specified ISO file on all disks where it usually looks for the .squashfs file (so you don’t have to know the device name compared to isofrom=…). The above configuration using findiso is even easier to set up and would look like this:

menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)" { loopback loop (hd0,1)/grml/grml-small_2008.11.iso linux (loop)/boot/grmlsmall/linux26 findiso=/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt initrd (loop)/boot/grmlsmall/initrd.gz }

Technorati Tags:Technorati Tags:
Your rating: None Average: 5 (4 votes)

hi,good article

hi,good article

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Search

Loading

Bookmark Us!

Share/Save

Page Rank

Subscribe Us!

Explore Tags

Follow Us