From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39712: Partitions produced by the installer not properly unmounted? Date: Fri, 21 Feb 2020 12:13:22 +0100 Message-ID: <87lfownqgd.fsf@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33531) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j56Fv-0007VY-VY for bug-guix@gnu.org; Fri, 21 Feb 2020 06:14:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j56Fu-0003jP-Uj for bug-guix@gnu.org; Fri, 21 Feb 2020 06:14:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j56Fu-0003j6-RI for bug-guix@gnu.org; Fri, 21 Feb 2020 06:14:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:33295) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j56FJ-00071I-8F for bug-guix@gnu.org; Fri, 21 Feb 2020 06:13:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j56FJ-0002ou-4q for bug-guix@gnu.org; Fri, 21 Feb 2020 06:13:25 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42032 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j56FI-0000z1-FL for bug-guix@gnu.org; Fri, 21 Feb 2020 06:13:24 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 39712@debbugs.gnu.org Hi Mathieu, I noticed that partitions created by the installer appear to not be properly unmounted, at least when running in the context of (gnu tests install): --8<---------------cut here---------------start------------->8--- ludo@ribbon ~$ qemu-img convert -O raw /gnu/store/2d3s2nbb3j2c1hmkz52xds9rf= bk4q3x3-installation /tmp/broken.raw ludo@ribbon ~$ sudo losetup -P /dev/loop0 /tmp/broken.raw=20 ludo@ribbon ~$ sudo dmesg |tail -3 [10703.869334] kvm [8936]: vcpu0, guest rIP: 0xffffffffac073dad disabled pe= rfctr wrmsr: 0xc2 data 0xffff [10742.475623] kvm [8957]: vcpu0, guest rIP: 0xffffffffaf073dad disabled pe= rfctr wrmsr: 0xc2 data 0xffff [11774.318468] loop0: p1 p2 p3 ludo@ribbon ~$ sudo fdisk -l /dev/loop0 Disk /dev/loop0: 2.15 GiB, 2306867200 bytes, 4505600 sectors Units: sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 213AE251-0E91-499E-9184-0CCEC6DA64C7 Dispositiu Start Final Sectors Size Tipus /dev/loop0p1 2048 6143 4096 2M BIOS boot /dev/loop0p2 6144 231423 225280 110M Intercanvi Linux /dev/loop0p3 231424 4503551 4272128 2G Linux filesystem ludo@ribbon ~$ sudo mount /dev/loop0p3 /mnt/usb ludo@ribbon ~$ sudo dmesg |tail -3 [11774.318468] loop0: p1 p2 p3 [11803.975300] EXT4-fs (loop0p3): recovery complete [11803.977277] EXT4-fs (loop0p3): mounted filesystem with ordered data mode= . Opts: (null) --8<---------------cut here---------------end--------------->8--- However, I=E2=80=99ve added logging in =E2=80=98umount-user-partitions=E2= =80=99 in (gnu installer parted), and the installer does seem to unmount partitions correctly. Could it be a side effect of the MS_MOVE dance in 1d02052067e04d7dd8fd1ec17557ca02a30b9bcf? (I=E2=80=99m observing this on =E2=80=98wip-installer-tests=E2=80=99, rough= ly based on 117d8467be232bcc1b0136d04f362d95d975ca95.) Thanks, Ludo=E2=80=99.