This article describes how to install ubuntu12.04 on a hard disk. For more information, see Ubuntu.
Preparations before installation:
1. create an unallocated hard disk.
Select a hard disk partition of more than 30 GB as the target hard disk for ubuntu installation, back up the original data, and format it. Next, click Start> Control Panel> System and Security> Management Tools> Computer Management> Disk Management in win7. Right-click the hard disk partition you just formatted and choose delete volume. In this way, we have an unallocated hard disk space and keep ubuntu installed.
2. download the image.
To install ubuntu, first install an image of any of its versions (preferably the latest version ). Linux is an open-source operating system, while ubuntu is a very good distribution. Therefore, it is very easy and free to obtain the ubuntu installation image. For details, you can download it from the ubuntu Chinese site: http://ubuntu.org.cn/getubuntu/download/but the latest Chinese site is 11.04than 11.10. You can download it from the official ubuntu website: http://www.ubuntu.com/downloadbut it is slower because the official website is overseas. If you will use a six-dimensional space, we recommend that you download on six-dimensional: http://bt.neu6.edu.cn
3. after the image is installed, We need to make a boot file. Decompress the package and copy it to the C root directory (you do not need to decompress the entire casper folder ). Download the latest version of the software named EasyBCD. Start EasyBCD and select Add new entry-> NeoGrub-> Install. Then, click configure on the newly displayed page to display menu. lst. Add the following content:
Copy codeThe code is as follows:
Title Install Ubuntu 12.04
Root (hd0, 0)
Kernel (hd0, 0)/vmlinuz boot = casper iso-scan/filename =/ubuntu-12.04-desktop-i386.iso ro quiet splash locale = zh_CN.UTF-8
Initrd (hd0, 0)/initrd. lz
Note: The red font indicates the name of the ISO image file installed, and the configuration changes accordingly. initrd.lzcan also be initrd.gz. ensure that the file name is correct and the case is the same. (Some of my classmates partition when installing Windows 7, and there is a MB system partition in the first place. so the so-called C disk is not (hd0, 0), it should be (hd0, 1); similarly, in case of back-up, test in grub4dos to see which partition it should be .)
4. restart the computer. The following two options should appear on the boot screen:
Copy codeThe code is as follows:
Windows 7
NeoGrub Bootloader
Select NeoGrub Bootloader to go to live cd (this hard disk installation method is more suitable for ubuntu's desktop version. if it is alternate, the live cd screen may not be available ). Now we can see the installation preparation screen of ubuntu. Enter a command through the terminal, which may be unknown to the first linux operating system contact. I will describe it in detail.
In the upper left corner of the live cd installation screen, find the black button with the ubuntu logo. it is a bit similar to the Start button in windows. click it and enter the letter t in the search box to find the terminal, click. In this case, a window is run. enter the following command:
Copy codeThe code is as follows:
Sudo umount-l/isodevice
Press enter to close the terminal. Click the install ubuntu icon on the desktop. Start Installation!
5. installation process.
After the corresponding steps are reached, follow the select installation type
Select the last item to customize the partition
Find the unallocated partition prepared in step 1 and start partitioning in ubuntu:
/We recommend over 15 GB/home. we recommend over 30 GB for separate partitioning. Swap is recommended to be 2 GB or less. /Boot can not be partitioned separately. if it is partitioned separately, it is recommended that it be over MB.
6. wait until the installation is complete.