public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cannot remove files: operation not permitted
@ 2006-07-14 21:00 Jose Gonzalez Gomez
  2006-07-14 22:19 ` [gentoo-user] " Jose Gonzalez Gomez
  0 siblings, 1 reply; 2+ messages in thread
From: Jose Gonzalez Gomez @ 2006-07-14 21:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

Hi there,

I was trying to make a clean install on a disk with a previous installation
of Gentoo on a reiserfs partition, but I wanted to keep some files. I
thought I would be able to boot with the LiveCD, mount the partition, remove
everything except the files I wanted to keep (moving them to a temporal
directory) and then copy a stage3 to the partition.

After mounting the partition and trying to rm -rf a directory I got a
"Cannot remove ... operation not permitted". After googlong a while I found
about chattr, and although it seems this is a ext2/3 tool I tried it and I
was able to remove some files after doing a chattr -ia on them. Any way,
there are some files I'm not able to delete, and they seem to be non regular
files (links, linux sockets,...). Any idea why this is happening?

Thanks in advance, best regards
Jose

[-- Attachment #2: Type: text/html, Size: 876 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user] Re: Cannot remove files: operation not permitted
  2006-07-14 21:00 [gentoo-user] Cannot remove files: operation not permitted Jose Gonzalez Gomez
@ 2006-07-14 22:19 ` Jose Gonzalez Gomez
  0 siblings, 0 replies; 2+ messages in thread
From: Jose Gonzalez Gomez @ 2006-07-14 22:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

2006/7/14, Jose Gonzalez Gomez <jgonzalez.openinput@gmail.com>:
>
> Hi there,
>
> I was trying to make a clean install on a disk with a previous
> installation of Gentoo on a reiserfs partition, but I wanted to keep some
> files. I thought I would be able to boot with the LiveCD, mount the
> partition, remove everything except the files I wanted to keep (moving them
> to a temporal directory) and then copy a stage3 to the partition.
>
> After mounting the partition and trying to rm -rf a directory I got a
> "Cannot remove ... operation not permitted". After googlong a while I found
> about chattr, and although it seems this is a ext2/3 tool I tried it and I
> was able to remove some files after doing a chattr -ia on them. Any way,
> there are some files I'm not able to delete, and they seem to be non regular
> files (links, linux sockets,...). Any idea why this is happening?
>
> Solved running reiserfsck --clean-attributes on the unmounted partition,
and then remounting the partition. After that I'm able to delete everything.

Best regards
Jose

[-- Attachment #2: Type: text/html, Size: 1333 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-14 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-14 21:00 [gentoo-user] Cannot remove files: operation not permitted Jose Gonzalez Gomez
2006-07-14 22:19 ` [gentoo-user] " Jose Gonzalez Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox