The solution to the problem that the U disk cannot be started after unplugging the U disk after installing Centos: first switch to the root user and enter grub mode; then edit [grub.conf] and enter grub mode again to execute relevant statements; finally restart That’s it.
Solution to the problem that Centos cannot be started after uninstalling the USB disk after installing Centos:
1. Switch to the root user
#su -- root
2. Enter grub mode
#grub
3. Follow the steps below
grub>find /boot/grub/stage1或者find /grub/stage1
Generally, something similar to (hd0,5) will be returned. Remember it. .
grub>quit
4. Edit grub.conf
#vim /boot/grub/grub.conf
Replace all occurrences of (hdx, y) in the file with the values obtained in step 3
5. Re- Enter grub mode and perform the following steps. Note that there is a space between the two commands below.
grub>root (hdx,y) grub>setup (hdx) grub>quit
6. Restart
#shutdown -r now
Recommended related tutorials: centos tutorial
The above is the detailed content of What should I do if Centos cannot be started after unplugging it from a USB flash drive?. For more information, please follow other related articles on the PHP Chinese website!