Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No such file or directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sjod
n00b
n00b


Joined: 24 Sep 2002
Posts: 22

PostPosted: Wed Oct 22, 2003 5:49 am    Post subject: No such file or directory Reply with quote

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
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Wed Oct 22, 2003 6:54 am    Post subject: Reply with quote

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
View user's profile Send private message
sjod
n00b
n00b


Joined: 24 Sep 2002
Posts: 22

PostPosted: Wed Oct 22, 2003 12:05 pm    Post subject: Reply with quote

I'm using a reiser fs
Back to top
View user's profile Send private message
sjod
n00b
n00b


Joined: 24 Sep 2002
Posts: 22

PostPosted: Wed Oct 22, 2003 12:56 pm    Post subject: Reply with quote

Ok, I ran reiserfsck, was told that I had fatal corruptions and to run --rebuild-tree, which I did.

All fixed now :D Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum