Install linux on Hard Disk

Source: Internet
Author: User

Write down the instructor's explanation and summary. Facilitate future query. I wrote it to my QQ space, but it was too lonely to communicate with you. I moved it again... Haha.

There are three common methods for installing Linux: network installation, CD installation, and hard disk installation. Network installation is too advanced. At present, I still can't do it. What about optical disks? The current systems are simple and installation is good. I will write the hard disk installation method without the optical drive.

The basic steps are as follows:

1. Copy the CD image to the root directory of a partition and put it in the H: directory. (Note: the CD image should be placed in the partition of the fat or FAT32 file system, because the DOS environment can only access fat or FAT32 partitions)

2. Install grub for DOS software and download it online;

3. Install gurb for DOS on disk C and copy C:/gurb for DOS/grldr to the root directory of disk C.

4. Copy the vmlinuz and initrd. IMG files in the isolinux folder of the Linux CD image to the C root directory.

5. edit boot in drive C. INI file, add C:/grldr = "mylinux" at the end of the file (Note: boot. the INI file is a system-protected hidden file. You need to remove it from the tools> Folder Options> View tab .)

6. Restart the Windows system. You can see two boot options. Press the arrow key to move down to mylinux and press enter to start.

7. Enter the gurb interface and start inputting

Gurb> root (hd0, 0) (Note: hd0 indicates the first disk of the IDE hard disk, and 0 indicates the disk C, that is, the storage disks of kernel files vmlinuz and initrd. IMG)

Gurb> kernel/vmlinuz

Grub> initrd/initrd. img

Grub> boot

Then the system automatically starts boot, which is not very different from the installation on the CD. It will not be written later.

The problem I encountered during the installation process is that after the installation is complete, the Windows system cannot be accessed. Of course, you can also use the powerful grub for guidance. The pilot command is

Grub> root (hd0, 0)

Grub> chainloder + 1 (TIPS: If you forget how chainloder is spelled, you can use tab to complete it)

Grub> boot

Started successfully. Oy!

To clear GRUB boot information, you need a DOS tool disk with the fdisk tool and run fdisk/MBR.

The installation of Linux on hard disks is complete.

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.