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 1SGwlW-0000Rd-QG for garchives@archives.gentoo.org; Sun, 08 Apr 2012 18:23:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F3F9E080A; Sun, 8 Apr 2012 18:22:53 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B18BE0AE3 for ; Sun, 8 Apr 2012 18:21:06 +0000 (UTC) Received: by ggnl1 with SMTP id l1so76198ggn.40 for ; Sun, 08 Apr 2012 11:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=nrzt2XtFE3A7Jz2psnWdkhJOmruNhgqLwoIvvUtD5aY=; b=O3a5dXi/Hoozrss8Wj8eAmYcb8RA4wQRR71ZdSl0EMXb5iQ6F0J8ld+KeuZ4Hj/GfF VjebF0dS6DFx5oVZXYGSnPCsdmuVl7U3zeP+zUTtW0j1xy7GMrc4MYMaYLJvXpFyxCDo UpF9amuEV/2U6oJD0zQ83GWUDEEzO6sCcYO2XsfJGtBwTO9FfquPIymcttKYVFTNd0BW 5M9kEuNdlLvy3rSMYdS8UKzsHXJt1vOYxyKXjFHLMVi/WVV+ZT1tsggJmjRYkIPCknMO FjhA24MnIAUO37Nq3B9zul8U5DnWdLykgrvtNcd47oe2o3CtoMWj83qJUGR3SDnNMjzn e++g== 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 Received: by 10.236.185.42 with SMTP id t30mr3753669yhm.105.1333909265680; Sun, 08 Apr 2012 11:21:05 -0700 (PDT) Received: by 10.101.82.7 with HTTP; Sun, 8 Apr 2012 11:21:05 -0700 (PDT) In-Reply-To: <20120408164430.GD3025@solfire> References: <20120408152603.GC3025@solfire> <20120408165623.5fd4fcc6@karnak.local> <201204081734.11781.michaelkintzios@gmail.com> <20120408164430.GD3025@solfire> Date: Sun, 8 Apr 2012 13:21:05 -0500 Message-ID: Subject: Re: [gentoo-user] Extended file attributes: ext4 From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: bce5e4a4-b4f5-4a66-a217-c0a0447b7df8 X-Archives-Hash: 9fcad350ed277170e5f66f5513654096 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 reformatting >> > > 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 th= e >> > ext4 driver so configured. >> > >> > You then add the xattr option in /etc/fstab for the filesystem(s) wher= e >> > you want extended attribute support. =C2=A0If you do that before you r= eboot >> > (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 time= you >> are formatting the partition ... is this incorrect? >> >> Of course if you must format the drive with such options then the data w= on'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? As others had said, this is possible. I used this guide: http://www.debian-administration.org/articles/643 You need basically to enable the ext4-only features: tune2fs -O extents,uninit_bg,dir_index Do the fsck: fsck.ext4 -yfD And (optionally) convert all the files and directories to use extends: find -xdev -type f -print0 | xargs -0 chattr +e find -xdev -type d -print0 | xargs -0 chattr +e I did this on my laptop and desktop (including the root filesystem, booting into emergency mode with systemd), and everything worked perfectly. 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. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico