#What should I do if I cannot enter the system after installing centos from a USB flash drive?
Solution to the problem of being unable to enter the system after installing centos from a USB flash drive:
1. First enter the CentOS system normally through the USB flash drive, and then pull out the USB flash drive.
2. Enter grub to enter grub command line mode. #[root@localhost /]# grub
3. Enter find /boot/grub/stage1 or find /grub/stage1 (mine is this one) #grub> find /boot/grub/stage1 Or grub> find /grub/stage1 The value returned is usually in the following format: (hd0,0)
4. Enter quit to exit grub command line mode
5 , cd to the /boot/grub directory, use the vi command to change (hd1,0) or (hdx,x) in the grub.conf and menu.lst files to (hd0,0), which is the location just found.
6. Enter grub again to enter grub command line mode. Enter in sequence: root (hd0,0); setup (hd0); reboot
7. Enter quit to exit grub mode, then enter init 6 to restart the computer. At this time, you will find that the system does not require a USB disk. You can also enter the system.
Recommended tutorial: "centos tutorial"
The above is the detailed content of What should I do if I cannot enter the system after installing centos from a USB flash drive?. For more information, please follow other related articles on the PHP Chinese website!