First case: the disk partition problem caused by abnormal shutdown does not properly enter the system
What are the common causes and solutions to the following problems?
Finding module dependencies;
Modprobe: can't locate module block-Major-3
Fsck. ext3possibly non-existent or swap device?
Such device or address while trying to open/dev/hdb1
/Boot: clena, 41/26104 files. 12679/104391 blocks [failed]
* ** An error occurred during the file system check
* ** Dropping you to a shell; the specified M will reboot
*** When you leave the shell
Give root password for maintenance
(Or type control-D to continue ):
Login incorrect.
(Repair filesystem) 1 #
If it is caused by abnormal shutdown, use fsck/dev/hdax and reboot to access it, or use fsck to fix it. Press enter.
Case 2: failed to enter the system due to/etc/fstab file editing error
The solution is to modify the/etc/fstab file to delete the wrong or nonexistent Mount directory in the original normal format,Originally, the two partitions/dev/vda1 and/dev/vda2 were modified to/dev/xvda1 and/dev/xvda2.
Operation: Follow the prompts to enter the repair mode login incorrect.
(Repair filesystem) 1 # Vim/etc/fstab
However, the read-only system file is protected and cannot be modified. Run the following command to change the System File Permission to read/write (RW)
(Repair filesystem) 1 # Mount-O remount, RW/
Make the root directory writable. You can fix the/etc/fstab file to make it writable. Then you can modify the VI file.
Save WQ
(Repair filesystem) 1 # reboot