Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to remove non-existing file.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Sun Jan 30, 2011 7:28 am    Post subject: unable to remove non-existing file. Reply with quote

I accidentally kicked the power core when running emerge --update. After reboot, there is now a file in /var/tmp/portage that I cannot rm, even as root.
Code:
# ls -al
ls: cannot access ChangeLog-2003-10-25: No such file or directory
total 0
drwxr-xr-x 2 portage portage 88 Jan 29 18:35 .
drwxr-xr-x 3 portage portage 80 Jan 14 09:46 ..
?????????? ? ?      ?      ?            ? ChangeLog-2003-10-25


Anything I can do short of reformating the /var partition?
_________________
-----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sun Jan 30, 2011 9:14 am    Post subject: Reply with quote

What filesystem is that? Does running fsck on it help?
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sun Jan 30, 2011 9:51 am    Post subject: Reply with quote

What about going one directory up, renaming that subdir and creating the subdir again ? Then you can continue with your work and play with that damn thing.
Back to top
View user's profile Send private message
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Mon Jan 31, 2011 8:54 pm    Post subject: Reply with quote

phajdan.jr wrote:
What filesystem is that? Does running fsck on it help?

reiser3. Already did fsck and no...

toralf wrote:
What about going one directory up, renaming that subdir and creating the subdir again ? Then you can continue with your work and play with that damn thing.


Code:
# ls -al -R
.:
total 0
drwxr-xr-x 4 mzhang users 112 Jan 31 12:55 .
drwxr-xr-x 3 mzhang users  72 Jan 14 09:46 ..
drwxr-xr-x 2 root   root   48 Jan 31 12:55 JavaScriptCore
drwxr-xr-x 2 mzhang users  88 Jan 29 18:35 JavaScriptCore--

./JavaScriptCore:
total 0
drwxr-xr-x 2 root   root   48 Jan 31 12:55 .
drwxr-xr-x 4 mzhang users 112 Jan 31 12:55 ..

./JavaScriptCore--:
ls: cannot access ./JavaScriptCore--/ChangeLog-2003-10-25: No such file or directory
total 0
drwxr-xr-x 2 mzhang users  88 Jan 29 18:35 .
drwxr-xr-x 4 mzhang users 112 Jan 31 12:55 ..
?????????? ? ?      ?       ?            ? ChangeLog-2003-10-25


I can do that. In fact, I can even create the same file in the same dir, and there'd be two files with the same file name. I just can't remove one of them:
Code:
# ls -l
total 0
-rw-r--r-- 1 root root 0 Jan 31 12:58 ChangeLog-2003-10-25
-rw-r--r-- 1 root root 0 Jan 31 12:58 ChangeLog-2003-10-25
# rm ChangeLog-2003-10-25
# ls -l
ls: cannot access ChangeLog-2003-10-25: No such file or directory
total 0
?????????? ? ? ? ?            ? ChangeLog-2003-10-25

_________________
-----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche


Last edited by mathfeel on Mon Jan 31, 2011 9:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Mon Jan 31, 2011 8:57 pm    Post subject: Reply with quote

mathfeel wrote:
phajdan.jr wrote:
What filesystem is that? Does running fsck on it help?

reiser3.


That's only half of the answer. :? Does it mean fsck doesn't help? Could you paste the output of fsck?
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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