Install Ubuntu11.10's ISO hard disk in Linux

Source: Internet
Author: User
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.

  1. Mkdir/tmp/mnt
  2. Sudo mount-o loop/ubuntu-11.10-desktop-i386.iso/tmp/mnt/
  3. Cd/tmp/mnt/casper/
  4. 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

  1. Menuentry 'ubuntu, with Linux 3.0.0-12-generic '-- class Ubuntu -- class gnu-linux -- class gnu -- class OS {
  2. Recordfail
  3. Set gfxpayload = $ linux_gfx_mode
  4. Insmod gzio
  5. Insmod part_msdos
  6. Insmod ext2
  7. Set root = '(hd0, msdos1 )'
  8. Search -- no-floppy -- fs-uuid -- set = root e1b06d94-34fc-44b2-80d2-5da02892xxxx
  9. Linux/boot/vmlinuz-3.0.0-12-generic root = UUID = e1b06d94-34fc-44b2-80d2-5da02892xxxx ro quiet splash vt. handoff = 7
  10. Initrd/boot/initrd. img-3.0.0-12-generic
  11. }

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:

  1. $ 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.

Related Article

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.