About the system restart error give root password for maintenance

Source: Internet
Author: User

Several virtual machines need to be restarted, not connected after reboot, see through the management software

Your system appears to has shut down uncleanly
Press Y within 1 seconds to force file system integrity check ...
Checking root filesystem
/contains a file system with Errors,check forced.
/:
Unattached Inode 813065


/:unexpected inconsistency; RUN FSCK manually.
(I.e.,without-a or-p options)
[FAILED]

An error occurred during the file system check.
dropping to a shell; The system would reboot
When you leave the shell.
Give Root password for maintenance
(or type control-d to continue):


Start by ctrl+d or jump to this page, in is to enter the root password, can enter the system, began to use the online method to repair the system.

Fsck-y/dev/vda1

Fsck-y/dev/vda3

Restart the system after the discovery or the original problem, with df-th view,/boot and the new partition is not hanging on the

# df-th
Filesystem Type Size used Avail use% mounted on
/dev/vda3 ext4 42G 13G 27G 32%/
Tmpfs tmpfs 1.9G 0 1.9G 0%/dev/shm

First put/re-mount

Mount-rw-o remount/

Mount Boot

Mount/dev/vda1/boot

Again to see/etc/fstab before the hard disk mounted, found later added a VDB

# Cat/etc/fstab

UUID=FC9D60A8-E39B-4C20-8D24-8F7975E6F1D7/EXT4 Defaults 1 1
Uuid=e1de6afb-150c-407d-80ec-e2c03ebcd8dd/boot EXT4 Defaults 1 2
Uuid=c6b62139-385b-4891-b9e2-15876655cce9 swap swap defaults 0 0
TMPFS/DEV/SHM TMPFS Defaults 0 0
Devpts/dev/pts devpts gid=5,mode=620 0 0
Sysfs/sys Sysfs Defaults 0 0
PROC/PROC proc Defaults 0 0
/DEV/VDB1/HADOOPWS ext4 defaults,noatime 1 1

Fdisk-l found that there are no newly added disks.

Solutions

chmod A+rw/etc/fstab

Vim/etc/fstab

Comment out the following line

#/dev/vdb1/hadoopws EXT4 defaults,noatime 1 1


Rebooting the system reboot

Re-mount the hard drive


This article is from the "My Heart" blog, please be sure to keep this source http://leeforget.blog.51cto.com/6950397/1629505

About the system restart error give root password for maintenance

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.