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 1STaUa-00055G-GA for garchives@archives.gentoo.org; Sun, 13 May 2012 15:13:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB182E0860; Sun, 13 May 2012 15:13:30 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id A4DBDE0830 for ; Sun, 13 May 2012 15:11:57 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-128-12.netcologne.de [78.35.128.12]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 6FEFFDC041 for ; Sun, 13 May 2012 17:11:56 +0200 (CEST) Date: Sun, 13 May 2012 17:11:55 +0200 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] fsck separate /usr Message-ID: <20120513171155.09993b48@weird.wonkology.org> In-Reply-To: <20120513140210.GA3063@ca.inter.net> References: <20120513024334.69bc9dd1@weird.wonkology.org> <20120513140210.GA3063@ca.inter.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: e721e93c-eda3-4fe7-91f2-de65ddf5038a X-Archives-Hash: 09af29134d583e949ad8e4a3cf5edd10 Philip Webb writes: > 120513 Alex Schuster wrote: > > I'm using the new udev with a separate /usr partition ... > > after an unclean shutdown > > -- reading files in /proc// was not a good idea -- > > /usr wants to be fsck'ed. But it is already mounted at that stage. > > Maybe I should just enlarge my root partition and move /usr there > > Did you see my description of how I did that ? -- see list 120506 . > The actual process took me 2 h 30 m , but preparations spread out > longer. Everything else is working just as before, > but I don't have to bother ever about Initramfs (whatever that is : > smile), & can update Udev without any worries when it becomes stable. > HTH I saw that, but here it will be much easier. All is on LVM here, so this should do it: # enlarge root partition lvresize -L +17G /dev/weird/root cryptsetup resize root resize2fs /dev/mapper/root # make sure /usr is not being written to. For other partitions, I'd # create an LVM snapshot mount -o remount,ro /usr # mount root to another place, without mounts like /usr showing up there mkdir /tmp/bindroot mount -o bind / /tmp/bindroot # copy data over rsync -ax /usr /tmp/bindroot/ # remove /usr stuff from fstab and dmcrypt sed "/\/dev\/weird\/usr/ d" /etc/fstab sed -i "/^target=usr2$/{N;N:N:d}" /etc/conf.d/dmcrypt # done! reboot No need for downtime except for the reboot, I guess I cannot unmount /usr otherwise. Wonko