Cannot access Input/output error

来自linux中国网wiki
Evan讨论 | 贡献2020年2月18日 (二) 08:27的版本
跳到导航 跳到搜索

trouble

 内网机器 PHP的人 随便重启,然后机器再起来出事了 
ls /home 
cannot access Input/output error

和乱码
d??????????   ? ?    ?        ?            ? home

shooting

lsof  | grep home 
有关home分区的程序先kill掉 


然后关掉机器 ,再硬重启  
如果不行就得  
fsck

例如如果上面的 /home  at  /dev/sda1
1.应该是采用  修复命令  fsck  
fsck -s /dev/sda1
意外断电导致/dev/sda1分区的文件系统崩溃,所以针对这个分区进行修复,如果其他分区也出现类似情况,可以进行全盘修复
 

2.机器重启 


see also

“Input/output error” when accessing a directory

cannot access Input/output error