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

Source: Internet
Author: User

I wrote an article on how to install fedora 16 from a hard disk:

Http://blog.csdn.net/sabalol/article/details/6972178

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

In/dev/sda3/home 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:" indicates the installation from the hard disk (harddisk), and ":/" specifies the path of the installation source.
Initrd/initrd. img
Boot

---------------------------------------------------------
Note: "HD:" indicates the installation from the hard disk (harddisk), and ":/" specifies the installation Source Path. These two parameters are very important:

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

If ":/" is not specified, the installer installs grub to the/dev/SDA interface after formatting, and click "Next". An error is reported and the installer exits, 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.

Step 5: (grub2 command)

(In grub2, the number of the disk partition starts from 1, with/dev/sad1,/dev/sda2 ,... and so on, because of our vmlinuz, initrd. IMG and so on are stored in/dev/sda3, so msdos3 is used to specify the partition in grub2)

---------------------------------------------------------
Linux (hd0, msdos3)/vmlinuz Linux repo = HD:/dev/sda3 :/
Initrd (hd0, msdos3)/initrd. img
Boot

---------------------------------------------------------

Now you can install fedora 17 like the installation steps on the CD.

After the installation is complete, grub 1 is automatically upgraded to grub 2.

Note: during the installation process, do not format/dev/sda3, that is,/home, when formatting partitions. Otherwise, the installation process will not continue due to serious consequences, because the image source is no longer available!

Step 6: Restore GRUB:

At the grub rescue> prompt, enter:

---------------------------------------------------------
Prefix = (hd0, msdos3)/F16/grub2
Insmod Linux
Normal
---------------------------------------------------------

Now you can enter the preceding installation command.

Step 6.1 USB Method

If you have not saved/boot/grub2 to/home/F16 in advance, you can save the U disk root directory stored in the/boot/grub2 directory of grub2 from other fedora machines, the format of the USB flash disk must be in ext format. Otherwise, grub2 cannot recognize partitions in fat or NTFS format.

Then enter ls In grub rescue> to view the disk partition.

The USB flash drive is generally (hd1, msdos1), if there is only one partition.

At the grub rescue> prompt, enter:

---------------------------------------------------------
Prefix = (hd1, msdos1)/grub2
Insmod Linux
Normal
---------------------------------------------------------

Recovery Method:

Installation instructions:

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.