Re: [opensuse] Undeletable directory tree, fsck no joy
----- Original Message ----
From: Moby
Simon Roberts wrote:
----- Original Message ----
From: Moby
[...] Attempts to delete those directory trees give the following error: cannot remove `xorg-server-1.4.2/GL': Input/output error
-----------------------------------------------------------------------------------------------
Small random thoughts that might have no value whatsoever, but:
1) You can buy a 500GB USB drive for about US$100 now. It's really easy to dump your data off, rebuild, and copy back again. Might be the best way to go.
2) I've found that sometimes, when "rm" won't remove something, "unlink" might just be the sledgehammer for the job.
3) If my filesystem was that screwed up, I'd be taking option 1 anyway! Just think of all the other things you can clean up while you're at it... (you didn't actually want to get any real work done this week did you? :)
HTH Cheers, Simon
Thanks for the ideas Simon. Short of the rebuild option, nothing else has seemed to work so far. The "stuck" items are actually directories, not files, and unlink gives an error that it is a directory and not a file. Yeah, tell me about a shot week. I am just glad this happened on my desktop (still a royal pain) and not on a server where users other than myself would have been affected. -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Moby wrote:
Simon Roberts wrote:
----- Original Message ----
From: Moby
[...] Attempts to delete those directory trees give the following error: cannot remove `xorg-server-1.4.2/GL': Input/output error
-----------------------------------------------------------------------------------------------
Small random thoughts that might have no value whatsoever, but:
1) You can buy a 500GB USB drive for about US$100 now. It's really easy to dump your data off, rebuild, and copy back again. Might be the best way to go.
2) I've found that sometimes, when "rm" won't remove something, "unlink" might just be the sledgehammer for the job.
3) If my filesystem was that screwed up, I'd be taking option 1 anyway! Just think of all the other things you can clean up while you're at it... (you didn't actually want to get any real work done this week did you? :)
HTH Cheers, Simon
Thanks for the ideas Simon. Short of the rebuild option, nothing else has seemed to work so far. The "stuck" items are actually directories, not files, and unlink gives an error that it is a directory and not a file. Yeah, tell me about a shot week. I am just glad this happened on my desktop (still a royal pain) and not on a server where users other than myself would have been affected.
I realized that the owner and group of the affected directories were low integers (around 200). chown -R would not work, but I was able to script chown to change each directory and file to root:root from the top down. Once that I was done, I was able to delete the stuck directory tree. -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Moby
-
Simon Roberts