The computer was originally a Windows 7 and Ubuntu dual system, using the grub2 boot program. I recently saw ubuntu11.10 coming out. The old Ubuntu system also had a lot of messy stuff and wanted to reinstall it. So I downloaded ubuntu-11.10-desktop-i386.iso. This time, I don't plan to engrave the disc, just install it on the hard disk.
At first, I put the ISO file in the E disk. Restart grub and press the C key to enter the command line mode. Run the following command:
Loopback loop (hd0, 6)/ubuntu-11.10-desktop-i386.iso
Linux (loop)/Casper/vmlinuz boot = Casper iso-Scan/filename =/ubuntu-11.10-desktop-i386.iso
Initrd (loop)/Casper/initrd. LZ
Boot
The first line is probably to map the ISO image of the E disk to the 6th partition of the first hard disk.
The second line should be to load the kernel. My ISO is placed in the root directory of the E disk.
The live system will run after boot. However, when installing Ubuntu, you will be prompted to uninstall the isodevice mount point. Run the following command: sudo umount-L/isodevice. The installation is successfully uninstalled, but the installation cannot be continued at this time. You can restart the system, enter sudo reboot, restart the computer, and then enter the above three lines of commands to go to the live system again. According to comments from netizens, manually running the umount Command requires uninstalling the system before it starts to install the system. As a result, I found that I couldn't do it. I uninstalled the isodevice first, and then entered the installation program. Then, an error box is displayed.
After thinking about it, I think the system needs to be installed and partitioned, so I need to unmount the mount point first. But the mount point is hung with the running system, and it won't work if I unmount it. All of a sudden, don't place it on the hard disk to be partitioned. So I immediately thought of a USB flash drive. So I copied the ISO to the USB flash drive. Then restart the computer, go to grub, and press C to enter the command line.
First, you need to know where my USB flash drive is. Enter the following command:
Ls
Displays the various partitions, such as (hd0, 1) (hd0, 2) (hd1, 1), where (hd1, 1) is obviously my USB flash drive. Because I only have one hard disk, hd1. Repeat the top three lines of code. Of course, you need to modify the first line and replace (hd0, 6) with a USB flash drive partition. Here is (hd1, 1 ). Because the USB flash drive is read, each command is executed for a long time. After entering the system, I also checked what is mounted in/isodevice. I found that it also mounted the edisk, so I ran the sudo umount-L/isodevice command to uninstall it and then run the installation program. The installation is complete.
Conclusion: To modify the partition information during installation, You need to detach all the hard disk mount points. Therefore, the ISO image must be placed in a USB flash drive or other storage media. After Entering live, detach a mount point in time. To ensure normal installation. Www. Lixin. Me