Install fedora 8 on a hard disk

Source: Internet
Author: User
Tags line editor
★1. Preparations before installation:

To install fedora 8 on a hard disk, make sure that the disk that stores the feora 8 image file is in the FAT32 format, because NTFS cannot be identified in either Linux or dos. In addition, you need to leave a part of the space for the Linux system. ◆ the size of the space should be at least 10 Gb.

★2. Download the grub for dostool (Http://download.gna.org/grub4dos/), Which is used to boot into the Linux installation process at startup. The downloaded grub for DoS Files (includingMenu. lst, grldr, grub.exe) Decompress the package to the C root directory. Instead of copying the decompressed folder to the C root directory.

★3. Download the ISO image file of Fedora 8.Http://fedoraproject.org/en/get-fedora

★4. Modify boot. ini.

Open the file boot. ini in the root directory of the C drive, and addC: \ grldr = "Start Grub", Save, and exit. Boot. INI is a system file. It requires a bit of skill to open it. Here are two methods for you:

1) start -- set -- control panel -- System -- Advanced -- start and fault recovery -- set -- edit (or right-click-my computer -- properties -- System -- Advanced -- start and fault recovery -- Set -- edit ), at this time, an open notepad will be written, which contains the original boot. INI content, modify it.

2) If you have a basic dos knowledge, run cmd to open the command line editor, and then enter the command:

CD \/* to the C root directory */
Edit boot. INI/* edit the boot. ini file */

Modify it, press ALT, open the "file" option, save and exit.

(When you restart the system, you will find that you have selected one more System Option option when starting. One is Microsoft Windows XP and the other is grub. You do not need to restart the computer here)

★5. Now, if the installation package of Fedora 8 has been downloaded to your computer, use the virtual optical drive or RAR to open the image installation file you downloaded.Isolinux"DirectoryVmlinuzAndInitrd. imgCopy the two files to drive C (the installation disk of your current system), NTFS or FAT32.

★6. Find the menu. LST file on disk C, open it in notepad, and add the following three lines at the end (only in blue ):

Title install-fedora 8/* This is a menu identifier, which displays install-Fedora 7 */
The address of the kernel (hd0, 0)/vmlinuz/* file vmlinuz is (hd0, 0 )*/
Initrd (hd0, 0)/initrd. img/* The initrd. IMG file address is (hd0, 0 )*/

/* Kernel (hd0, 0)/vmlinuz and initrd (hd0, 0)/initrd. img
Is a batch processing command, the system will automatically execute.

= Or delete all contents in the menu. LST file, and then copy the following content to it.

Color black/Cyan yellow/Cyan
Timeout 30
Default 0
Fallback 1

Title install fedora 8
Kernel (hd0, 0)/vmlinuz
Initrd (hd0, 0)/initrd. img
Boot

Title back to (windwos OS)
Rootnoverify (hd0, 0)
Makeactive
Chainloader + 1

Title CommandLine
Savedefault -- Wait = 2
CommandLine

Title reboot
Savedefault -- Wait = 2
Reboot

Save and exit.

This can also be left empty, but you need to enter the following command at the prompt grub> during installation:

Kernel (hd0, 0)/vmlinuz
Initrd (hd0, 0)/initrd. img
Boot

Save and exit.

Here (hdx, x) the number in the first X indicates which disk is used, "0" indicates the master disk, "1" indicates the slave disk, and the number in the second X indicates the zone, "0" is the first primary partition of the hard disk, that is, the C disk of the primary disk and the D disk of the slave disk (this is the case of two hard disks ). Because my computer is a hard disk, and (hd0, 0) is the primary partition of the hard disk (the first partition, not exactly the C disk ).

★7. restart the computer. SelectStart grub. Then selectInstall fedora 8. If not, the installation will start.

If the system prompts an error message, you must return to the grub selection list and select CommandLine. In the displayed command line GRUB: \>, enter the find/vmlinuz command and press Enter, the system displaysCodeAssume that the computer displays (hd0, 2) and write down the code.

Restart the computer, select Windows XP, and Open menu. lst. Set:

Title install-fedora 8
Kernel (hd0, 0)/vmlinuz
Initrd (hd0, 0)/initrd. img

Change (hd0, 0) to the code you just wrote down, that is (hd0, 2 ):

Title install-Fedora 7
Kernel (hd0, 2)/isolinux/vmlinuz
Initrd (hd0, 2)/isolinux/initrd. img

Save and exit.

★8. restart the computer and selectStart grub-install-fedora 8.

At this time, the system starts to run and install automatically. All you need to do is

Select the language and keyboard type. Next, select hard disk and select the disk where the fedora 8 image file to be installed is located in the hard disk list. In this case, sd1, SD2, sd3, etc. are displayed in the list ...... Let's assume that the disk where the image file of Fedora 8 is located is sd5. If you don't know it, just try again and there will be no problem, it's just a little bit of trouble (it's best to put the installation file in the root directory to save the trouble of entering the path ).

OK! The next step is the same installation interface as the CD installation ......

---------- My studio

I installed it on a mobile hard disk. Here is my experience:

1. It is best to delete a partition in Windows to generate some unpartitioned hard disk free space for installing fedora8. In this way, you can choose to use free space during installation to avoid affecting Windows.

2. During installation, although I put the image file in a FAT32 partitionProgramI still recognized all my NTFS partitions. I wonder if it is feasible to put the image file in the NTFS partition.

3. When selecting the package to be installed, it is best to choose to customize it right away. Otherwise, the package cannot be found after installation. I did not find the package anyway. Dizzy !!

4. There is no difference between a mobile hard disk and a local hard disk.

5. Restart after installation is a startup interface of Fedora. It looks like you can only access fedora. In fact, there are several seconds for you to choose the system to start, but the default is fedora. You can modify the settings in the following way to enable the default settings to go to Windows:

Enable/boot/GRUB/grub. conf

# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# Notice: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 8)
# Kernel/vmlinuz-version Ro root =/dev/volgroup00/logvol00
# Initrd-version.img/initrd
# Boot =/dev/HDC
Default = 0 (this is the default boot, starting from 0. To 1, you can directly boot from XP .)
Timeout = 5 (the default wait time after the grub interface appears, in seconds)
Splashimage = (hd0, 8)/GRUB/splash.xpm.gz
Hiddenmenu
Title Fedora Core (2.6.18-1.2798.fc6) (BOOT option name .)
Root (hd0, 8)
Kernel/vmlinuz-2.6.18-1.2798.fc6 Ro root =/dev/volgroup00/logvol00 rhgb quiet
Initrd/initrd-2.6.18-1.2798.fc6.img
Title other .)
Rootnoverify (hd0, 0)
Chainloader + 1

Yes, you have done it !!

Haha, I installed Linux on the hard drive for the first time.

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.