Install linux on a hard disk in Windows

Source: Internet
Author: User

Install linux on a hard disk in Windows
I. Boot Guide
1. CD installation method: Set it to CDROM in bios, and then restart and start from the optical drive.
2. Hard Disk installation method:
A) install linux from the XP system. In the boot. ini file (in the C root directory, hidden, end
Add c: \ grldr = Linux and save the file. If the file cannot be saved, remove the read-only attribute .)
Change the timeout value in the second line to 5 or a number other than zero (the default start time in the menu ).
Decompress grub and place grldr grub.exe to the root directory of drive C.
1. Download grub4dos and copy grub.exe and grldr under grub4dos to C :/.
2. Change the downloaded Linux. ISO file to Linux. ISO in advance,
To decompress the file, and extract imlinuz and initrd.gz from the. Casper folder.
(Some versions are initrd. LZ or initrd. IMG. Note that they must be consistent with their own file names) Copy
To C.
3. Modify menu. lst in grub4dos:
Title install linux
Root (hd0, 0)
Kernel/vmlinuz iso-Scan/filename =/Linux. ISO boot = Casper splash
Initrd/initrd.gz # some files are initrd. LZ or initrd. IMG.
Boot
# In this step, you can delete menu. List and comment out some content.
4. edit boot. ini and add c: \ grldr = Linux to the last line.
5. Copy Linux. ISO to the root directory of a drive (such as drive D) (preferably an external mobile device,
You have a lot of freedom to install.) it is best to decompress the images folder in Linux. ISO
The disk area where Linux. ISO is located. In addition, some systems require that the disk of Linux. ISO be fat16 or FAT32.
Format. Otherwise, an error is displayed. The image file cannot be found.
6. restart the computer and select the last grub install linmux in the menu.
Installation
##### ---------- This is a comment that can replace step 1 -------------- start with the comment section
------------------
In this step, you can also delete menu. List, modify and edit boot. ini, and add
In: C: \ grldr = Linux, copy the Linux. ISO and Its images folder to a disk (such as D :/)
In the root directory, restart, enter grub, and enter the following content at the grub prompt:
> Root
> Kernel/vmlinuz iso-Scan/filename =/Linux. ISO boot = Casper splash
> Initrd/initrd. LZ (or initrd.img,initrd.gz)
> Boot
Note: There are spaces in the middle.
The system starts and enters the installation stage.
##### --------------- This is the comment part -------------- the comment part ends
-------------------------------
A large number of letters flash in the middle.
B) Start installation from win7
1. Prepare grub4dos
Decompress grldr. MBR grub.exe to the c root directory. In the C root directory
To create the File menu. lst, enter:
Title Linux
Root (hd0, 0)
Kernel/vmlinuz
Initrd/initrd.lz(or initrd.img,initrd.gz)
Boot
(If the startup fails, run the following command at the grub prompt to start Windows 7
> Root (hd0, 0)
> Makeactive
> Chainloader/bootmgr)
2. Add grub to windows7 boot Guide
Open CMD and enter bcdedit/create/D "Linux"/Application bootsector.
Will appear like {89d9317d-9b10-11df-8af7-faa3bfca45b5} (or another digital sequence, please remember
And replace the following numeric string.
Create a batch processing grub. bat
Edit:
Bcdedit/set {8d94d316-db72-11df-b0b1-d9e7752560fb} Device
Partition = C:
Bcdedit/set {8d94d316-db72-11df-b0b1-d9e7752560fb} path
\ Grldr. MBR
Bcdedit/displayorder {8d94d316-db72-11df-b0b1-d9e7752560fb}
/Addlast
Pause
Double-click to run grub. bat.
GRUB boot guide OK
### You can also download the easybcd software and add the boot guide after installation. Save it after adding it.
Restart the installation. After the installation of Linux is complete, return to win7 to delete the newly added startup, as shown in
Delete the newly added GRUB boot in the same order:
3. Prepare a Linux Image
Use WinRAR to open Linux. ISO
Find the initrd.img(or initrd.gz, initrd. LZ) and vmlinuz files and decompress them to drive C.
Root directory, find the images folder, and decompress it to the D: \ root directory. Copy the Linux. ISO Image
To the D: \ root directory.
Ii. Loading before installation
Restart the computer and select install linux. A blue screen is displayed, prompting
Where do you choose to install Linux? Choose hard drive, and then prompt you to put the partition to the image and
Directory, my d disk is in/dev/sda5 (available for grub4dos test, enter
Root (hd0, and then press the tab key)
Some releases do not have this option, which can be ignored.
Iii. Formal Installation
After the installation environment is successfully started, go to the installation environment page and follow the prompts to install, select the Linux
Installation started.
1. Select language and simplified Chinese. Next Step>
2. Select the region (Shanghai China), Region (USA), and so on. Next Step>
3. partitions
# The most critical step.>
Before entering the partition step, the installation process will prompt whether to uninstall the original partition. Please select "no". Otherwise
Files in all partitions are lost. Select "Free partition allocation" or "Custom partition", and then change
The partition to be installed. Do not change other partitions; otherwise, all data on the hard disk will be lost. After the partition is completed
Next Step>
4. Create an account. Enter the login name and password. If you have other options, please follow the instructions
Select by yourself. Generally, keep the default value.>
5. >>>> the installation is complete and the computer is restarted.
### Note: the most important thing to install a shard is partitioning. Be careful !!!!!

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.