linux断电后,出现fsck失败的解决方法
来源:互联网 发布:淘宝客推广软件哪个好 编辑:程序博客网 时间:2024/06/10 09:08
os启动的时候,会有个检查filesystem是否正确的操作,如果发现filesystem is inconsistent,就会自动执行fsck,导致filesystem inconsistent的最主要的原因是power off,就是我们说的硬关机。
执行fsck的时候,如果发现无法对某个分区的filesystem进行check,fsck将会failed,然后系统进入repair filesystem模式,现象为:
Finding module dependencies; modprobe: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 systm will reboot
*** when you leave the shell Give root password for maintenance
(or type Control-D to continue):
Login incorrect. (Repair filesystem) 1 #
此时,输入root密码,就会进入repair filesystem命令行,在这里可以通过暂时卸载错误的或不存在的挂载目录,来使的os正常启动,启动后可以重新对某个分区进行fsck或其他操作。这里有个问题是,在repair filesystem模式下,根分区是只读的,所以无法修改/etc/fstab来卸载某个挂载点,可以通过如下命令使其可写:
(Repair filesystem) 1 # mount -o remount,rw /
然后就可以通过vim /etc/fstab来进行修改。
这里仅仅介绍了一些原理,具体不同的应用场景对应的操作方法参见《linux断电开机后进入repair system解决方法 》
- linux断电后,出现fsck失败的解决方法
- CentOS 6.5断电后启动出现:unexpected inconsistency run fsck manully
- VM 安装 linux 后 出现“Vmware Easy Install”的解决方法
- linux 内核修改分辨率后出现的WARNING解决方法
- 双系统 linux引导失败—“/dev/xxx unexpected inconsistency, run fsck manually”的解决
- struts2 上传失败后 无限出现 input 解决方法
- 记录一次linux错误的修复(linux启动出现UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY)
- 先安装SQL Server 2008 R2后再安装Virtual Studio后出现远程过程调用失败的解决方法
- iis启动失败后的解决方法
- iis启动失败后的解决方法
- mysql卸载后重装失败的解决方法
- mysql卸载后重装失败的解决方法
- root 后,adb remount失败的解决方法
- 【XP出现延缓写入失败的解决方法】
- ubuntu突然断电后,重启失败解决方案
- mysql断电后启动失败数据库表损坏解决
- 基于linux操作系统开机失败,错误原因:断电异常的解决办法
- Linux 启动时 正在决定 eth0 的 IP 信息失败后不能上网的解决方法
- 喜欢你很久了
- ABBYY Cup 2.0 - Easy, problem: (C1) Party 并查集水题
- Android之UI学习篇十:使用TabHost实现微博客户端界面
- Codeforces Beta Round #35 (Div. 2), problem: (D) Animals DP
- 2012年终总结
- linux断电后,出现fsck失败的解决方法
- Java 文件I/O
- BIT 1011 Maximum Sum II
- 带权图
- UVA 11520 - Fill the Square
- 为何tapdisk未包含进linux3.0 的mainline
- Codeforces Beta Round #79 (Div. 1 Only), problem: (B) Buses 路径DP
- c# 如何通过反射 获取属性值
- hadoop支持的数据类型