Use Grub2 to boot the ISO file on the hard disk

Source: Internet
Author: User
1. Create a folder named iso: sudomkdir/iso my Ubuntu12.10 has been created, so the following prompt appears 2. Move the iso file (ubuntu-12.10-desktop-i386.iso) to the newly created iso folder sudomvubuntu-12.10-desktop-i386.iso/iso3, check hard disk location

1. Create a folder named iso: sudo mkdir/iso

My Ubuntu 12.10 has been created, so the following prompt appears:

2. Move the iso file (ubuntu-12.10-desktop-i386.iso) to the newly created iso folder
Sudo music ubuntu-12.10-desktop-i386.iso/iso

3. Check the hard disk location
Sudo fdisk-l

It can be seen that the system hard disk is mounted on/dev/sda9/

4. Edit grub

Sudo gedit/boot/grub. cfg

Menuentry "Ubuntu 12.10 LiveCD "{
Set root = (hd0,9)
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
}


"Ubuntu 12.10 liveCD" is the name displayed at startup and can be changed as needed. "Setroot = (hd0, 1)" must be changed based on your hard disk. For example, if your hard disk is attached to/dev/sda9, this is (hd0, 9) and so on.

5. Save the edited file and restart your computer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.