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 1QGXsO-0002IM-JX for garchives@archives.gentoo.org; Sun, 01 May 2011 14:44:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B972D1C005; Sun, 1 May 2011 14:42:21 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 690DC1C005 for ; Sun, 1 May 2011 14:42:21 +0000 (UTC) Received: by wyi11 with SMTP id 11so5112151wyi.40 for ; Sun, 01 May 2011 07:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:reply-to:to:subject:date:user-agent :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=oTayD2x6DWVN/FDVWwsaaCeOA80DGJjhW8+E5xZpQfI=; b=tAhhGT5Wi5LILTb2tWJyJhLRMAYpMwFwfeSxtfSaNesSBmK8weG6bd0tDATGzLCj9W 5UlJ1/fqphpQPCA2qI9KTT59T07Exz3yaKu/KF2mNnSZSIOe236hsKJ+JPO+YwqCE0x1 e7AWjkmzFn1U+gxETnSTGJy4BhyMH9Kq4EYAU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=fOffCXUAqLupKJjxChdCdJ4d1HiavfCH/4Ru0DxnZOX7lOQsPOkqyYWkfxssp2WBwA a95Gmm9o1CQpj2ib6s+6pmLMrpRww8N58zdm0utGQI8ODMnOKGt3AA/k3raInjpIV4h/ jEFJGpLa41PKFefTucXXizbtvLYq6RfWnbJY0= Received: by 10.216.158.131 with SMTP id q3mr1484205wek.99.1304260940476; Sun, 01 May 2011 07:42:20 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id f52sm1424242wes.11.2011.05.01.07.42.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 01 May 2011 07:42:19 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to unmount bind-mounted /dev? Date: Sun, 1 May 2011 15:42:37 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-gentoo-r4; KDE/4.4.5; x86_64; ; ) References: <4DBB4CDD.80306@wonkology.org> <201105010854.30963.michaelkintzios@gmail.com> <201105011508.37694.wonko@wonkology.org> In-Reply-To: <201105011508.37694.wonko@wonkology.org> 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: multipart/signed; boundary="nextPart2572131.vbz8CXz23M"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201105011542.49629.michaelkintzios@gmail.com> X-Archives-Salt: X-Archives-Hash: 4cfd1fc3beb52296f0e24aad9bda429a --nextPart2572131.vbz8CXz23M Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sunday 01 May 2011 14:08:36 Alex Schuster wrote: > Mick writes: > > On Sunday 01 May 2011 00:48:38 Alex Schuster wrote: > > > The lazy unmount was Thomas' hint already and worked, the partition is > > > no longer mounted. But I cannot fsck it, it is still in use. cryptset= up > > > luksClose works neither. > > > It's no big trouble, but still I'm curious why this is. > >=20 > > Asking the obvious: could this message be there because this partition > > is still mounted? >=20 > I grepped /proc/mounts for it and saw no references. I'm pretty sure I did > not overlook something. And it's already the second time I tried this, one > month ago the same had happened, but I did not care about it then. >=20 > > Did you check that this partition has been unmounted > > from all mount points, both original mount point and bind-mount? >=20 > The partition only has one mount point, but others were mounted inside it: >=20 > /dev/mapper/32 on /32 type ext3 (rw,noatime) > /dev on /32/dev type none (rw,bind) > /proc on /32/proc type none (rw,bind) > /home on /32/home type none (rw,bind,noatime) > /var/portage on /32/var/portage type none (rw,bind,noatime) >=20 > /var/portage has another file system inside for the portage tree. When I > want to unmount /32/var/portage, I have to unmount /32/var/portage/tree > first. All except /32/dev could be unmounted, for /32/dev I needed the -l > option to mount. Then /32 itself could be unmounted. But things like fsck > or 'cryptsetup remove' failed, /dev/mapper/32 was in use. >=20 > Then I rebooted, but I had forgotten to save my changes to fstab, so all > those things were again mounted. I tried again anyway, and this time there > was no problem. I had to use umount -l for /32/dev again, and this time > also for /32/proc (that was not necessary the last time), but after > unmounting /32, I could fsck its partition and shrink it. >=20 > I have no idea why it did not work the last times I tried. I'll try to > reproduce this from time to time, maybe after some more uptime and work on > this partition it will happen again. Yes, you've done the right thing, unmounting directories from the lower to = the=20 higher, before you try to unmount the top of the tree. I would think that= =20 /dev and /proc would be accessed by the OS in real time, every time you=20 read/write to a device/memory/acpi, etc. so trying to umount them could be= =20 more troublesome. Perhaps immediately after rebooting there was not much=20 activity from previous actions and that's why you were able to unmount them= =20 without too much trouble. =2D-=20 Regards, Mick --nextPart2572131.vbz8CXz23M Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk29cWkACgkQVTDTR3kpaLZTRACeLzjpgK/qAcvt2hfwf9scwGeO Sc8AoNb4/FLFzaUIRVY3I20j6icyM8i3 =L8a5 -----END PGP SIGNATURE----- --nextPart2572131.vbz8CXz23M--