服务器出问题重启以后/home 下面的东西都没了,有没有什么处理的办法?

43 views
Skip to first unread message

Chunlin Zhang

unread,
Aug 9, 2015, 10:07:23 PM8/9/15
to fuji...@googlegroups.com
(机房空调挂了所以服务器过热自动关机,重启以后东西都没了...) 

df的结果看起来硬盘占用是有的,应该跟重启前是一致的 
# df -h /home 
Filesystem Size Used Avail Use% Mounted on 
/dev/sda4 19T 13T 4.2T 76% /home 

但du出来都没了 
root@bjab:/home# du -h --max-depth 1 
16K ./lost+found 
44K ./buildslave 
28K ./user 
24K ./buildmaster 
116K

google到的目前都没有能解决问题的

muxueqz(张明源)

unread,
Aug 9, 2015, 10:15:36 PM8/9/15
to fuji...@googlegroups.com
是什么文件系统?试试undelete恢复?

--
您收到此邮件是因为您订阅了Google网上论坛上的“福建Linux用户组”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到fujianlug+...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--

Chunlin Zhang

unread,
Aug 9, 2015, 10:51:43 PM8/9/15
to fuji...@googlegroups.com
ext4

muxueqz(张明源)

unread,
Aug 9, 2015, 11:01:05 PM8/9/15
to fuji...@googlegroups.com
嗯,你可以试试,ext4恢复起来不太方便,没有reiserfs那么方便

Chunlin Zhang

unread,
Aug 10, 2015, 2:01:10 AM8/10/15
to fuji...@googlegroups.com
这个工具自己挂了
root@bjab:~# extundelete /dev/sda4 --restore-all
WARNING: Extended attributes are not restored.
extundelete: extundelete.cc:959: int load_super_block(ext2_filsys): Assertion `(((1 << 10) << (&super_block)->s_log_block_size) / (((&super_block)->s_feature_incompat & 0x0080) ? (&super_block)->s_desc_size : 32)) * sizeof(ext2_group_desc) == (size_t)block_size_' failed.
Aborted (core dumped)

muxueqz(张明源)

unread,
Aug 10, 2015, 2:22:06 AM8/10/15
to fuji...@googlegroups.com
去找找别的ext4 undelete工具吧,我研究不多

Chunlin Zhang

unread,
Aug 10, 2015, 2:30:28 AM8/10/15
to fuji...@googlegroups.com
嗯,现在我同事在试testdisk

Vincent Li

unread,
Aug 11, 2015, 4:03:01 AM8/11/15
to fuji...@googlegroups.com
没用fsck去尝试修复?
Best Regards

Vincent Li (李锐聪)

Tel:  +86 15019872334(primary)

MSN: liru...@msn.cn

Chunlin Zhang

unread,
Aug 11, 2015, 4:34:05 AM8/11/15
to fuji...@googlegroups.com
已经放弃格掉重装鸟...
看起来过热的时候重启了很多次
Reply all
Reply to author
Forward
0 new messages