查看文件权限时,看到的全是问号?解决方法。

mac2024-04-21  39

接到通知,文件夹使用不了。 本机是Red Hat Enterprise Linux Server release 6.5 应用的nfs 在网上查找资料 相关文件链接

原文查找资料来自:https://blog.csdn.net/micmouse521/article/details/72636431

登陆shell上查看文件

[root@localhost ~] # ll drwxrwxrwx 2 root root 4096 Oct 30 10:26 tJ d??? ? ? ? ? ? tsppap

突然出现这个问题,查看对应的设备查到对应的文件是可以打开的,但是添加文件不可以。

[root@localhost ~] # chmod 757 tsppap chmod: cannot access `tsppap’: Stale file handle

修改权限时报错,无法修改。

[root@localhost ~] # chown root tsppap chown: cannot access `tsppap’: Stale file handle

修改所有者的权限也是失败。

[root@localhost ~] # umount tsppap umount.nfs: /ftp/tsppap: device is busy

对他先进行接触挂载,报错还是做不到。

[root@localhost ~] # mount | grep tsppap /…/tsppap IP/掩码(rw,sync)

进行查看这个关于这个文件的挂载情况,直接把这个文件下的东西解除挂载

[root@localhost ~] # umount -l /…/tsppap

没返回报错,然后查看文件。需要注意的是 选项 umount -l 不是马上umount,而是在不使用的情况下进行umount。

[root@localhost ~] # ll drwxrwxrwx 2 root root 4096 Oct 31 09:38 tSP

好了,可以了。

问题解决了,进行了重新挂载,使用OK。在下班和第二天查看没有异常。

最新回复(0)