View previous topic :: View next topic |
Author |
Message |
mathfeel l33t
Joined: 03 Aug 2004 Posts: 700
|
Posted: Sun Jan 30, 2011 7:28 am Post subject: unable to remove non-existing file. |
|
|
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 |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sun Jan 30, 2011 9:51 am Post subject: |
|
|
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 |
|
|
mathfeel l33t
Joined: 03 Aug 2004 Posts: 700
|
Posted: Mon Jan 31, 2011 8:54 pm Post subject: |
|
|
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 |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Mon Jan 31, 2011 8:57 pm Post subject: |
|
|
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 |
|
|
|