1. Check the Win7 reserved partition.
1) Go to Win7 to open the library folder, find "computer" on the Left bar, right-click the target point and choose "manage" menu;
2) Find "disk management" on the left of the Management Panel, click it, and each partition is displayed on the right;
Note: if there is a 2nd M system reserved partition, perform the following operations (3-6); otherwise, please jump to Step 1 to copy the Startup File;
3) Right-click the M "system reserved" partition and select the "Change drive letter and path" menu;
4) Click "add" in the lower left corner of the Panel;
5) Select a drive letter in the upper-right corner of the panel, use a letter next to it, and click OK;
6) return to the "computer" folder and you will find that there is an additional disk partition, which is empty;
2. Copy the Startup File
(Note: If the partition is not retained by the M system or is not correct, copy the following startup files to the C: disk)
1) copy the downloaded Ubuntu image file to the C: disk and open it with 7-zip or WinRAR;
2) double-click the casper folder to open it. There is a file starting with I and v;
3) Open the system reserved partition and drag the initrd. lz file in casper to the partition window,
If no partition is retained, drag it to the C: disk and click "continue ";
4) Similarly, drag vmlinuz to this partition to close the 7z package window;
3. Create the menu. lst file.
1) Open notepad, enter the following content, or copy and paste the content, and change the file name following filename =/in the third line to the corresponding one. This menu is in the folder of this course. lst file (right-click and select "Save as target ");
32-bit
Title Install Ubuntu
Root (hd0, 0)
Kernel/vmlinuz boot = casper iso-scan/filename =/ubuntukylin-14.04-desktop-amd64.iso ro quiet splash locale = zh_CN.UTF-8
Initrd/initrd. lz
64-bit
Title Install Ubuntu
Root (hd0, 0)
Kernel/vmlinuz. efi boot = casper iso-scan/filename =/ubuntukylin-14.04-desktop-amd64.iso ro quiet splash locale = zh_CN.UTF-8
Initrd/initrd. lz
2) Click "file-save" and save the location on the system disk. Enter "menu. lst" in the file name. Note that there is a pair of double quotation marks;
3) download a g2ldr and g2ldr. mbr file and copy it to the system retained disk. The g2ldr and g2ldr. mbr files are in the folder of this tutorial;
4) create a boot. ini file in the system retained disk, and enter the following content: (this course contains the boot. ini file, right click, and select "Save as target ")
[Boot loader]
Timeout = 0
Default = C: \ g2ldr. mbr
[Operating systems]
C: \ g2ldr. mbr = "Ubuntu"
In this way, there will be 6 copied files in the system retained disk, and a Ubuntu image file in the C: disk. Check the quantity and Icon type carefully;
4. Disable system reserved partitions.
1) after checking each file, close the system reserved partition window and return to "Computer Management-disk management-change drive letter and path ";
2) Click "delete" in the lower right corner of the Panel;
3) in the confirmation dialog box, click "yes ";
4) in the following warning dialog box, click "yes ";
5) in this way, the allocated drive letter is removed and the Management window is closed;
5. Install Ubuntu
1) restart the computer. When the boot menu appears, press the arrow key to select "Ubuntu" and press the Enter key to enter;
2) The subsequent steps are the same as those in the previous article. I will not repeat them here.
........................................ ..
...........................................
6. Win7 dual-system Ubuntu
1) After the installation is completed step by step, restart the computer to enter Win7 and delete the Ubuntu image file on the C: disk,
2) re-enter the system reserved partition (open the C: disk if there is no reserved partition), delete the menu. lst file, and then disable the system reserved partition:
Remember: The drive letter assigned to the system's reserved disk must be removed;
Restart the computer and select "Ubuntu-Ubuntu/Linux" from the Startup menu to enter the Ubuntu system;
For reference:
3) if it is in Ubuntu12.10, you need to use menu. lst file. use NotePad to Open menu. lst, replace the content in it with the following. This menu is included in the course folder. lst file (right-click and select "Save as target "):
Title Ubuntu/Linux 12.10
Find -- set-root/boot/grub/i386-pc/core. img
Kernel/boot/grub/i386-pc/core. img
Boot
If/boot is partitioned separately, use the following:
Title ubuntu/Linux (/boot on single partitionas)
Find -- set-root/grub/i386-pc/core. img
Kernel/grub/i386-pc/core. img
Boot
For the 64-bit System menu. lst, you can use the following to remember the Partition Number installed in the boot device, which is assumed to be sda9:
Default 0
Timeout 5
Title Ubuntu 12.04
Root (hd0, 8)
Chainloader + 1
Boot
Title Ubuntu 12.04
Root (hd0, 8)
Kernel/boot/grub/core. img
Boot
Title Ubuntu 12.04
Root (hd0, 8)
Kernel/vmlinuz ro root =/dev/sda9
Initrd/initrd. img
Boot
Title Ubuntu 12.04
Root (hd0, 8)
Kernel/boot/vmlinuz-2.6.32-24-generic ro root =/dev/sda9
Initrd/boot/initrd. img-2.6.32-24-generic
Boot