+ -
当前位置:首页 → 问答吧 → debian下删文件死机。

debian下删文件死机。

时间:2004-06-18

来源:互联网

用的是reiserfs的文件系统,用root前几天/home/ mv一个文件a到/root时,mv到一半时,由于意外原因机器重启,现在机器上就有两个a了,能删除/home那里的a,但一删除/root那里的a时。就出现:
debian kernel:reiserfs[1040]:assertion!(is reusable(s,block,1)==0)failed at fs/reiserfs/bitmap,c:355:reiserfs_free_block:vs_4071:can't not free such block
并且死机。
请问怎么办?

作者: bbskill   发布时间: 2004-06-18

估计是那次重启时造成文件系统错误,用类似konoppix等rescue盘光盘启动然后对你的出问题分区进行一次fsck。

作者: guccio   发布时间: 2004-06-18

会不会对其他的数据造成影响。。
reiserfs的文件系统不会这么脆弱吧。。
看了一下它的man,fsck 好象不支持reiserfs吧。

作者: bbskill   发布时间: 2004-06-18

并不是reiserfs脆弱吧。试用其它的方法rm。比如,先建立一个目录,再把此文件移动到目录,再把整个目录rm掉。

作者: faint   发布时间: 2004-06-18

不会吧,fsck会自动修复某些逻辑错误的,应该不会对数据有影响。

作者: guccio   发布时间: 2004-06-18

如果fsck了以后,还是不能用,那么楼主节哀吧!!!

作者: 鹄驿懿   发布时间: 2004-06-18

debian:/home/bbskill# reiserfsck --check /dev/hda11
reiserfsck 3.6.17 (2003 http://www.namesys.com)

*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to [email protected], **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at http://www.namesys.com/support.html. **
*************************************************************

Will read-only check consistency of the filesystem on /dev/hda11
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Fri Jun 18 17:53:12 2004
###########
Partition /dev/hda11 is mounted with write permissions, cannot check it

fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda11 / reiserfs defaults 0 0
应该怎么mount?

作者: bbskill   发布时间: 2004-06-18

# mount -n -o remount,ro /dev/hda11
# reiserfsck --check /dev/hda11

作者: chaisave   发布时间: 2004-06-18

debian:~# mount -n -o remount,ro /dev/hda11
mount: / is busy
是不是应该用resuce盘启动。。再mount

作者: bbskill   发布时间: 2004-06-19

不行亚,我的/dev/hda11是 / 分区,不能remount,请问怎么才能reiserfsck它亚,/ 分区现在mv大文件都好象不行。。

作者: bbskill   发布时间: 2004-06-19

要不用 LiveCD 启动,再用它的 fsck 检查你的 / 分区试试吧。

作者: chaisave   发布时间: 2004-06-19

没有LiveCD亚,请问还有什么其他的办法来检查/ 分区吗??

作者: bbskill   发布时间: 2004-06-19

还可以把你的硬盘挂到其他机器上去,让它帮你 fsck。

作者: chaisave   发布时间: 2004-06-19

不会这么麻烦吧。。,可以把/分区mount成read only?我试过,修改fstab,加上ro,但重启时出现panic。
那平时用reiserfs作/分区的是怎么fsck /分区的呢?

作者: bbskill   发布时间: 2004-06-19

引用:
最初由 bbskill 发表
不会这么麻烦吧。。,可以把/分区mount成read only?我试过,修改fstab,加上ro,但重启时出现panic。
那平时用reiserfs作/分区的是怎么fsck /分区的呢?
u can try it and remember to add "single" to your kernel boot option so that you can boot in single user mode and then fsck your reiserfs partition.

作者: guccio   发布时间: 2004-06-19

太感谢了,现在可以了,谢谢!!

作者: bbskill   发布时间: 2004-06-19

热门下载

更多