Solution to the problem of being unable to enter the system after installing CentOS using a USB disk: First enter the centos system and enter the grub command line mode; then exit the grub command line mode and change [hd1,0] to [hd0, 0]; then enter the grub command line mode again and enter the relevant code; finally exit and restart.
Solution to the problem of being unable to enter the system after installing CentOS using a USB flash drive:
1. First use the USB flash drive to normalize Enter the CentOS system, and then pull out the USB flash drive.
2. Enter grub to enter grub command line mode.
#[root@localhost /]# grub
3. Enterfind /boot/grub/stage1
orfind /grub/stage1
(mine is this one)#grub> find /boot /grub/stage1
orgrub> 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 and use the vi command to change (hd1,0) or (hdx,x) in the grub.conf and menu.lst files to (hd0,0
) 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, and then enter init 6 to restart the computer. At this time, you will find that the system can enter the system without a USB flash drive.
Recommended related tutorials:centos tutorial
The above is the detailed content of What should I do if I cannot enter the system after installing CentOS using a USB flash drive?. For more information, please follow other related articles on the PHP Chinese website!