免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1360 | 回复: 5
打印 上一主题 下一主题

root用户无法删除/查看文件 [复制链接]

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:55:28
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-21 16:19 |只看该作者 |倒序浏览
root用户无法删除/查看文件

不知道什么原因,请高手指点.

我现在想把这个文件删除!  有什么办法?


  1. [root@hd ico]# who
  2. root     pts/0        Nov 21 15:25 (192.168.0.55)
  3. [root@hd ico]# ls
  4. ls: icon1.ico,v: Permission denied
  5. icon2.ico,v icon3.ico,v
  6. [root@hd ico]# rm icon1.ico,v
  7. rm: cannot lstat `icon1.ico,v': Permission denied
  8. [root@hd ico]#
复制代码

论坛徽章:
0
2 [报告]
发表于 2006-11-21 16:26 |只看该作者
try to use lsattr, chattr

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:55:28
3 [报告]
发表于 2006-11-21 16:32 |只看该作者
lsattr: Permission denied while trying to stat icon1.ico,v

论坛徽章:
0
4 [报告]
发表于 2006-11-21 16:39 |只看该作者
原帖由 hardcorn 于 2006-11-21 16:19 发表
root用户无法删除/查看文件

不知道什么原因,请高手指点.

我现在想把这个文件删除!  有什么办法?

[code]
[root@hd ico]# who
root     pts/0        Nov 21 15:25 (192.168.0.55)
[root@hd ico]# ls
...


filesystem 故障 ?

umount 後使用 fsck 檢查一下

--

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:55:28
5 [报告]
发表于 2006-11-22 12:29 |只看该作者
多谢.

我用fsck检查了. 还是有问题:
e2fsck 1.35 (28-Feb-2004)
e2fsck: Bad magic number in super-block while trying to open /dev/hda5

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193


我按照网上的一个文章中说明进行修复了,也不行:
# mke2fs -n /dev/hda3
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
611648 inodes, 1222940 blocks
61147 blocks (5.00%) reserved for the super user
First data block=0
38 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

#e2fsck -b 32768 /dev/hda3
e2fsck 1.35 (28-Feb-2004)
e2fsck: Bad magic number in super-block while trying to open /dev/hda3

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193

论坛徽章:
0
6 [报告]
发表于 2006-11-22 12:42 |只看该作者
1. 你的系统分割区是哪个 ? 你的画面怎么一会是 hda3 又是 hda5 ?

2. 你的分割区是使用哪种档案系统 ?

--
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP