boot from iso image

grub2

<!-- lang: shell -->
insmod ntfs
set isofile="/xxx/ubuntu-12.04-desktop-i386.iso"
loopback loop (hd0,2)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
boot

after boot

<!-- lang: shell -->
sudo umount -l /isodevice

你可能感兴趣的:(boot from iso image)