From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SGx0m-0003CB-RO for garchives@archives.gentoo.org; Sun, 08 Apr 2012 18:38:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CFB86E0B6E; Sun, 8 Apr 2012 18:38:32 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by pigeon.gentoo.org (Postfix) with SMTP id D9BABE0B5F for ; Sun, 8 Apr 2012 18:37:08 +0000 (UTC) Received: (qmail invoked by alias); 08 Apr 2012 18:37:07 -0000 Received: from p5485146B.dip0.t-ipconnect.de (EHLO gmx.net) [84.133.20.107] by mail.gmx.net (mp032) with SMTP; 08 Apr 2012 20:37:07 +0200 X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX1+NH4VSDtONk3AvB69DMMmU7bxzQnjgkWUVI+e4vX g0cSzcStWlcPSa Received: by gmx.net (nbSMTP-1.00) for uid 1001 Meino.Cramer@gmx.de; Sun, 8 Apr 2012 20:37:07 +0200 (CEST) Date: Sun, 8 Apr 2012 20:37:07 +0200 From: meino.cramer@gmx.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Extended file attributes: ext4 Message-ID: <20120408183707.GA4006@solfire> References: <20120408152603.GC3025@solfire> <20120408165623.5fd4fcc6@karnak.local> <201204081734.11781.michaelkintzios@gmail.com> <20120408164430.GD3025@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 X-Archives-Salt: 421c3e2c-11fd-4e40-8d2b-6c23000626d8 X-Archives-Hash: 9d09860fd0679a8702c430f38b65e142 Canek Pel=E1ez Vald=E9s [12-04-08 20:28]: > On Sun, Apr 8, 2012 at 11:44 AM, wrote: > > Mick [12-04-08 18:40]: > >> On Sunday 08 Apr 2012 16:56:23 David W Noon wrote: > >> > On Sun, 8 Apr 2012 17:26:03 +0200, meino.cramer@gmx.de wrote about > >> > > >> > [gentoo-user] Extended file attributes: ext4: > >> > > is it possible to go from an ext4-filesystem with no extended file > >> > > attributes to one with extended file attributes without reformatti= ng > >> > > the disk or other very risky low level things just by adding this > >> > > feature to the kenrel (?) ? > >> > > >> > Yes, it's simple. > >> > > >> > You need to ensure that your kernel configuration has the extended > >> > attribute support (ACL is a good idea too) and you have booted with = the > >> > ext4 driver so configured. > >> > > >> > You then add the xattr option in /etc/fstab for the filesystem(s) wh= ere > >> > you want extended attribute support. =A0If you do that before you re= boot > >> > (as above) then you will have full extended attribute support. > >> > >> I thought that you are meant to pass such options on the CLI at the ti= me you > >> are formatting the partition ... is this incorrect? > >> > >> Of course if you must format the drive with such options then the data= won't > >> survive. > >> -- > >> Regards, > >> Mick > > > > > > Hi, > > > > thank you very much for all the input. > > > > To clearify things a little: > > > > Status quo: System with ext4 and no extended attributes. > > Where I want to be: The same system with extended attributes. > > > > Way to go: No reformatting and mkfs and all that things. Only kernel > > reconfiguring / recompiling / rebooting and emerging some tools. > > > > Possible? >=20 > As others had said, this is possible. I used this guide: >=20 > http://www.debian-administration.org/articles/643 >=20 > You need basically to enable the ext4-only features: >=20 > tune2fs -O extents,uninit_bg,dir_index >=20 > Do the fsck: >=20 > fsck.ext4 -yfD >=20 > And (optionally) convert all the files and directories to use extends: >=20 > find -xdev -type f -print0 | xargs -0 chattr +e > find -xdev -type d -print0 | xargs -0 chattr +e >=20 > I did this on my laptop and desktop (including the root filesystem, > booting into emergency mode with systemd), and everything worked > perfectly. >=20 > Note, however, that you *need* GRUB2 if your kernel lives in an ext4 > partition that it's not longer compatible with ext3. Don't do the > change without migrating to GRUB2 before. >=20 > Regards. > --=20 > Canek Pel=E1ez Vald=E9s > Posgrado en Ciencia e Ingenier=EDa de la Computaci=F3n > Universidad Nacional Aut=F3noma de M=E9xico >=20 Ok, thanks for the introduction and the link, Canek! :) Best regards, mcc