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

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

coldplay.xixi
Release: 2020-06-19 10:51:45
Original
3011 people have browsed it

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

#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!

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