View previous topic :: View next topic |
Author |
Message |
sjod n00b
Joined: 24 Sep 2002 Posts: 22
|
Posted: Wed Oct 22, 2003 5:49 am Post subject: No such file or directory |
|
|
I have, apparently, a file: /var/tmp/portage/ncurses-5.3-r2/image/usr/share/man/man3/attr_on.3x.gz
ls tells me that it exists.
I would like to delete it. rm rm attr_on.3x.gz produces rm: cannot remove `attr_on.3x.gz': No such file or directory
rm -f produces no error, but does not delete the file.
ls -l produces ls: attr_on.3x.gz: No such file or directory (not ls -l attr_on.3x.gz, just ls -l)
rm -fr from lower in the directory tree tells me that it cannot delete the directory as it is not empty.
So, this file does, and yet, does not, exist.
Any suggestions on how to get rid of this ghost?
I wasn't sure which forum this belonged in, but since the file was created by portage, I put it here. Please move if you disagree. |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Wed Oct 22, 2003 6:54 am Post subject: |
|
|
Might be a good idea to boot as single user mode or from LiveCD and do a fsck on that partition - looks like you've got a file system inconsistency. What file system are you using? Ext3? |
|
Back to top |
|
|
sjod n00b
Joined: 24 Sep 2002 Posts: 22
|
Posted: Wed Oct 22, 2003 12:05 pm Post subject: |
|
|
I'm using a reiser fs |
|
Back to top |
|
|
sjod n00b
Joined: 24 Sep 2002 Posts: 22
|
Posted: Wed Oct 22, 2003 12:56 pm Post subject: |
|
|
Ok, I ran reiserfsck, was told that I had fatal corruptions and to run --rebuild-tree, which I did.
All fixed now Thanks |
|
Back to top |
|
|
|