Booting From An ISO File On A Harddisk
Booting From An ISO File On A Harddisk
By Charles
2. Running from a compressed partition means that programs such as OpenOffice and
Gimp launch much quicker - about a 2 to 3 fold speed improvement.
Here are the (belated) instructions for booting an ISO and an example:
Copy the ISO image to a directory that GRUB will be able to find (and that you can specify
easily) . I use: /boot/iso
1.
Amend the GRUB config file - this should be done by editing the
/etc/grub.d/40_custom file, and then running /usr/sbin/grub-mkconfig. Alternatively for
testing you can directly edit the /boot/grub/grub.cfg file but any changes made will be lost
on the next kernel upgrade.
2.
On my systems /boot is on /dev/sda1, this is refered to as (hd0,1) in Grub speak. You
may need to change this
3.
The entry you add should look like:
4.
set isofile="/boot/iso/myisofile.iso"
initrd (loop)/casper/initrd.lz
If you want to create a persistent boot you need to create partitions on your system with
names. I used gparted to set these up:
1.
casper-rw – this can act as a unionfs for / (including /home if no home-rw is present)
*
home-rw – this will act as a unionfs for /home
*
The grub entry should include the word persistent:
*
menuentry "My new boot from ISO" {
set isofile="/boot/iso/myisofile.iso"
initrd (loop)/casper/initrd.lz