Win7 hard disk installation linux (Ubuntu14.04)

Update in June 2016: This tutorial is very simple, and it also uses EasyBCD
, but the actual hard disk installation was unsuccessful . 04 ------------------------------------------------- --- The following two references are very detailed, here are only brief records and supplements Main reference: https://www.zybuluo.com/Rico/note/16818 Other references: http://www.360doc.com/ content/11/0506/22/6110614_114908124.shtml 1. Use EasyBCD to add startup items, and guide Ubuntu to install After installing EasyBCD, add new entry->neo grub->install and then fill in the configuration file as follows:














title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.04.1-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.lz


Note that the previous file may be vmlinuz instead of vmlinuz.efi, the suffix is ​​not filled in those two articles! ! ! If it is not filled in, the
vmlinuz.efi and initrd.lz files that cannot be installed can be found in the casper directory of the Ubuntu installation CD. After they are found, they are copied and copied to the root directory of the C: disk together with the Ubuntu iso file.
In theory, it can be other disks, but I have not tried it successfully! ! Or put the C drive, anyway, delete it after use up.

If you want to change the disk, you need to change all (hd0,0) in the configuration file, where hd0 represents the first hard disk, and 0 represents the first partition. Generally hd0 does not need to be changed. As for whether to change 0, you need to computer->right-click management->disk management
to see which partition the C drive is! ! ! If it is the first, keep 0 unchanged; for the second, change 0 to 1, and so on.


2. Restart, select neo grub, install linux
This will enter a temporary system similar to winPE,
Ctrl+Alt+T to open the terminal (similar to cmd.exe in widows), enter sudo umount -l /isodevice to uninstall the CD
and then you can install it Now, when installing, select the last item on the page of choosing the relationship with the windows system, so that you can re-partition Shenma yourself.
It was fine after that.

After installation, you can open easyBCD and delete the previous neo grub.


3. After the root user permission is
installed, after entering Ubuntu, Ctrl+Alt+T opens the terminal
sudo -i
and enters the password, it will become the root user

Enter the passwd command at this time, and you will be asked to create a password for the root user~


4. Change the order of windows and Ubuntu in grub. The
above method will enter Ubuntu by default after installing Ubuntu. !
The order of startup items can be changed under Ubuntu! ! ! See: http://www.ubuntukylin.com/ukylin/forum.php?mod=viewthread&tid=312&page=1
The principle is that after installing Ubuntu, the system is guided by grub2! grub2 determines the boot order by the file name, as long as the file name representing windows10 is changed to be higher than that of Ubuntu.
The method is:
Ctrl+Alt+T to open the terminal
cd /etc/grub.d/
ls #Check that there are horses in this folder
sudo mv 30_os-prober 08_os-prober #Modify the file name
sudo update-grub #更新grub


The following text is quoted from the link above:
quote
Enter under Ubuntu terminal:
$sudo mv /etc/grub.d/30_os-prober /etc/grub.d/08_os-prober
$sudo update-grub
What mv achieves here is to modify the file name (I always feel that looking at It looks like a move command)
#This command is to rename the 30_os-prober file in the grub.d folder under the etc folder to 08_os-prober. (08 can be changed to 06~09). The file name of Ubuntu's startup item is "10_...." In this way, the Windows startup item can be placed in front of Ubuntu, that is, the first item in the startup item list. Since the bootloader starts the first startup item by default, so you can start Windows first. Note that after the modification, update the grub to take effect (that is, the command sudo update-grub).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326865466&siteId=291194637