View previous topic :: View next topic |
Author |
Message |
JohnBlbec Guru
Joined: 08 Feb 2003 Posts: 306
|
Posted: Mon Jun 12, 2006 6:45 am Post subject: rm - cannot remove - operation not permitted |
|
|
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 (
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 |
|
|
anello Guru
Joined: 17 Jul 2005 Posts: 557 Location: EU -> DE -> Stuttgart
|
Posted: Mon Jun 12, 2006 6:51 am Post subject: |
|
|
Don't use rm, use emerge instead.
Code: |
emerge --unmerge =gentoo-sources-2.6.15-r1 |
_________________ Antonino Catinello | http://catinello.eu |
|
Back to top |
|
|
JohnBlbec Guru
Joined: 08 Feb 2003 Posts: 306
|
Posted: Mon Jun 12, 2006 6:56 am Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Jun 12, 2006 7:29 am Post subject: |
|
|
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 |
|
|
JohnBlbec Guru
Joined: 08 Feb 2003 Posts: 306
|
Posted: Mon Jun 12, 2006 7:38 am Post subject: |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Jun 12, 2006 8:59 am Post subject: |
|
|
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 |
|
|
|