Give root password for maintenace solution for Linux system not booting

Source: Internet
Author: User
Tags uuid

Give root password for maintenace solution for Linux system not booting

Problem:

This morning the boot discovery system could not be started, the information given is:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4E/20/wKioL1RgOM2yHpWbAAWsYYMCA_8220.jpg "title=" 1.jpg " alt= "Wkiol1rgom2yhpwbaawsyymca_8220.jpg"/>

Not very clear what meaning, probably because the disk can not be loaded caused by the system does not boot.


My system has two partitions, sda1 and sda2,sda1 are the/boot partition,/SDA2 is a logical volume, below the "root partition" "Home Partition" "Swap partition" "Data Partition";

Using DF-T to view the mounted partitions, only/and/home two partitions are mounted, the/boot partition and the data partition are not mounted, that is, the system does not mount the/boot partition at all, and of course it is not possible to boot the system.


Solution: Think back, last night before the machine, I modified the fstab file, the/etc/fstab file replaced with the previous system Fstab file in order to less two lines boot automatically hanging on the disc, the result becomes the present appearance (alas, the real pit, early know to write ...)


Then began to modify the/etc/fstab file, then found that the partition hanging in the root directory is read-only, even if the root user can not modify the above content, have to use: Mount-o REMOUNT,RW/re-mount the root directory as read-write mode, again modify/etc/ Fstab file, the system default/boot Mount partition uses the UUID, in fact, using/dev/boot is the same.

So the line is modified to:/dev/sda1/boot EXT4 defaults 1 2

Then the reboot will be OK.


Attached: When solving the problem, I have thought to look at the boot uuid, but it seems to be impossible to see in that environment:

How to view the UUID (after repair):

[Email protected] ~]# Ll/dev/disk/by-uuid/
Total 0
lrwxrwxrwx 1 root root 10:16 1fd416ac-9907-4b88-bb07-66b7f03f18b9. /.. /dm-1
lrwxrwxrwx 1 root root 10:16 5eb0abee-da4b-4aae-9543-e46a9649d066. /.. /dm-0
lrwxrwxrwx 1 root root 10:16 938e6d10-65e3-410e-b6b8-1764289a14fd. /.. /dm-3
lrwxrwxrwx 1 root root 10:16 d137117e-9f8f-40f6-84a6-206cf1e56ca6. /.. /sda1
lrwxrwxrwx 1 root root 10:16 e7d960fb-687c-408c-a065-b9ae32fe4dab. /.. /dm-2
[Email protected] ~]#


There are a lot of things to see under/dev/disk: By-id by-path by-uuid



Summary: To reproduce this situation, it is possible that the/boot partition could not be loaded due to


Hardware: Lenovo Notebook Y460 Centos6.5 System application software: Desktop Environment (GNOME)


This article from "Forest blog" blog, declined reprint!

About Linux system does not boot, prompt give root password for maintenace solution

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.