In the Linux system, due to operational errors, the /boot/grub/grub.conf file may be damaged or lost. The grub prompt appears after booting. And Linux commands can't be used. What should I do if this happens? The following small series will introduce you to the solution to the corruption or loss of the Linux system grub.conf file.
Solution:
1, first, the disk into the drive system
2, reboot the computer
3, modify the BIOS boot sequence Change to boot from CD
4. After startup, the prompt interface appears, there are options at the bottom of the screen, here we directly input
# linux rescue Enter system rescue mode
5, #chroot /mnt/sysimage (/mnt/sysimage is the root directory of our machine) Mount the system image, so the command can be used
6, # vi /boot/grub/grub .conf We manually write a grub.conf file ourselves, but be careful to write the kernel and process when writing. After editing, save and exit, then, two exit exit the system, enter the restart
7, do it, the system can be started normally
In fact, this is quite simple, but sometimes This is still not possible, sometimes reinstalling the kernel kernel and booting grub. This is very troublesome. Therefore, in order to ensure the security of the system in the future, we still have to back up the grub file, and then directly copy the backup file to /boot/grub/.
The above is the Linux system grub.conf file is damaged or lost repair method introduced, of course, if you back up the grub.conf file first, then you do not have to worry about this situation.
We all know that the tar command under Linux system can be used to decompress files
open and fopen are the calling functions of the Linux system. Because they are simi
The PPA repository is a software depot designed for Ubuntu users and is easier to u
We all know that one computer can follow two different systems at the same time, that is, we call th
How Linux Expands Disks under VMware
Detailed explanation of the functions and parameters of the Linux system ar command
What should I do if the syntax of the Linux Vi editing code is not colored?
Detailed steps for mounting Windows shared files in Linux
Linux Tips for Installing Perl Modules in CPAN
Ubuntu U disk start error BOOT ERROR how to do?
Usage of Linux global variable jiffies
Linux system how to use bunzip2 command
Linux uses vim for multiple file lookup and replacement methods
Linux view method of memory resource usage
How to create a system restore point in Windows 7
Convenient and fast Win7 super taskbar
Win8.1 RT version can not run the general application after installing Update 3?
How to use the LAN sharing setting tool Win7 LAN sharing setting method
What input method has the most expressions? The most popular input method recommended
What are the hardware requirements for Windows 7 XP mode?
Win7 uses UltraISO to make U disk boot disk method
How to install Autossh on Linux system
Windows8.1 open folder to be stuck (fake death) processing method