Experiment: In the case of partitioning, rm-rf/boot and/etc/fstab, recovery
First of all, we look at what is put in the/etc/fstab inside, you can see that the storage is the partition of the mount situation, delete partition will not be automatically mounted
Next check/boot is stored in Linux core file/boot/vmlinuz-version-release, and boot loader grub, auxiliary kernel load hardware-driven pseudo-root system/boot/ Initramfs-version-release.img, missing these items will cause Linux to not boot
Okay, I'm going to start deleting it.
Rm-rf/boot/etc/fstab; reboot
You can see the machine. Error code ERROR15 to remember this phenomenon, later encountered the same problem will know why
The repair process is divided into two steps
Fix/etc/fstab
1 into the rescue mode, the process will no longer be exhausted, the use of DF to view the partition condition found that the partition cannot be mounted to the/MNT/SYSIMAGE,LSBLK command is not available
Well, fortunately fdisk-l can still use, but we have no way to know the mount of the partition, do not know which partition is mounted in/under, which mount the/app, but we remember each partition under the characteristics of the file, just now no mount no way to view, so we can try to mount, in the following partition list in/dev /SDA1 behind A *, all it is boot-up, should be mounted in/boot,/DEV/SDA5 is the swap partition mounted under/swap, but which is/cannot be judged
2 we create a temporary mount point
Mkdir/mnt/tmp
3 Mount/dev/sda{1,2 ...} separately/mnt/tmp
4 View the file ls/mnt/tmp under the partition to find out the partition attached to/directory with the file characteristics
6 Creating a partitioned information table Vim/etc/fstab
Vim/mnt/tmp/etc/fstab
/dev/sda1/boot EXT4 Defaults 0 0
/DEV/SDA2/EXT4 Defaults 0 0
/dev/sda3/app EXT4 Defaults 0 0
/DEV/SDA5 swap swap defaults 0 0
Exit;exit
So far the/etc/fstab has been repaired and the next fix/boot we reboot the discovery still does not start, the error message becomes as follows, only one cursor
Fix/boot
Method One:
1 re-enter rescue mode, with DF View, partition has been automatically mounted mounted to/mnt/sysimages successfully
2 mounting the CD, installing the kernel
Mkdir/mnt/cdrom
Mount/mnt/cdrom
rpm-ivh/mnt/cdrom/packages/kernel.xxx.rpm--root=/mnt/sysimages--force
3 cutting root, repairing grub
Chroot/mnt/sysimage
Grub-install--ROOT-DIRECTORY=/MNT/SYSIMAGE/DEV/SDA
4 Writing Grub.conf
Vim/boot/grub/grub.conf
Default=0
Timeout=5
Title Linux
Kernel/vmlinuz-2.6.32-696.el6.x86_64 root=uuid=6da11b60-dd80-460a-a00f-beb8b3373b5c
Initrd/initramfs-2.6.32-696.el6.x86_64.img
Exit;exit
Method Two:
1-in rescue mode
2 Cutting root: Chroot/mnt/sysimage
3 fix/boot/initramfs:mkinitrd/boot/ininramfs-' uname-r ' uname-r '
4 Mounting discs: mount/dev/sr0/mnt
5 copying the disc core to/boot:cp/mnt/isolinux/vmlinuz-2.6.32-696.el6.x86_64/boot
6 Fix Grub:grub-install--ROOT-DIRECTORY=/MNT/SYSIMAGE/DEV/SDA
7 Writing/boot/grub/grup.conf
Vim/boot/grub/grub.conf
Default=0
Timeout=5
Title Linux
Kernel/vmlinuz-2.6.32-696.el6.x86_64 root=uuid=6da11b60-dd80-460a-a00f-beb8b3373b5c
initrd/initramfs-' uname-r '. img
Turn from 78119132
Linux Row Error Delete/etc/fstab and/boot how to recover