Windows to install Ubuntu dual system from hard drive

Source: Internet
Author: User

Preparatory work:

Grub4dos and Ubuntu image files: grub4dos can be downloaded from the following URLs,

http://down.51cto.com/data/2243078

Ubuntu can go to the open source image station to download.

Operation Steps:

1, will download the Grub4dos decompression, will extract the file four files grldr menu.lst grldr.mbr grub.exe Copy to the C packing directory. (where Menu.lst is in the sample directory)

2. Copy the downloaded Ubuntu image (such as the image name Ubuntu.iso) to the C packing directory and unzip the files in the Casper directory in the image to the C packing directory.

After the above two steps are completed, the C disk file is roughly as follows:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/88/00/wKiom1fnNway6CKZAAAS7ToQPm0378.png "title=" 1.png " alt= "Wkiom1fnnway6ckzaaas7toqpm0378.png"/>


3. Modify the file:

1> Modify the Menu.lst file: Add the following before the end of the file              

Title Install Ubuntu14.04

Root (hd0,0)

Kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ ubuntu.iso locale=zh_cn. UTF-8

INITRD (hd0,0)/initrd.lz

Add the following:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/88/00/wKiom1fnPlzjmDmTAADW7rQfi8w023.png "title=" 3.png " alt= "Wkiom1fnplzjmdmtaadw7rqfi8w023.png"/>

2> modifying the boot. ini file

The boot. ini file in the C packing directory, is the system's hidden files, need to be set in the folder options to display it, the specific steps can be Baidu "show system hidden files."

After the hidden file is displayed, open the boot. ini file to add content at the end of the file:

c:\grldr= "Ubuntu Install"

After the setup is complete, reboot to enter the following interface (Ubuntu install is written in the boot. ini file)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/87/FD/wKioL1fnRoiy9kjyAABsBdM5vaE956.png "title=" 31.png "alt=" Wkiol1fnroiy9kjyaabsbdm5vae956.png "/>

Choose Ubuntu Install will enter the Grub4dos interface (here to borrow someone else's map)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/88/01/wKiom1fnSCzDbf2rAAKjzPnUWv0360.png "title=" 32.png "alt=" Wkiom1fnsczdbf2raakjzpnuwv0360.png "/>

The last line of install Ubuntu12.04 is the title install added in Menu.lst Ubuntu14.04 (Pictures are borrowed from others, so this step is a bit different), press ENTER to enter the following interface (this is still borrowed from others)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/01/wKiom1fnSg6BKWEfAAL8iYdAaSg124.png "title=" 33.png "alt=" Wkiom1fnsg6bkwefaal8iydaasg124.png "/>

This interface is almost the same as the real system, but this is the experience version and is not installed on the computer.

Start the real installation below:

Use alt+ctrl+t in this interface to bring up the terminal (if not recall, you can go to the system menu to find open), in the terminal input:

sudo umount-l/isodevice

(Do not actually perform the above step, you will also be prompted to uninstall the Isodevice device later in the installation process)

Next, double-click the "Install Ubuntu 12.04 LTS" icon on your desktop to go to the installation wizard. Follow the prompts to install and continue to the partition interface

The post-partition interface is as follows (borrow someone else's diagram)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/87/FE/wKioL1fnUvihql-7AAMVkBn2Vi4798.png "title=" 34.png "alt=" Wkiol1fnuvihql-7aamvkbn2vi4798.png "/> can see Sda5/sda6/sda7 is the Windows partition (do not modify, otherwise the files on the disk will be all lost),/sda8/sda9/s DA10/SDA11 is a partition for Ubuntu, there is an option below this interface, the default is to select the entire disk, no need to change (if changed to/dev/sda8, after the installation will not find the Ubuntu boot item, You need to go to Windows to modify the Menu.lst file, which is described in the final steps. Follow the wizard to install it, and you can continue until the installation is complete.

Reference URL: http://blog.csdn.net/ylchou/article/details/7525435


After the partition interface changes the bootloader installation partition from the entire disk to/DEV/SDA8, after the installation is complete, restart the fix for Ubuntu boot entry:

In the Grub4dos interface, select 4th, enter the GRUB command line interface

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/87/FE/wKioL1fnX9jDvoPeAAiUqmGqIp4367.png "title=" 35.png "alt=" Wkiol1fnx9jdvopeaaiuqmgqip4367.png "/> Because at the partition interface, the bootloader is changed to/dev/sda8, so enter the following command in the Grub interface

Grub>root (hd0,7) bootloader is installed in/dev/sda8, while in Grub (hd0,7) represents the eighth partition of the first disk

Grub>kernel/vmlinuz input to this tab key, if there is a bootloader in the partition specified with root (hd0,7), the TAB key will be used to complete the

Grub>initrd/init using the TAB key to auto-complete

Grub>boot

The complete interface is as follows (kernel that line is a little less, it should be kernel/vmlinuz-4.2.0-27-generic ro root=/dev/sda9 where/dev/sda9 is the partition where the root partition is located, can be seen from the above partition table ):

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/88/02/wKiom1fnZW2QVgnXAAdbTH3uizU322.png "title=" 36.png "alt=" Wkiom1fnzw2qvgnxaadbth3uizu322.png "/>

Enter boot after the return, if you can enter the system, you can write these commands to the Menu.lst file, write the same as the title beginning

Title Ubuntu14.04

Root (hd0,7)

Kernel/vmlinuz-4.2.0-27-generic ro root=/dev/sda9

Initrd/initrd.img-4.2.0-27-generic


If not, it is possible that bootloader is not in the (hd0,7) partition and needs to be re-specified on which partition with root (hd0,n).





This article is from the "Gan mu" blog, please be sure to keep this source http://ganmu.blog.51cto.com/9305511/1856304

Windows to install Ubuntu dual system from hard drive

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.