Home > Operation and Maintenance > CentOS > What should I do if I cannot enter the system after installing CentOS using a USB flash drive?

What should I do if I cannot enter the system after installing CentOS using a USB flash drive?

coldplay.xixi
Release: 2020-07-28 12:00:17
Original
5839 people have browsed it

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.

What should I do if I cannot enter the system after installing CentOS using a USB flash drive?

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
Copy after login

3. Enter find /boot/grub/stage1 or find /grub/stage1 (mine is this one) #grub> find /boot /grub/stage1 or grub> find /grub/stage1The value returned is usually in the following format:

(hd0,0)
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template