First, we installed centos in the virtual machine. It was not very good. So we wanted to install centos on the hard disk, but we didn't have a DVD. What should we do. How to install the disk. I searched the internet and finally solved the problem.
At the beginning, I copied the ISO file of the DVD to the root directory of an NTFS partition and started it with grub for DOS, but I couldn't find the ISO file of the DVD. Some people on the Internet said that they could not recognize it in the NTFS partition, and they could not use grub for DOS. They had to use the original grub, so in windows, I used pq8.0 to format an ext3 partition, but how can I copy the ISO file? I can also find a way to use the ext2fs tool, mount an ext3 partition in windows and perform the same operations as normal partitions! Copy the ISO file and copy vmlinuz and initrd. IMG from isolinux to the root directory (use daemon tool or ultraiso ).
After I started the system this time, I went to the grub command line (my grub is in the old peach winpe, it looks like the original version, and it is easy to use it anyway ),
Think about the partition of the hard disk in your ext partition. My partition is hd2 and 4, that is, the 3rd partition of the 5th hard disks (the first disk is a USB flash drive, the second disk is the first disk and the third disk is the second disk). The command is as follows:
Root (hd2, 4)
Kernel (hd2, 4)/vmlinuz
Initrd (hd2, 4)/initrd. img
Boot
After the installation starts, you need to find the location of the image file. centos has different hard disk numbers and grub, and the hard disk priority is higher. For me, SDA indicates the first hard disk, SDB indicates the second hard disk, SDC indicates the USB flash disk, and each hard disk has its own partition, counting from 1, so there is sda1, sda2 ,..., sdb1 ,..., so my image file should be in sdb5. (if you don't know, you can try it one by one ). The next step will be smooth sailing !!
Enjoy!
Note: Later I tried this method to install fedora 13 because I couldn't find the location of the image file. I don't know which of the following experts knows what is going on.