Use Lilo or grub to mount and boot from ISO


Recommended Posts

Well, I guess the title says it all. I saw some threads on other forums about using some boot files on a flash drive to mount and bot an ISO image from on the same drive.

I want to do this from a CF card in an SFF pc. I need to boot from the CF card, but the ISO is a bootable CD and is not yet written to boot from flash. It then occured to me that a bootloader like this could be very useful for booting from any cd imagewithout having to burn a CD. This could even be used on a harddrive with multiple images which can be upgraded simpley by replacing the ISO file.

Any thoughts?

Here are the threads I read:

http://damnsmalllinux.org/cgi-bin/forums/i...t=ST;f=5;t=4914

http://www.gibraltar.at/pipermail/gibralta...-June/002917.ht

Linux can mount an ISO image and treat it like a mounted device and read the files.

You just have to find some way to boot an intial kernel, if I am not mistaken. I believe what you are thinking of is very doable in Linux.

I am not very familiar with linux, yet, so this is a little over my head, but I did find this article about using grup to load and boot from a diskimage pulled from tftp, si it should be fairly similar.

http://www.faqs.org/docs/Linux-HOWTO/Clone-HOWTO.html

It is possible to boot from an ISO using GRUB/LILO, but there is an alternative way.

It envolves to make a previous extraction of the contents of the ISO to an HD partition.

This is the procedure that is most commonly used to boot Live CD's from HD without

the need to write them to a CD. Also running a LiveCD from HD, speeds up the system

as the access speeds from an HD are not compared with the ones that CD drives have.

Here's how to boot a LiveCD from HD (using grub, Knoppix [or knoppix based LiveCD iso] and a Linux system):

-create a mountpoint to mount the ISO with loopback:

mkdir /mnt/LiveISO

-mount the image:

mount -t iso9660 -o loop,ro /DOWNLOADS/Knoppix-3.7-en.iso /mnt/LiveISO

-create a directory on the device where you are going to boot from:

mkdir /mnt/hda4/KNOPPIX

-copy the contents of the mounted image to that directory:

