gc

Friday, December 14, 2012

Add Ubuntu live cd iso image entry to grub menu


Booting from ubuntu live cd iso image from partition.

the iso file: ubuntu-10.04.4-desktop-i386.iso,
the path to hard drive: /dev/sda2/iso/ubuntu-10.04.4-desktop-i386.iso

first, add this to the end of "/etc/grub.d/40_custom" file :

menuentry "ubuntu-10.04.4-desktop-i386.iso (live CD)" {
    set isofile="/iso/ubuntu-10.04.4-desktop-i386.iso"
    loopback loop (hd0,2)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet noeject noprompt splash --
    initrd (loop)/casper/initrd.lz
}
~$ sudo grub-update

No comments:

Post a Comment

Not Realy Free Premium Domain