关于linux系统无法启动,提示Give root password for maintenace的解决办法
2014-11-10 12:27
1476 查看
关于linux系统无法启动,提示Give root password for maintenace的解决办法问题:
今天早上开机发现系统无法启动了,给出的提示信息为:
没有太明白什么意思,大概是因为磁盘没法加载造成的系统无法开机。
我的系统有两个分区,sda1和sda2,sda1为/boot分区,/sda2为逻辑卷,下面有“根分区”“home分区”“swap分区”“data分区”;
使用df -T查看一下挂载的分区,只有/和/home两个分区挂载上去了,/boot分区和home以及data分区都没有挂载,也就是说系统根本没有挂载/boot分区,当然没法启动系统了。
解决:回想了一下,昨天晚上挂机之前,我修改过fstab文件,将/etc/fstab文件替换成了之前系统的fstab文件为了少些两行开机自动挂在的光盘,结果就成了现在的模样(唉,真坑,早知道就自己写了...)
然后开始修改/etc/fstab文件,这时发现挂在到根目录上的分区是只读的,即使是root用户也无法修改上面的内容,只好使用:mount -o remount,rw / 将根目录重新挂载为读写模式,再次修改/etc/fstab文件,系统默认的/boot挂载的分区使用的是UUID,其实使用/dev/boot也是一样的。
于是就把这一行修改为:/dev/sda1 /boot ext4 defaults 1 2
之后重新启动就ok了。
附:在解决问题的时候,曾经想过查看boot的UUID,但是好像在那种环境下没法看到:
查看UUID的方法(修复之后):
[root@zhangsp ~]# ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Nov 10 10:16 1fd416ac-9907-4b88-bb07-66b7f03f18b9 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 10 10:16 5eb0abee-da4b-4aae-9543-e46a9649d066 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 10 10:16 938e6d10-65e3-410e-b6b8-1764289a14fd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 10 10:16 d137117e-9f8f-40f6-84a6-206cf1e56ca6 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 10 10:16 e7d960fb-687c-408c-a065-b9ae32fe4dab -> ../../dm-2
[root@zhangsp ~]#
/dev/disk下还有很多可以查看的内容:by-id by-path by-uuid
总结:重现这种情况,很有可能是无法加载/boot分区造成的
硬件:联想笔记本Y460 Centos6.5系统 应用软件:Desktop环境(gnome)
今天早上开机发现系统无法启动了,给出的提示信息为:
没有太明白什么意思,大概是因为磁盘没法加载造成的系统无法开机。
我的系统有两个分区,sda1和sda2,sda1为/boot分区,/sda2为逻辑卷,下面有“根分区”“home分区”“swap分区”“data分区”;
使用df -T查看一下挂载的分区,只有/和/home两个分区挂载上去了,/boot分区和home以及data分区都没有挂载,也就是说系统根本没有挂载/boot分区,当然没法启动系统了。
解决:回想了一下,昨天晚上挂机之前,我修改过fstab文件,将/etc/fstab文件替换成了之前系统的fstab文件为了少些两行开机自动挂在的光盘,结果就成了现在的模样(唉,真坑,早知道就自己写了...)
然后开始修改/etc/fstab文件,这时发现挂在到根目录上的分区是只读的,即使是root用户也无法修改上面的内容,只好使用:mount -o remount,rw / 将根目录重新挂载为读写模式,再次修改/etc/fstab文件,系统默认的/boot挂载的分区使用的是UUID,其实使用/dev/boot也是一样的。
于是就把这一行修改为:/dev/sda1 /boot ext4 defaults 1 2
之后重新启动就ok了。
附:在解决问题的时候,曾经想过查看boot的UUID,但是好像在那种环境下没法看到:
查看UUID的方法(修复之后):
[root@zhangsp ~]# ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Nov 10 10:16 1fd416ac-9907-4b88-bb07-66b7f03f18b9 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 10 10:16 5eb0abee-da4b-4aae-9543-e46a9649d066 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 10 10:16 938e6d10-65e3-410e-b6b8-1764289a14fd -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 10 10:16 d137117e-9f8f-40f6-84a6-206cf1e56ca6 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 10 10:16 e7d960fb-687c-408c-a065-b9ae32fe4dab -> ../../dm-2
[root@zhangsp ~]#
/dev/disk下还有很多可以查看的内容:by-id by-path by-uuid
总结:重现这种情况,很有可能是无法加载/boot分区造成的
硬件:联想笔记本Y460 Centos6.5系统 应用软件:Desktop环境(gnome)
相关文章推荐
- linux系统无法启动提示give root password for maintenance的解决方法多种
- linux系统无法启动提示give root password for maintenance的解决方法
- linux系统提示Giveroot password for maintenance的解决方法详解
- 启动后系统将提示“ Give root password for maintenance ”
- linux开机出现Give root password for maintenance (or type Control-D to continue):解决办法
- mysql启动提示 access denied for user root@localhost(using password:YES) 解决办法总结
- 关于linux(CentOS)无法更新安装软件出错的解决办法(提示The program package-cleanup is found in the yum-utils package)
- ERROR 1045 (28000): Access denied for user root@localhost (using password: NO) 的解决办法 ---linux
- 64位linux系统无法运行Android sdk的adb和aapt,提示No such file or directory的解决办法
- Linux提示no crontab for root的解决办法
- windows与linux双系统直接删除Linux后无法启动的解决办法
- eclipse 无法启动AVD,出现Starting emulator for AVD '' PANIC: Could not open: 错误提示的解决办法
- CentOS 重启时出现 “Give root password for maintenance” 错误的解决办法
- wps for linux出现“系统缺失字体”错误提示的解决办法。
- give root password for maintenance错误解决办法!
- linux 系统出现Give root password for maintenance 问题
- 在windowsxp系统内删除linux系统分区后出现grub error 22系统无法启动的解决办法
- 修复linux损坏后文件系统–Give root password for maintenance
- give root password for maintenance错误解决办法!
- Linux文件系统破坏,导致系统无法启动解决办法