Linux administrators should be aware of the configuration information in grub.conf, you can use the CD to enter the linux rescue mode,
/boot system boot directory and /etc/fstab deleted failure recovery
The /boot directory contains the kernel and memory disk files for grub.conf and system boot. This directory is deleted. Generally, the grub configuration interface is not used, and there is a prompt error15. The solution can only rely on the system. The rescue mode of the disc. Let's examine the worst case. When the /boot directory is deleted, fstab is also deleted. How do I recover?
If the system does not restart, don't restart. If it has been restarted and stays in the grub interface, use Linux rescue mode to do the following
1. Install initrd-2.4.20-8. Img
Copy isolinux/vmlinuz from the first system CD to the /boot/directory and execute the following command
mkinitrd /boot/initrd-2.4.20-8.img 2.4. 20-8 #Set the loaded memory disk file
2. Install grub
Enter the mount command on the command line to get the following information
[root@localhost root]# mount
/dev/sda2 on /type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw )
/dev/sda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
None on /dev/shm type tmpfs (rw)
You can also use df -h
or findfs (see more intuitively). Here is the result of findfs output:
[root@localhost root]# findfs LABEL=/boot
/dev/sda1
Because everything in the /boot directory has been deleted, installing grub requires re-creating the grub file in the /boot directory.
a. If you know the contents of the original system grub.conf or have grub The .conf backup is as simple as placing a grub.conf file directly under /boot/grub and entering the following command to install grub
grub-install /dev/sda
b, If you don't know the contents of grub.conf
Go to the /usr/share/grub/i386-redhat/directory and copy all the files to the /boot/grub directory
When using a computer, it often interacts with some encrypted documents, such as Zip, Rar, and even
For beginners, the learning of Linux commands is not so simple. Many beginners rarely use commands o
STM32 The storage medium corresponding to the three boot modes is the three boot modes corresponding
ACL is an abbreviation of Access Control List. The main purpose is to provide detailed permission t
The array cannot be unmounted and the VCS dual-machine switching fails.
Install libxml2 "bin/rm: cannot remove `libtoolT: No such file
Possible problems with the nagios installation process
Centos setting folder open mode: open folder in the same window
Rsync installation configuration basic tutorial
LINUX installs VPN with 800 errors
Shell file set weight naming method (Rename!)
Linux operating system boot record backup and recovery method
Linux security mechanism detailed
Windows 7 Virtual XP Mode has six major flaws
Windows 8 hides 6 major functions
How to modify the sleep time setting of Win10 system
Unclear and fierce! Experts easily crack the U disk installation xp system barrier
How to take screenshots of windows8? Win8 desktop full screen screenshot graphic tutorial
Windows7 operating system basic tutorial Basic 2: use the mouse (a)
Windows8 system can not access the local photos how to do
Windows 7 System Resource Manager Folder Smart
2016 Win10 Mobile Redstone update to see first Look forward to new features /release schedule