cp /mnt/LiveISO/KNOPPIX/* /mnt/hda4/KNOPPIX/

-copy kernel and initrd files to yor boot device:

cp /mnt/LiveISO/boot/* /boot/

-edit the menu.list located in /boot/grub and add an entry like this to it:

title  KNOPPIX
root  (hd0,0)
kernel  /linux26 ramdisk_size=100000 fromhd=/dev/hda4
initrd  /minirt26.gz
savedefault
boot

using LILO should be like this:

image=/boot/linux26
        initrd=/boot/minirt26.gz
        label=KNOPPIX
        append="ramdisk_size=100000 fromhd=/dev/hda4"

This can also be done using an external device such as an USB storage device but GRUB

or LILO has to be installed on it. It can even boot from a win partition by using a floppy with LILO/GRUB

to boot it or adding an entry to the NT bootloader.

Works with all the LiveCD's based on Knoppix, DSL, SLAX... (the fromhd cheatcode of

SLAX is different from the one Knoppix uses).

Not direct boot from an ISO image but pretty usefull to test out a new LiveCD without the need

to burn it.

here's a page for more options using similar techniques:

http://www.knoppix.net/wiki/Hd_Based_HowTo

  • 5 months later...

Hey Lechio

I have also considered this option but I have about 30 live CDs and am looking for a way to dynalically list and select one of them at boot time, mainly for trying out and testing diffrent distros.

I have tried the qemu emulator, althoug it works well it is still a bit sluggish sometimes and sometimes the OS behaves diffrently on the actual Hardware

Any info will be apriciated :)

GX

It is possible to boot from an ISO using GRUB/LILO, but there is an alternative way.

It envolves to make a previous extraction of the contents of the ISO to an HD partition.

This is the procedure that is most commonly used to boot Live CD's from HD without

the need to write them to a CD. Also running a LiveCD from HD, speeds up the system

as the access speeds from an HD are not compared with the ones that CD drives have.

Here's how to boot a LiveCD from HD (using grub, Knoppix [or knoppix based LiveCD iso] and a Linux system):

-create a mountpoint to mount the ISO with loopback:

mkdir /mnt/LiveISO

-mount the image:

mount -t iso9660 -o loop,ro /DOWNLOADS/Knoppix-3.7-en.iso  /mnt/LiveISO

-create a directory on the device where you are going to boot from:

mkdir /mnt/hda4/KNOPPIX

-copy the contents of the mounted image to that directory:

cp  /mnt/LiveISO/KNOPPIX/*  /mnt/hda4/KNOPPIX/

-copy kernel and initrd files to yor boot device:

cp  /mnt/LiveISO/boot/* /boot/

-edit the menu.list located in /boot/grub and add an entry like this to it:

title ?KNOPPIX
root ?(hd0,0)
kernel ?/linux26 ramdisk_size=100000 fromhd=/dev/hda4
initrd ?/minirt26.gz
savedefault
boot

using LILO should be like this:

image=/boot/linux26
 ? ? ? ?initrd=/boot/minirt26.gz
 ? ? ? ?label=KNOPPIX
 ? ? ? ?append="ramdisk_size=100000 fromhd=/dev/hda4"

This can also be done using an external device such as an USB storage device but GRUB

or LILO has to be installed on it. It can even boot from a win partition by using a floppy with LILO/GRUB

to boot it or adding an entry to the NT bootloader.

Works with all the LiveCD's based on Knoppix, DSL, SLAX... (the fromhd cheatcode of

SLAX is different from the one Knoppix uses).

Not direct boot from an ISO image but pretty usefull to test out a new LiveCD without the need

to burn it.

here's a page for more options using similar techniques:

http://www.knoppix.net/wiki/Hd_Based_HowTo

585740612[/snapback]

  • 5 years later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Very umm, blue?  
    • Steam Summer Sale 2026 kicks off offering weeks of PC game discounts by Pulasthi Ariyasinghe Every year, one of the biggest events that Valve hosts is the Steam Summer Sale. Now, the 2026 edition has just kicked off, bringing discounts for everything from the newest games and retro gems to all sorts of DLC packs. As always though, PC gaming hordes have managed to shake the servers of Steam just as the sale opened its doors, so expect the prices, store pages, and services to not show up properly for some time till the backend stabilizes. You'll find sales being present, though with minor cuts, for even relatively recently released titles this time. The front page is the place to be for anyone looking for recommendations, with it putting a spotlight on fresh games every day. However, keep in mind that the discounts themselves will not be changing and will remain static throughout the sale. Blockbusters like Clair Obscur Expedition 33, Split Fiction, Red Dead Redemption II, Battlefield 6, Dispatch, Baldur's Gate 3, Resident Evil Requiem, Anno 117, Arc Raiders, Black Ops 7, Kingdom Come: Deliverance II, and much more are currently discounted. Valve has also brought back the special "Deep Discounts" section. While part of this same sale, it only highlights games that are discounted by at least 85%, with some titles even reaching 95% off. Some of the games included here are The Witcher 3: Wild Hunt, Watch Dogs 2, Far Cry 4, Wreckfest, Dragon Ball Xenoverse 2, The Quarry, Ghostwire Tokyo, Call of Duty: Modern Warfare II, and much more for just a few dollars each. The Steam Summer Sale of 2026 will be open for business until July 9, giving everyone two whole weeks to try and keep their wallets closed. If you want to see the biggest highlights, be sure to read our Weekend PC Game Deals special coming this Saturday.
    • Digisecret 2.1.431 Pro and Wzipse 4.0. Both are encrypted self-extracting archives.
    • Google reshuffles its AI coding team as it struggles to catch Anthropic by Karthik Mudaliar Google is already reorganizing the AI coding “strike team” it created roughly two months ago, as it attempts to find ways to close the gap with Anthropic in one of generative AI’s most commercially important areas. According to The Information, Google DeepMind is expanding the team’s focus to include “midtraining,” rather than concentrating only on coding tools and agents. Midtraining takes place after a model’s broad initial training but before the final stages that prepare it to follow instructions and perform specific tasks. In simple terms, it gives developers another opportunity to expose a model to carefully selected data before it is polished for release. That could help Google improve Gemini’s underlying coding abilities instead of relying only on better prompts, interfaces, or post-training. Previous research has found that midtraining can be particularly effective for code and mathematics, where models must move from general language knowledge to more structured tasks. Google reportedly created the original strike team in April. It was led by Google DeepMind research engineer Sebastian Borgeaud, who previously worked on model pretraining, and focused on complex, long-running programming jobs. Google co-founder Sergey Brin and Google DeepMind chief technology officer Koray Kavukcuoglu were also reportedly involved in the effort. DeepMind researchers were said to believe that Anthropic’s coding tools were outperforming Google’s Gemini models, prompting the company to give the project more attention. Anthropic has made coding a central part of its AI strategy through Claude Code and its Claude model family. The company has continued improving that area, with Claude Opus 4.8 offering upgrades for coding and other agentic tasks, along with the now-unavailable Mythos and Fable models. The reshuffle also comes at a time when Google faces increased competition for AI researchers. Gemini co-lead Noam Shazeer recently announced that he was leaving Google for OpenAI, while two other researchers who contributed to Gemini and DeepMind projects are reportedly preparing to join Anthropic. It remains unclear whether the reorganized team will produce a new public Gemini model or developer product. No release date, team size, or specific performance target has been disclosed. Source: The Information
  • Recent Achievements

    • First Post
      kinowa earned a badge
      First Post
    • Rookie
      krychek57 went up a rank
      Rookie
    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      413
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      132
    4. 4
      Xenon
      73
    5. 5
      Michael Scrip
      73
  • Tell a friend

    Love Neowin? Tell a friend!