[opensuse] Absurd situation... filesystem corruption, how? What?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Look: cer@Elessar:~> ls -l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1267109439.fmpg: Permission denied ... ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1264346531.fmpg: Permission denied total 0 ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1255334438.fmpg ... cer@Elessar:~> Now, the same filesystem, as a different user: p2phelper@Elessar:~> ls -l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ total 357 drwxrwxr-- 2 cer users 5728 2009-09-03 14:53 0001E3FAE280_1251978658.fmpg drwxrwxr-- 2 cer users 5904 2009-09-04 14:54 0001E3FAE280_1252065001.fmpg drwxrwxr-- 2 cer users 5904 2009-09-07 14:55 0001E3FAE280_1252324229.fmpg drwxrwxr-- 2 cer users 2032 2009-10-12 16:58 0001E3FAE280_1255334438.fmpg drw-rwxr-- 2 cer users 6784 2009-10-14 00:56 0001E3FAE280_1255460235.fmpg drw-rwxr-- 2 cer users 11008 2009-12-14 01:53 0001E3FAE280_1260744612.fmpg drw-rwxr-- 2 cer users 13120 2010-01-01 00:26 0001E3FAE280_1262292972.fmpg drw-rwxr-- 2 cer users 16112 2010-01-01 23:48 0001E3FAE280_1262343538.fmpg drw-rwxr-- 2 cer users 15584 2010-01-02 01:23 0001E3FAE280_1262381287.fmpg drw-rwxr-- 2 cer users 5552 2010-01-13 22:14 0001E3FAE280_1262985360.fmpg drw-rwxr-- 2 cer users 6432 2010-01-09 16:36 0001E3FAE280_1263045803.fmpg drw-rwxr-- 2 cer users 7312 2010-01-13 22:16 0001E3FAE280_1263331768.fmpg drw-rwxr-- 2 cer users 2736 2010-01-14 22:13 0001E3FAE280_1263501934.fmpg drw-rwxr-- 2 cer users 14704 2010-01-18 21:02 0001E3FAE280_1263503717.fmpg drw-rwxr-- 2 cer users 7136 2010-01-15 02:39 0001E3FAE280_1263514820.fmpg drw-rwxr-- 2 cer users 7136 2010-01-24 17:40 0001E3FAE280_1264346531.fmpg drw-rwxr-- 2 cer users 13120 2010-01-24 20:08 0001E3FAE280_1264351282.fmpg drw-rwxr-- 2 cer users 6960 2010-01-28 00:24 0001E3FAE280_1264630075.fmpg drw-rwxr-- 2 cer users 20336 2010-02-04 22:37 0001E3FAE280_1265228913.fmpg drw-rwxr-- 2 cer users 15760 2010-02-05 01:17 0001E3FAE280_1265318393.fmpg drw-rwxr-- 2 cer users 16464 2010-02-08 00:06 0001E3FAE280_1265555861.fmpg drw-rwxr-- 2 cer users 12944 2010-02-09 02:34 0001E3FAE280_1265670566.fmpg drw-rwxr-- 2 cer users 16464 2010-02-12 01:31 0001E3FAE280_1265923530.fmpg drw-rwxr-- 2 cer users 28608 2010-02-16 03:24 0001E3FAE280_1266267573.fmpg drw-rwxr-- 2 cer users 12416 2010-02-16 01:54 0001E3FAE280_1266273319.fmpg drw-rwxr-- 2 cer users 26848 2010-02-23 02:53 0001E3FAE280_1266871760.fmpg drw-rwxr-- 2 cer users 13296 2010-02-24 01:24 0001E3FAE280_1266960305.fmpg drw-rwxr-- 2 cer users 6960 2010-02-24 00:54 0001E3FAE280_1266964640.fmpg drw-rwxr-- 2 cer users 11184 2010-02-25 02:28 0001E3FAE280_1267053815.fmpg drw-rwxr-- 2 cer users 5728 2010-02-25 17:30 0001E3FAE280_1267109439.fmpg drw-rwxr-- 2 cer users 1328 2010-02-25 22:01 0001E3FAE280_1267130947.fmpg drw-rwxr-- 2 cer users 10128 2010-02-25 23:55 0001E3FAE280_1267131749.fmpg drw-rwxr-- 2 cer users 12592 2010-02-27 20:09 0001E3FAE280_1267278999.fmpg drw-rwxr-- 2 cer users 8544 2010-03-01 02:28 0001E3FAE280_1267400639.fmpg p2phelper@Elessar:~> I did an fsck on that filesystem - nothing found. Reboot, no change. That filesystem is reiserfs, on eSATA, os 11.2 x64. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkuMJWUACgkQU92UU+smfQV8BQCggIWg7wY17QIc/CF/hb/fuYY5 AbUAn2TxNb1rT6pefYlXBgruvHSkAed8 =0XlT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/03/10 20:36, Carlos E. R. wrote:
Look:
cer@Elessar:~> ls -l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1267109439.fmpg: Permission denied
...
ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1264346531.fmpg: Permission denied total 0 ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1255334438.fmpg
...
cer@Elessar:~>
I did an fsck on that filesystem - nothing found. Reboot, no change.
That filesystem is reiserfs, on eSATA, os 11.2 x64.
Your directory permissions are wrong. Have a look at this: tejas@hobbes:~/src/test1> mkdir test tejas@hobbes:~/src/test1> touch test/file tejas@hobbes:~/src/test1> ls -l test total 0 -rw-r--r-- 1 tejas users 0 2010-03-01 21:10 file tejas@hobbes:~/src/test1> ls -l total 4 drwxr-xr-x 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> chmod -x test tejas@hobbes:~/src/test1> ls -l total 4 drw-r--r-- 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> ls -l test ls: cannot access test/file: Permission denied total 0 -????????? ? ? ? ? ? file Somewhere in the chain is a directory you don't have executable permissions for. No corruption :) Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-03-01 22:12, Tejas Guruswamy wrote:
On 01/03/10 20:36, Carlos E. R. wrote:
Look:
cer@Elessar:~> ls -l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1267109439.fmpg: Permission denied
...
ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1264346531.fmpg: Permission denied total 0 ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1255334438.fmpg
...
cer@Elessar:~>
I did an fsck on that filesystem - nothing found. Reboot, no change.
That filesystem is reiserfs, on eSATA, os 11.2 x64.
Your directory permissions are wrong.
Have a look at this:
tejas@hobbes:~/src/test1> mkdir test tejas@hobbes:~/src/test1> touch test/file tejas@hobbes:~/src/test1> ls -l test total 0 -rw-r--r-- 1 tejas users 0 2010-03-01 21:10 file tejas@hobbes:~/src/test1> ls -l total 4 drwxr-xr-x 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> chmod -x test tejas@hobbes:~/src/test1> ls -l total 4 drw-r--r-- 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> ls -l test ls: cannot access test/file: Permission denied total 0 -????????? ? ? ? ? ? file
Somewhere in the chain is a directory you don't have executable permissions for. No corruption :)
No, I don't think so. The other user is a plain one and accessses freely. Anyway, lets try. cer@Elessar:~> l /mnt/Ext/ total 0 drwxr-xr-x 8 root root 216 2010-03-01 17:03 ./ drwxr-xr-x 15 root root 424 2010-02-28 22:12 ../ drwxr-xr-x 7 root root 160 2010-02-01 20:59 Jazz2_Big/ <==== cer@Elessar:~> l /mnt/Ext/Jazz2_Big/ total 1 drwxr-xr-x 7 root root 160 2010-02-01 20:59 ./ drwxr-xr-x 8 root root 216 2010-03-01 17:03 ../ drwxr-xr-x 3 root root 280 2009-12-16 21:52 para_quemar/ drwxr-xr-x 12 cer root 528 2010-03-01 20:50 Video/ <==== drwxr-xr-x 2 cer root 48 2009-12-17 15:32 Videos/ cer@Elessar:~> cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video total 4754 ... drwxrwxr-x 4 root root 1392 2010-03-01 20:53 recordings_moria_20091115/ <== works drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 recordings_moria_20100301/ <== does not. cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/ total 770018 drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 ./ drwxr-xr-x 12 cer root 528 2010-03-01 20:50 ../ ... drw-rwxr-- 36 cer users 1680 2010-03-01 00:44 .rec/ cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/.: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/..: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied ... total 0 ?????????? ? ? ? ? ? . ?????????? ? ? ? ? ? .. ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg See? The road is clear. I can see the filenames, but with garbage in the place where the username should be. This user is the owner of those files. Something is corrupt. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkuMN+wACgkQU92UU+smfQXAZwCfZeC2eekVZgEa7YOzixD4EmvD dKEAn2PqmKx1DNnKy/Nz2x3UCcNpyhGr =73sZ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/03/10 21:55, Carlos E. R. wrote:
No, I don't think so. The other user is a plain one and accessses freely. Anyway, lets try.
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video total 4754 ... drwxrwxr-x 4 root root 1392 2010-03-01 20:53 recordings_moria_20091115/ <== works drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 recordings_moria_20100301/ <== does not.
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/ total 770018 drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 ./ drwxr-xr-x 12 cer root 528 2010-03-01 20:50 ../
...
drw-rwxr-- 36 cer users 1680 2010-03-01 00:44 .rec/
^^^^^ I see both "user" and "others" missing execute permissions on this dir
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/.: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/..: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied
...
total 0 ?????????? ? ? ? ? ? . ?????????? ? ? ? ? ? .. ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg
See? The road is clear. I can see the filenames, but with garbage in the place where the username should be. This user is the owner of those files.
Something is corrupt.
chmod +x the directory I pointed out above and try again is my recommendation Or to be safe do something like find /mnt/Ext -type d -exec chmod +x {} \+ directories without execute permissions do funny things, you can know about files inside them but not be able to read & delete them, and all sorts of crazy stuff. and check your user groups to understand why one user had access but not others. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2010-03-01 at 22:26 -0000, Tejas Guruswamy wrote:
drw-rwxr-- 36 cer users 1680 2010-03-01 00:44 .rec/
^^^^^ I see both "user" and "others" missing execute permissions on this dir
Mmmm...!
chmod +x the directory I pointed out above and try again is my recommendation
You are correct, that was it.
Or to be safe do something like
find /mnt/Ext -type d -exec chmod +x {} \+
Actually, I had done something like that on the original filesystem where that came from (a DTV recorder): #!/bin/bash find /mnt/Ext/Moria/Recordings/ -type f -exec chmod g+w '{}' \; find /mnt/Ext/Moria/Recordings/ -type d -exec chmod g+w+x '{}' \; [root@MORIA:~]# ls -la /usb/Recordings/ drwxrwxr-x 8 root root 4096 Mar 2 00:16 . drwxr-xr-x 12 root root 4096 Jan 25 22:32 .. drw-rwxr-- 37 root root 4096 Mar 1 21:45 .rec That's weird. Of course, as that machine runs as root, it has no problems. I just modified the script accordingly: find /mnt/Ext/Moria/Recordings/ -type d -exec chmod u+r+w+x,g+w+x '{}' \;
directories without execute permissions do funny things, you can know about files inside them but not be able to read & delete them, and all sorts of crazy stuff.
Indeed. Crazy indeed.
and check your user groups to understand why one user had access but not others.
On the working tree my user was not the owner, so it was accessing using the group permissions, which were correc. On this one it was the owner, so it used different permissions, set incorrectly by the original application on the video recorder. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkuMT6kACgkQtTMYHG2NR9VMeQCfXcXNK/fFWdLpN1v8kHTTKUhh xzEAn3WzNZVPVVtPeYUROcq0dIIKNcAe =EG3k -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-03-01 at 22:55 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2010-03-01 22:12, Tejas Guruswamy wrote:
On 01/03/10 20:36, Carlos E. R. wrote:
Look:
cer@Elessar:~> ls -l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1267109439.fmpg: Permission denied
...
ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1264346531.fmpg: Permission denied total 0 ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1255334438.fmpg
...
cer@Elessar:~>
I did an fsck on that filesystem - nothing found. Reboot, no change.
That filesystem is reiserfs, on eSATA, os 11.2 x64.
Your directory permissions are wrong.
Have a look at this:
tejas@hobbes:~/src/test1> mkdir test tejas@hobbes:~/src/test1> touch test/file tejas@hobbes:~/src/test1> ls -l test total 0 -rw-r--r-- 1 tejas users 0 2010-03-01 21:10 file tejas@hobbes:~/src/test1> ls -l total 4 drwxr-xr-x 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> chmod -x test tejas@hobbes:~/src/test1> ls -l total 4 drw-r--r-- 2 tejas users 4096 2010-03-01 21:10 test tejas@hobbes:~/src/test1> ls -l test ls: cannot access test/file: Permission denied total 0 -????????? ? ? ? ? ? file
Somewhere in the chain is a directory you don't have executable permissions for. No corruption :)
No, I don't think so. The other user is a plain one and accessses freely. Anyway, lets try.
cer@Elessar:~> l /mnt/Ext/ total 0 drwxr-xr-x 8 root root 216 2010-03-01 17:03 ./ drwxr-xr-x 15 root root 424 2010-02-28 22:12 ../ drwxr-xr-x 7 root root 160 2010-02-01 20:59 Jazz2_Big/ <==== cer@Elessar:~> l /mnt/Ext/Jazz2_Big/ total 1 drwxr-xr-x 7 root root 160 2010-02-01 20:59 ./ drwxr-xr-x 8 root root 216 2010-03-01 17:03 ../ drwxr-xr-x 3 root root 280 2009-12-16 21:52 para_quemar/ drwxr-xr-x 12 cer root 528 2010-03-01 20:50 Video/ <==== drwxr-xr-x 2 cer root 48 2009-12-17 15:32 Videos/ cer@Elessar:~>
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video total 4754 ... drwxrwxr-x 4 root root 1392 2010-03-01 20:53 recordings_moria_20091115/ <== works drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 recordings_moria_20100301/ <== does not.
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/ total 770018 drwxr-xr-x 4 cer users 2968 2010-03-01 20:55 ./ drwxr-xr-x 12 cer root 528 2010-03-01 20:50 ../
...
drw-rwxr-- 36 cer users 1680 2010-03-01 00:44 .rec/
cer@Elessar:~> l /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/ ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/.: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/..: Permission denied ls: cannot access /mnt/Ext/Jazz2_Big/Video/recordings_moria_20100301/.rec/0001E3FAE280_1252324229.fmpg: Permission denied
...
total 0 ?????????? ? ? ? ? ? . ?????????? ? ? ? ? ? .. ?????????? ? ? ? ? ? 0001E3FAE280_1251978658.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252065001.fmpg ?????????? ? ? ? ? ? 0001E3FAE280_1252324229.fmpg
See? The road is clear. I can see the filenames, but with garbage in the place where the username should be. This user is the owner of those files.
Something is corrupt.
Carlos what's with the .rec/ in the paths? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
Carlos E. R.
-
Mike McMullin
-
Tejas Guruswamy