Getting Started
Create a directory named in your root folder using this command:
sudo mkdir /Now move your iso file (ubuntu-12.10-desktop-i386.iso) to this folder. Cd to the folder containing your iso file and run this command:
sudo mv ubuntu-12.10-desktop-i386.isoIdentify now your hard disk with this command from the terminal:
sudo fdisk -lFor my system, the hard disk is mounted as /dev/sda1:Edit now the grub.cfg file with this command:
sudo gedit /boot/grub/grub.cfgAt the end of the file, add these lines:
menuentry "Ubuntu 12.10 LiveCD
set root=(hd0,
loopback loop/iso/ubuntu-12.10-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/iso/ubuntu-12.10-desktop-i386.iso noprompt noeject
initrd (loop)/casper/initrd.lz
}You can change "Ubuntu 12.10 LiveCD" to any name of your choice. For the "set root=(hd0," option, I inserted the number "" referring to my hard disk (dev/sda1). If your hard disk is mounted as /dev/sda2, then set "", for /dev/sda5, set "" and so on.
Save your file and exit. Then reboot your system and hold down the Shift key to bring up the Grub boot menu. As you can see, I can now boot into the Ubuntu 12.10 iso file stored in my hard drive from the Grub menu:That's it!
Inga kommentarer:
Skicka en kommentar