I had a system freeze and had to reboot the computer. When the
computer came back up, I was missing some sub-directories of the directory /pictures. Using Suse 8.1.
I tried chmod +x and it did not help. I have also tried chown and chgrp without sucess.
Here is a copy of doing a dir of /pictures. I am also unable to access a couple of directories under /pictures/raw, which gives the same permission denied.
ls: kids: permission denied ls: download: permission denied total 1 drwxr-xr-x 8(user) users 168 2003-07-13 17:12 . drwxr-xr-x 29 root root 688 2003-07-13 17.19 .. drwxr-xr-x 10 (user) users 248 2003-01-22 19:54 numbered drwxr-xr-x 12 (user) users 368 2003-01-22 19:44 raw drwxr-xr-x 2 (user) users 528 2003-07-13 13:56 temp
I am not sure, but I am thinking that the '.' and '..' are the directories I am unable to access.
If I try to create a new directory of kids/download, it gives me 'access denied to /pictures/kids/download.
Anyone had an idea how I can get these directory back so I can access them?
The . is standard Unix notation for the current directory, and .. is the notation for the parent directory (except the root directory .. points to itself).
Every file system has a lost+found directory. if your disk was corrupted , fsck may have placed these into lost+found. I suggest you su to root. cd /pictures find . -type d -ls This will give you a recursive listing of all the directories under pictures. Certainly a chmod of +x and +r should make those directories accessable. I also suggest that you shut down to single user mode and run a manual fsck just to make sure things are ok.
-- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
Thanks Jerry for the suggestions. I have tried all you suggested and those others that I could think of. Chown, chmod, fsck, etc did not work. I still cannot access those directories. Looks like they are just lost to me. I'm thinking that the only way would be to go into the disk structure itself and correct the problem. I don't know of a linux program that would do this tho. Something like the old Norton Utilities could do. Thanks for the help Paul T.
I had a similar thing happen once. I was unable to access certain files &
directories even as root. What filesystem are you using? I was running
Reiserfs. I ran reiserfsck on the filesystem in question. The filesystem
had to be unmounted. It found several errors on the filesystem. I then
had to run reiserfsck with another option... sigh... right now I cannot
recall the option. It was the option to fix any errors found.
Once I did that, it fixed the errors. Once the filesystem was mounted, I
was able to access the previously, inaccessible files and directories.
Rick
On Mon, 14 Jul 2003 22:22:19 -0700, "P.T. (Nevada)"
I had a system freeze and had to reboot the computer. When the
computer came back up, I was missing some sub-directories of the directory /pictures. Using Suse 8.1.
I tried chmod +x and it did not help. I have also tried chown and chgrp without sucess.
Here is a copy of doing a dir of /pictures. I am also unable to access a couple of directories under /pictures/raw, which gives the same permission denied.
ls: kids: permission denied ls: download: permission denied total 1 drwxr-xr-x 8(user) users 168 2003-07-13 17:12 . drwxr-xr-x 29 root root 688 2003-07-13 17.19 .. drwxr-xr-x 10 (user) users 248 2003-01-22 19:54 numbered drwxr-xr-x 12 (user) users 368 2003-01-22 19:44 raw drwxr-xr-x 2 (user) users 528 2003-07-13 13:56 temp
I am not sure, but I am thinking that the '.' and '..' are the directories I am unable to access.
If I try to create a new directory of kids/download, it gives me 'access denied to /pictures/kids/download.
Anyone had an idea how I can get these directory back so I can access them?
-- Rick Friedman rickfriedman@myfastmail.com Registered Linux user: #269579
Einstein: "God does not play dice." Bohr: "Stop telling God what to do." -- http://www.fastmail.fm - Email service worth paying for. Try it for free
participants (2)
-
P.T. (Nevada)
-
Rick Friedman