How to install Fedora17 from a hard disk

Source: Internet
Author: User
How to install Fedora17 from a hard disk (Howtoinstallfedora17fromharddrive, Fedora-17-i386-DVD.iso) Before I wrote an article on how to install Fedora16 from a hard disk:

How to install Fedora 17 from hard drive (How to install fedora 17 from hard drive, Fedora-17-i386-DVD.iso)

I wrote an article on how to install Fedora 16 from the hard disk: http://www.linuxidc.com/Linux/2012-06/62118.htm

Now, Fedora 17 is available, but the hard disk installation method has changed, so modify it based on the previous article.

Suppose your hard disk partition is:

/Dev/sda1/boot 500 M

/Dev/sda2/40G

/Dev/sda3/homeIn the 250G # grub (hd0, 2), grub starts counting from 0.

/Dev/sda4 swap 2G


Note:/dev/sda3 is (hd0, msdos3) in grub2)

Step 1: Copy Fedora-17-i386-DVD.iso to the/home Directory

Step 2: Copy isolinux/vmlinuz, isolinux/initrd. img to/home from the Fedora-17-i386-DVD.iso.

Specific instructions:

Sudo mount-t iso9660-o loop Fedora-17-i386-DVD.iso/mnt

Sudo cp-afr/mnt/isolinux/vmlinuz/mnt/isolinux/initrd. img/home

Note: The/home directory does not have any other iso image, such as a Fedora-16-i386-DVD.iso; otherwise, it is installed with fedora 16 instead of fedora 17.

Step 3: (optional) create a directory in/home/to save the gurb2 module, in case that the installation process is accidentally interrupted after/boot is formatted, and the system cannot be started.

Mkdir/home/f16
Cp-afr/boot/grub/home/f16
Cp-afr/boot/grub2/home/f16



Step 4: restart your computer.

Step 5: (grub1 command)

After entering grub, press c to enter the grub command line:

Run the following command:

---------------------------------------------------------
Root (hd0, 2)# We just saved vmlinuz, initrd. img to this partition (/dev/sda3,/home), so the root must be specified as hd0, 2
Kernel/vmlinuz linux repo = hd:/dev/sda2 :/# Note ,"Hd:"HardDisk, last":/"Specify the installation Source Path
Initrd/initrd. img
Boot

---------------------------------------------------------
Note ,"Hd:"HardDisk, last":/"Specify the installation Source Path. These two parameters are very important:

If noHd:By default, the installer will be installed from the disc. If the fedora 17 disc is not in the optical drive, press boot and the system will directly stop on the black-white startup interface.

If":/", The installer will install grub to the/dev/sda interface after you perform the formatting. Click" next "and an error will be reported directly. The installer will exit. If, if you have formatted/boot, the system will no longer be able to start normally and the grub rescue interface will be displayed when you start the system. If you are unfortunately at this step, at the end, I will provide a recovery method.

Related Article

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.