Hard Disk installation of fedora8-general Linux technology-Linux technology and application information, the following is a detailed description. A few days ago, I tried to install fedora 8 on a broken notebook in the company. The process is tortuous. I will review this process and share it with you. On the other hand, the right should be a warm-up. This is the first time I posted a post (not including the reply :-) on the red union. Because I am still a linux cainiao, something is wrong. please correct me.
Hardware: an IBM 240 version with a 400,196 mb ram, 10 Gb hard drive, and integrated video card and sound card. The machine does not have an optical drive or a soft drive, USB boot is not supported, and an Ethernet card is not available.
10 Gb hard disk partition:
Partition 1: 48 M fat32
Partition 2: 4G fat32
Partition 3: Add a swap partition to the remaining ext file system.
Before installation:
Msdos7.1 and Magic linux are installed in the previous chapter. Later, the supervisor wanted to use this to demonstrate the PPT, And the openoffice I installed in Magic linux seemed to have a problem. In addition, my Office computer used fedora 5, I think there is a new system coming out, and I am a little excited. I want to try it, so I am tempted to reinstall it.
First installation:
Just do what you say. I first decompress the isolinux folder in fedora8 and put vmlinuz and initrd in it. copy the imgfile to partition 1, upload the fedor8 image to partition 2 in the local database, restart the machine, and press 'C' to enter the grub command line.
After boot, the system will immediately display the loaded and decompressed vmlinuz and initrd. img progress (a period of time). Due to insufficient memory, the installation process prompts that the installation will go to text mode for installation. After confirmation, various options are set. I basically use the default settings, when selecting the installation source file, the installation process recognizes my disk as the sd type, and I select the partition 2 and sda5 where the fedora8 image file is located. Installation continues. The installation process is the same as that during normal installation. Seeing that the installation process is about to be enabled, the system also prompts that "the installation process is being started, which may take several minutes". The result is that the installation process is still being started for more than two hours. This is depressing. Isn't it possible to install fedora8? Or is it dead? I have a ctrl + c to cancel the process. Fortunately, it's not a dead machine. Just install it again. Just wait. As a result, after the restart, the system cannot start, and grub cannot be entered. This is big, mbr is rewritten, and the system is not installed yet. The first installation failed ..
Second installation:
Now the problem becomes complicated. No optical drive or soft drive, and USB boot is not supported. You cannot enter the dos mode. If you want to go, you have to: Find a boot disk that can recognize USB, remove the hard drive, and connect the USB cable to a machine with a soft drive (my dormitory desktop, 3 years with a soft drive), then install a dos on the hard drive, and then install a grub4dos, so that you can return to the environment similar to the first installation. If you have the idea, you have to prepare something. The dos7.1 installation program already exists in this document. Download a grub4dos file and put it in partition 1. Then, write a boot file that can identify the USB device into the floppy disk, create a dos boot disk. Now all the tools are ready. Back home in the evening, I disconnected the hard disk of my own machine to avoid accidents. Start work now!
I will write the dos boot disk into the soft drive. Connect the local hard disk to the USB port, enable the desktop to enter the BIOS settings, and select a floppy disk to start first. After a familiar click, I entered a Dos menu interface. I directly press enter to select the default option, and then click again. The system recognized my USB disk! There are two partitions (linux partitions cannot be identified). Here, it is explained that sometimes it takes a long time to search for a usb device, about half an hour, and the machine may not respond for a while. If only the hardware information is displayed, that is, the ID of your hard disk, such as "ID: IBM-*", then wait patiently. When the system prompts the Partition Number of your USB disk, such as "N:", your disk is successfully detected. Then we can operate the USB disk. First, I enter two fat32 partitions. At first, everything is there. It seems that there is a problem with mbr. I use fdisk/mbr to try to restore mbr, so that I can do less. The command fdisk cannot be found! I checked the available commands, and there was no fdisk, or even the sys command. Let's proceed as planned. In the folder where msdos7.1 is stored, enter setup and follow the prompts to install msdos7.1 In the first partition. When it prompts me whether to install the Startup File in MBR, select Yes. In this example, the first step is completed, and the second step is recorded in the grub4dosfolder, and grub.exe is directly input. now the grub interface appears. SELECT command line with the direction key and enter the grub command line interface. So I returned to the first installation, the command line input is the same as that for the first time. It may take a few minutes for me to start the installation process. After three hours, the system was finally installed. It's time to see it. Washing and going to bed, thinking that the new system will be installed early tomorrow morning, I am happy to go to my dreams...
Andy Lau's crazy ringtones woke me up on time. My first reaction was not to turn off the alarm clock, but to see how the book was going. It seems silly to install 44%. A selinux package is being installed. I went to work in other places, so that I could continue to work at home. Ah, I am a little distracted in my class this day. Fortunately, it is not a job that requires concentration... Finally, when I got off work, I tried my own broken "BMW" and imagined several possible situations. First, the installation was successful and the welcome page is displayed, then I fell asleep at the place where I was still 44%. I felt a little uneasy. Home! Open the door! Look at the book on the table! Crash! Or 44%! It's really a bad spirit! No, ctrl + c. It's a big deal! I was comforted by the fact that the MBR of the system was okay and I had to go to dos. Try grub4dos again. After installation, a prompt is displayed: reinstall or the system that is not installed. I chose an unfinished system. The system started to start the installation process, but soon it started to install, but it only installed three packages and congratulations on my installation. I doubt its credibility! I tried to restart it, but the problem occurred. When I started init, the following error message was displayed:
Audit (1198500762.059: 2) enforcing = 1 old_enforcing = 0 auid = 4294967295
Unable to load selinux policy. machine is in enforcing mode. Halting now
Kernel panic-not syncing: Attempted to kill init!
I took a closer look and found that selinux was connected, and I thought of selinux's "bad habits". I thought, is it okay to disable selinux? Since init can be started, I have adopted the following methods:
Restart, enter grub, press 'e' to enter the edit mode, select the line starting the kernel, that is, the line starting with the kernel, and then press 'E, move the cursor to the end, enter a space, write init =/bin/sh, press enter, and press 'B' to start. After the system is started, the prompt "sh-3.5 #" is displayed. Next, perform the following operations:
Sh-3.5 # mount-no remount, rw/(re-mount the file to make it readable and read-only by default)
Sh-3.5 # vi/etc/selinux/config
Change SELINUX = enforcing to SELINUX = disabled. Save and exit.
Sh-3.5 # sync)
Sh-3.5 # mount-no remount, ro/(mount the file again to make it read-only)
Sh-3.5 # reboot
After entering the restart command, the system prompts:
Warning: cocould not determine runlevel-dong soft reboot
Shutdown:/dev/initctl: no such file or directory
Init:/dev/initctl: no such file or directory
Think about how to create an initctl file under/dev. No matter what you do, don't study it patiently. Press the power button twice to restart (this is a broken machine and there is no reset key ). After the system is restarted, the login prompt is displayed. I log on to the system as the root user and find that the desktop is not installed. OO is not installed either. I used this document for the purpose of debugging the device. I checked the minicom and asked if/dev/modem was absent, I created a (ln-s/dev/ttyS0/dev/modem) under/dev/, and then OK. Here, you can also modify the df file of minicom and set the port to ttyS0 (corresponding to com1, and so on ). Then, the USB Nic can be properly identified and configured with ipv6 and ipv4 addresses. Sorry, I don't have a desk, but I'm always confused, and the owner still needs to see the. Doc document. The next step is to install the desktop and OO. I mount the iso image to the/mnt partition and enter Packages. I found that installing dependencies is cumbersome! I have been surfing the Internet and google all said that yum is used for installation. Forget it. Wait till the company uses yum for installation.
The middle thing is omitted... Install yum in the company, connect to the network cable, and configure the address.
# Yum search gnome (all packages starting with "gnome-" are displayed)
# Yum-y install gnome -*
# Yum search openoffice (all packages starting with "openoffice)
# Yum-y install openoffice -*
Wait for a while (several hours. Khan !), The system has finally been fully installed, but it is only for hardware reasons that the system's graphical interface is still a little slow.
Conclusion: To install Fedora 8 on a hard disk, the first step is to have a fat partition; the second step is to use vmlinuz and initrd in isolinux. img decompress it and place it in the fat partition. Step 3, you must be able to enter the pure dos, and a grub4dos (this can start a large file, fedora8 is more than 3 GB, of course, if the grub boot manager already exists on the machine, there is no need to install grub4dos. The first installation of grub4dos in linux is implemented .). If you encounter other problems during installation, read the error information carefully and access the Internet more google, the problem will be solved.
PS: I have finished my work... Haha, thanks to your friends who have read the Post .. Also, thanks to friends on the red union, I found answers to many questions here!
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