Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rm - cannot remove - operation not permitted
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
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Mon Jun 12, 2006 6:45 am    Post subject: rm - cannot remove - operation not permitted Reply with quote

hi everybody.

i have a trouble to delete old unused kernel sources...

Code:

pc4 src # rm -rf linux-2.6.15-gentoo-r1
rm: cannot remove `linux-2.6.15-gentoo-r1/drivers/net/tlan.c': Operation not permitted
rm: cannot remove `linux-2.6.15-gentoo-r1/drivers/net/tlan.h': Operation not permitted
rm: cannot remove `linux-2.6.15-gentoo-r1/drivers/net/typhoon-firmware.h': Operation not permitted
rm: cannot remove `linux-2.6.15-gentoo-r1/drivers/net/typhoon.c': Operation not permitted
rm: cannot remove `linux-2.6.15-gentoo-r1/drivers/net/via-velocity.c': Operation not permitted


it seems there is something corrupt :o(

Code:

pc4 src # ls -la linux-2.6.15-gentoo-r1/drivers/net/
total 2854893910
drwxr-xr-x     2 root       root       20480 Jun 12 06:31 .
drwxr-xr-x     3 root       root        4096 Jun 12 07:30 ..
?--------- 17425 root            22105     0 Jan  1  1970 tlan.c
?--------- 17425 root            22105     0 Jan  1  1970 tlan.h
?---------     4 3643015168 4086508126     0 Jan  1  1970 typhoon-firmware.h
?---------     1 3643080704 4086507822     0 Jan  1  1970 typhoon.c
?---------     1 3643277312 4086519861     0 Jan  1  1970 via-velocity.c


i have run fsck at first, of course. any idea? thanks
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Mon Jun 12, 2006 6:51 am    Post subject: Reply with quote

Don't use rm, use emerge instead.

Code:

emerge --unmerge =gentoo-sources-2.6.15-r1

_________________
Antonino Catinello | http://catinello.eu
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Mon Jun 12, 2006 6:56 am    Post subject: Reply with quote

anello wrote:
Don't use rm, use emerge instead.

Code:

emerge --unmerge =gentoo-sources-2.6.15-r1


it does not solve my problem naturally...
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jun 12, 2006 7:29 am    Post subject: Reply with quote

how about...

dd if=/dev/zero of=filethatismessedup count=1
rm filethatismessedup
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Mon Jun 12, 2006 7:38 am    Post subject: Reply with quote

bunder wrote:
how about...

dd if=/dev/zero of=filethatismessedup count=1
rm filethatismessedup


Code:

pc4 net # dd if=/dev/zero of=tlan.c count=1
dd: opening `tlan.c': Operation not permitted
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Jun 12, 2006 8:59 am    Post subject: Reply with quote

bah.

unmount and run `e2fsck -c -f`. i suspect a bad sector / dying hard drive. do you have smartmontools installed?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
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