Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can someone explain this? Is this a filesystem corruptioN?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2870
Location: Bay Area, CA

PostPosted: Mon May 26, 2008 12:25 am    Post subject: Can someone explain this? Is this a filesystem corruptioN? Reply with quote

I seem to be able to "see" some files but not quite vi them. The timestamp is same as the file with bz2 extension but the name is different. I have unmounted the portage directory and fsck'ed the partition (ext3) and it still shows like this. Any idea what's up?
Code:
17:14:30 root@localhost /usr/portage/local/log
# /bin/ls -al *log|tail -5
-rw-r--r-- 1 root    portage     84 May 21 23:00 x11-misc:xdg-utils-1.0.2-r2:20080522-060027.log
-rw-r--r-- 1 root    portage    215 Apr 18 21:23 x11-themes:gnome-icon-theme-2.22.0:20080419-042304.log
-rw-r--r-- 1 root    portage    215 Apr 18 21:22 x11-themes:gnome-themes-2.22.0:20080419-042247.log
-rw-r--r-- 1 root    portage    215 Apr 18 21:02 x11-themes:gtk-engines-2.14.1:20080419-040201.log
-rw-r--r-- 1 root    portage    215 Apr 18 21:31 x11-wm:metacity-2.22.0:20080419-043110.log

17:14:48 root@localhost /usr/portage/local/log
# ls -al x11-wm:metacity-2.22.0:20080419-043110.log
/bin/ls: cannot access x11-wm:metacity-2.22.0:20080419-043110.log: No such file or directory

17:14:58 root@localhost /usr/portage/local/log
# ls -al x11-wm\:metacity-2.22.0\:20080419-043110.log
/bin/ls: cannot access x11-wm:metacity-2.22.0:20080419-043110.log: No such file or directory

17:15:04 root@localhost /usr/portage/local/log
# ls -al x11-wm:metacity-2.22.0:20080419-043110.log*
/bin/ls: cannot access x11-wm:metacity-2.22.0:20080419-043110.log*: No such file or directory

17:15:11 root@localhost /usr/portage/local/log
# ls -al x11-wm:metacity-2.22.0:200*
-rw-rw---- 1 portage portage 13293 Apr 18 21:31 x11-wm:metacity-2.22.0:20080419-042925.log.bz2
-rw-rw---- 1 portage portage 13047 May 10 14:31 x11-wm:metacity-2.22.0:20080510-212932.log.bz2

17:15:17 root@localhost /usr/portage/local/log
# file x11-wm:metacity-2.22.0:20080419-043110.log
x11-wm:metacity-2.22.0:20080419-043110.log: cannot open `x11-wm:metacity-2.22.0:20080419-043110.log' (No such file or directory)

17:16:22 root@localhost /usr/portage/local/log
# file x11-wm:metacity-2.22.0:20080510-212932.log.bz2
x11-wm:metacity-2.22.0:20080510-212932.log.bz2: bzip2 compressed data, block size = 900k


amd64 with 2.6.25.4, root partition is ext3 and portage is ext3 as well.
No errors in dmesg.
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Mon May 26, 2008 1:39 am    Post subject: Reply with quote

The weird thing is that 'ls' seems able to find these files in the first instance where you use wildcard but not otherwise...

What happens if you try something like this

Code:

cp /usr/portage/local/log/x11-wm*log /tmp



P.S. how is your courageous pet hamster Boo doing?
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Mon May 26, 2008 4:53 am    Post subject: Reply with quote

Try following:
Code:
vi /usr/portage/local/log/x11-misc{TAB}
{TAB} <--- Press [TAB] on your keyboard.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2870
Location: Bay Area, CA

PostPosted: Mon May 26, 2008 8:24 am    Post subject: Solved... :( Reply with quote

I kinda feel stupid now. There is a directory elog in /usr/portage/local/log. When I say '/bin/ls -al *log', the files in that dir also get listed. elog files are much smaller in size and with a different pid.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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