From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G1W6s-0007fH-L8 for garchives@archives.gentoo.org; Fri, 14 Jul 2006 22:26:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6EMOcat017061; Fri, 14 Jul 2006 22:24:38 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6EMJ2ct017556 for ; Fri, 14 Jul 2006 22:19:02 GMT Received: by nf-out-0910.google.com with SMTP id x37so9852nfc for ; Fri, 14 Jul 2006 15:19:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GyUkoZRgSsQ82uwJ/Xhhu/Jtg6MQxmgQjxDVLjpHSPFvwH9YCZ56WwBgddnTWknQHeAymorlpqqn7ulbHSSgeWSHy4aXdleoFMuNu/ZDmmVBmIii6OazUgnDnNvTyhMjezMuvfBd0o/g88oaYPYfC4k3KFy/G4AWkv3G24iKEmU= Received: by 10.78.158.11 with SMTP id g11mr10085hue; Fri, 14 Jul 2006 15:19:02 -0700 (PDT) Received: by 10.78.118.5 with HTTP; Fri, 14 Jul 2006 15:19:02 -0700 (PDT) Message-ID: <306bf010607141519g63e305fax3327b4bf806bf951@mail.gmail.com> Date: Fri, 14 Jul 2006 22:19:02 +0000 From: "Jose Gonzalez Gomez" To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Cannot remove files: operation not permitted In-Reply-To: <306bf010607141400s442c916ah3bfe9fd579c3e36b@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19447_16758602.1152915542361" References: <306bf010607141400s442c916ah3bfe9fd579c3e36b@mail.gmail.com> X-Archives-Salt: 81303ae9-f630-4210-b4e4-d17796183ef9 X-Archives-Hash: b0b16540012b083d0dc7c6c8a7e18684 ------=_Part_19447_16758602.1152915542361 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2006/7/14, Jose Gonzalez Gomez : > > 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 ------=_Part_19447_16758602.1152915542361 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_19447_16758602.1152915542361-- -- gentoo-user@gentoo.org mailing list