Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
named pipe stuck on filesystem
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
Pilsner
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2008
Posts: 89

PostPosted: Tue Oct 13, 2009 2:53 pm    Post subject: named pipe stuck on filesystem Reply with quote

Hello, everyone.
I had system crash yesterday and after reboot there is a file named MAKEFILE in /usr/src/linux/.... that is of type "named pipe" and which I cannot delete.

1. rm -f says "operation not permitted"
2. lsattr says not supported
3. file overwrite with echo or cat something > Makefile says not permitted.
4. Even rebooted to liveCD still cannot delete that file.
5. dd if=/dez/zero of=/path/to/makefile says operation not permitted

attributes:

prwSr-srw- 1 71 9537 0 Jan 26 1971 /path/to/Makefile

My FS is ext4.

Does anyone know how to get rid of this named pipe ?
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Tue Oct 13, 2009 5:34 pm    Post subject: Reply with quote

Could be filesystem corruption. I'd run fsck on the filesystem.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Tue Oct 13, 2009 5:44 pm    Post subject: Reply with quote

Gentoo_ram's suggestion might be correct. I found this thread on google which may be of help to you... it looks like in this guy's case that filesystem corruption was to blame:

http://lists.debian.org/debian-user/1998/12/msg02415.html

Thread:
http://lists.debian.org/debian-user/1998/12/thrd6.html#02415

How he removed the file:
http://lists.debian.org/debian-user/1998/12/msg02771.html


Before doing anything, I would suggest that you backup your important data in case the worse happens.
Back to top
View user's profile Send private message
Pilsner
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2008
Posts: 89

PostPosted: Wed Oct 14, 2009 12:11 pm    Post subject: Reply with quote

Had to format disk and re-install gentoo. Anyways after bad fsck I had /etc and /var gone and so, replacing of only those 2 folders from gentoo install disk was bad idea since all my packages were gone for "emerge" and reinstall were failing for some, due to file collisions. A real mess...
Thanks for link, next time I'll try to ru more fsck with different options if no other problem happens to exist.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Wed Oct 14, 2009 1:40 pm    Post subject: Reply with quote

Pilsner wrote:
Had to format disk and re-install gentoo. Anyways after bad fsck I had /etc and /var gone and so, replacing of only those 2 folders from gentoo install disk was bad idea since all my packages were gone for "emerge" and reinstall were failing for some, due to file collisions. A real mess...
Thanks for link, next time I'll try to ru more fsck with different options if no other problem happens to exist.

You sure they were gone and not in lost+found?
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Wed Oct 14, 2009 2:44 pm    Post subject: Reply with quote

if a huge directory goes to lost+found it is as good as gone.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Oct 14, 2009 3:56 pm    Post subject: Reply with quote

Pilsner wrote:
Had to format disk and re-install gentoo. Anyways after bad fsck I had /etc and /var gone and so, replacing of only those 2 folders from gentoo install disk was bad idea since all my packages were gone for "emerge" and reinstall were failing for some, due to file collisions. A real mess...
Thanks for link, next time I'll try to ru more fsck with different options if no other problem happens to exist.
That's a shame. I was under the impression that ext4 was suppose to be quite stable, like ext3. I guess problems sprout up from time to time.

I once had an issue occur on a reiserfs-3 disk, and I luckily made backups of everything before I tried the fsck, since it majorly messed up my disk... I guess I didn't properly read the man pages or whatever beforehand. I had to run fsck once on an ext3 drive back in the day, and didn't have any problems whatsoever, so I charged ahead on the reiser disk without hesitation.
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