Undeletable files...
Hi all,
I am using a reiserfs partition mounted using Redhat Enterprise's 2.6.9-22.0.1.EL (rebuilt), and I have files that refuse to delete:
[root@gatekeeper proc]# ls -al p*
-rw-r--r-- 1 root root 0 Apr 15 20:50 partitions -rw-r--r-- 1 root root 0 Apr 15 20:50 pci [root@gatekeeper proc]# rm -f p*
rm: cannot remove `partitions': Operation not permitted
rm: cannot remove `pci': Operation not permitted [root@gatekeeper proc]# pwd /var/lib/diskless/i386/fedora-core-2/root/proc
(The files were somehow copied from a /proc tree, they are otherwise normal files).
For some reason they are not deletable. The partition is mounted like this:
/dev/sda4 on /var type reiserfs (rw)
I tried to find a way of running reiserfsck against the partition, but for some reason this is impossible on a read/write filesystem. The machine is not geographically nearby, so unmounting it is not possible at the moment.
Can anyone recommend a way to rescue this filesystem, or am I going to have to make the drive of shame?
The reiserfs-utils package I am using is reiserfs-utils-3.6.4-5.
Regards,
Graham
--
hello
Quoted 4 lines · Graham Leggett
Hi all,
I am using a reiserfs partition mounted using Redhat Enterprise's 2.6.9-22.0.1.EL (rebuilt), and I have files that refuse to delete:
Are there any reiserfs error messages in the system logs?
Quoted 6 lines
[root@gatekeeper proc]# ls -al p*
(quoted diff) +0
-2-rw-r--r-- 1 root root 0 Apr 15 20:50 partitions -rw-r--r-- 1 root root 0 Apr 15 20:50 pci[root@gatekeeper proc]# rm -f p*
rm: cannot remove `partitions': Operation not permitted
rm: cannot remove `pci': Operation not permitted
It looks as another procfs mount point,
can you please do "stat -f partitions" to check that?
Quoted 24 lines
[root@gatekeeper proc]# pwd
/var/lib/diskless/i386/fedora-core-2/root/proc(The files were somehow copied from a /proc tree, they are otherwise normal files).
For some reason they are not deletable. The partition is mounted like this:
/dev/sda4on /var type reiserfs (rw)I tried to find a way of running reiserfsck against the partition, but for some reason this is impossible on a read/write filesystem. The machine is not geographically nearby, so unmounting it is not possible at the moment.
Can anyone recommend a way to rescue this filesystem, or am I going to have to make the drive of shame?
The reiserfs-utils package I am using is reiserfs-utils-3.6.4-5.
Regards,
Graham
--
Signature · 1 line
Alex.
Quoted 1 line · Hans Reiser
Sounds like acls or acl bugs.
Or not, since ACLs weren't enabled on the mount.
-Jeff
Signature · 2 lines
Jeff Mahoney SUSE Labs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · Hans Reiser
Quoted 7 lines · Jeffrey Mahoney
Quoted 3 lines · Hans Reiser
Sounds like acls or acl bugs.
Or not, since ACLs weren't enabled on the mount.
What happens if acls are used on one mount and not on another?
To clarify, ACLs are a per-super feature. For this example, there weren't multiple mount points with different options, so per-super and per-mount are one and the same.
If you mean if ACLs are enabled on one file system and not on another, nothing unusual will happen. The behavior for copying from one FS to another is defined.
- From ACL fs to non-ACL fs, the ACLs will be lost.
- From non-ACL fs to ACL fs, unless "preserve permissions" is set, the files will inherit from an optional default ACL.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEQ7ONLPWxlyuTD7IRAqzPAJwLuf5BX2IlUuAnMJ0eAyqRO1lFCgCgkaPg eugu4Q/rk56Qryz6JQ8bJEg=
=urun
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 14 lines · Hans Reiser
Quoted 12 lines · Jeff Mahoney
Quoted 9 lines · Hans Reiser
Quoted 7 lines · Jeffrey Mahoney
Quoted 3 lines · Hans Reiser
Sounds like acls or acl bugs.
Or not, since ACLs weren't enabled on the mount.
What happens if acls are used on one mount and not on another?
Quoted 7 lines
Quoted 5 lines
To clarify, ACLs are a per-super feature. For this example, there weren't multiple mount points with different options, so per-super and per-mount are one and the same.
If you mean if ACLs are enabled on one file system and not on another,
no, I mean if mounted with acls enabled once and then without
Then the ACLs will no longer be interpreted, or inherited, until ACLs are enabled again. ACLs aren't read and the interpretive code is completely skipped if -oacl is not specified. If a file is deleted, all xattrs associated with the file, including ACLs, will be deleted.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFERHH1LPWxlyuTD7IRAmTaAJ0Qbl7i7N+svQCIeYf94LyOl20HVgCfffIf 1yYoAuGzWZl6Wh1og6IFhJA=
=MixN
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Hans Reiser
Was this a 3.5/3.6 conversion bug? I thought we figured it out once.... I just can't remember the figuring....
Oh ok, I see where you're going with it. There was the bug where the inode attribute bit in the super would claim that inode attribute were valid and then cause problems when they were enabled by default. That patch wasn't in mainline until 2.6.12.
The kernel in the bug report is 2.6.9 w/ RH patches. I haven't read the source, but I doubt they would have backported that bug.
At any rate, Graham, can you post your dmesg and the output of "grep
kernel: /var/log/messages"? If you're seeing unexplained permissions errors, I'd like to see the logs as the most likely source is corruption.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFERO9CLPWxlyuTD7IRAk+4AJ99lehSoURYKL9+DeBcLlaWA3rHAgCfdyo/ DRHDvbfPE7b32m/i8pveoRo=
=/RXV
-----END PGP SIGNATURE-----