Record the installation method of Ubuntu11.10ISO hard disk for future reference. In Linux, Ubuntu's ISO hard drive installation is suitable for the following conditions: 1. Do not use a CD drive; 2. Only download ISO files; 3. The existing system is Ubuntu 4 and the new version is later, instead of using the Upgrade Method to upgrade from a lower version to 11.105, the installation directly overwrites the old Ubuntu system without formatting. The main method is to modify grub. cfg of grub to add
Record the Ubuntu 11.10 ISO hard drive installation method for future reference. The following conditions are applicable to the installation of Ubuntu 11.10 ISO hard drive in Linux:
1. Do not use a CD drive
2. Only downloaded ISO files are supported.
3. Existing systems are also Ubuntu
4. install a new version, instead of upgrading from a lower version to 11.10.
5. Install and directly overwrite the old Ubuntu system without formatting.
The main method is to modify grub. cfg of grub to increase the ISO startup mode.
Steps:
1. Download the Ubuntu 11.10 ISO file
You can download it from the official website.
Copy the downloaded ISO file to the/root directory.
2. Copy vmlinuz and initrd. lz in ISO to the/boot root directory.
- Mkdir/tmp/mnt
- Sudo mount-o loop/ubuntu-11.10-desktop-i386.iso/tmp/mnt/
- Cd/tmp/mnt/casper/
- Sudo cp vmlinuz initrd. lz/boot/
3. Modify the/boot/grub. cfg file attribute to read/write http://www.linuxidc.com
Sudo chmod 777/boot/grub. cfg
Grub. cfg is automatically generated using grub-mkconfig and is read-only. In fact, manual modification is OK.
4. modify the content in/boot/grub. cfg,Www.linuxidc.comAdd content started from ISO
- Menuentry 'ubuntu, with Linux 3.0.0-12-generic '-- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
- Recordfail
- Set gfxpayload = $ linux_gfx_mode
- Insmod gzio
- Insmod part_msdos
- Insmod ext2
- Set root = '(hd0, msdos1 )'
- Search -- no-floppy -- fs-uuid -- set = root e1b06d94-34fc-44b2-80d2-5da02892xxxx
- Linux/boot/vmlinuz-3.0.0-12-generic root = UUID = e1b06d94-34fc-44b2-80d2-5da02892xxxx ro quiet splash vt. handoff = 7
- Initrd/boot/initrd. img-3.0.0-12-generic
- }
Find a part similar to the above, copy it, and put it under it, and change it to something similar:
Menuentry 'ubuntu,Live CD,With Linux 3.0.0-12-generic '-- class ubuntu -- class gnu-linux -- class gnu -- class OS {
Recordfail
Set gfxpayload = $ linux_gfx_mode
Insmod gzio
Insmod part_msdos
Insmod ext2
Set root = '(hd0, msdos1 )'
Search -- no-floppy -- fs-uuid -- set = root e1b06d94-34fc-44b2-80d2-5da02892xxxx
Linux/boot/Vmlinuz boot = casper iso-scan/filename =/ubuntu-11.10-desktop-i386.isoRo quiet splash vt. handoff = 7
Initrd/boot/Initrd. lz
}
Pay attention to the red part above.
5. Modify the time when grub is started to wait for timeout.
Modify/boot/grub. cfg and change all timeouts to 10, and timeout = 10.
Otherwise, you cannot see the grub selection screen.
6. Restart the PC and you will see Ubuntu and Live CD in grub.
7. Uninstall the Live CD desktop first:
- $ Sudo umount-l/isodevice
Click install ubuntu on the desktop.
Install and directly overwrite the old ubuntu system without formatting the root partition.
Generally, the English system is used, and/home is used as a separate partition.
If you have any questions about Chinese Input, use ibus-setup to configure pinyin.
Complete.