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 <gentoo-user+bounces-112952-garchives=archives.gentoo.org@lists.gentoo.org>) id 1OawZ8-0003u4-6e for garchives@archives.gentoo.org; Mon, 19 Jul 2010 20:03:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D516EE0A01 for <garchives@archives.gentoo.org>; Mon, 19 Jul 2010 20:03:52 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 237D5E0848 for <gentoo-user@lists.gentoo.org>; Mon, 19 Jul 2010 19:06:15 +0000 (UTC) Received: from weird.localnet (p4FF07C62.dip.t-dialin.net [79.240.124.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id EE04E4A8010 for <gentoo-user@lists.gentoo.org>; Mon, 19 Jul 2010 21:06:14 +0200 (CEST) From: Alex Schuster <wonko@wonkology.org> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] unmounting /usr in single user mode Date: Mon, 19 Jul 2010 21:06:12 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-tuxonice; KDE/4.4.5; x86_64; ; ) References: <yu97hkrmh7m.fsf@nyu.edu> In-Reply-To: <yu97hkrmh7m.fsf@nyu.edu> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> 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-1" Content-Transfer-Encoding: 7bit Message-Id: <201007192106.13328.wonko@wonkology.org> X-Archives-Salt: b0d153a3-6994-455f-b938-f712bb4994b4 X-Archives-Hash: 6333c0384c3f5f962d93ee4d7e1338d7 Allan Gottlieb writes: > I am unable to umount /usr in single user mode on an old system. > I believe the system is baselayout-1 and is amd64. > The trouble is open files, at least some of which appear to be related > to bash and locale (see the files below). > > I use grub. On the kernel line can I specify sh instead of bash? > I know sh is linked to bash, but hope that it will not use locale. Why not use a live-cd? > I need to umount /usr so that I can resize it (I use lvm and have > already extended the logical volume). Specifically i want to execute > umount /usr > resize2fs /dev/vg/usr > mount /usr As long as you extend the size, resizing works online, without the need to unmount a partition. That's only necessary when reducing the size. Hooray! > (I realize I will probably need an e2fsck). True if the partition is unmounted. Wonko