Solution for SuSE to repair system after power-off

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.