From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 53E6C139337 for ; Sun, 25 Jul 2021 20:30:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B7F6E0DD3; Sun, 25 Jul 2021 20:30:06 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9DE6BE0C83 for ; Sun, 25 Jul 2021 20:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627244992; bh=3WG1BoP/08x0cRMk0oPvge2tUEyebT3Ai3h+2tSapPk=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=H5pCfj/BtUkEjp/nJsYZ9+KTB6Z0FeTgGKTl7DxjPWnWxXLmnYebtTb1U+jJq2R8u bVHepADxB1TFF/COEcikgLuc0XaqWrJw+bKxczptEilyA+klR52DhIda257mTQkrIc NVLqGRPgSPziH0EUcE1/5zZbT3XZwl/Mw9AkuwrU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from kern ([92.117.60.150]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYeQr-1ldDKF1oZv-00VkO4 for ; Sun, 25 Jul 2021 22:29:52 +0200 Date: Sun, 25 Jul 2021 22:29:50 +0200 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: <649753f7-5dcd-1842-875d-d637ef754b9f@gmail.com> <3923b557-9d65-825b-e0fd-b1977c8d70c1@gmail.com> <7c279941-291a-5078-a83f-601ff58a6008@gmail.com> <9946c2eb-bb5c-a9c0-ced9-1ac269cd69a0@gmail.com> <6ecbf2d6-2c6f-3f66-5eee-f4766d5e5254@gmail.com> <24805.48814.331408.860941@tux.local> <5483630c-3cd1-bca2-0a6d-62bb85a5adc6@gmail.com> 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MsNiWRn2mnNKSQo/" Content-Disposition: inline In-Reply-To: <5483630c-3cd1-bca2-0a6d-62bb85a5adc6@gmail.com> User-Agent: Mutt 2.1.1; VIM - Vi IMproved 8.2 X-Provags-ID: V03:K1:rp9SWO7hOmtQPHFRqjKJjkmp2rvgdliZIGd3KLU05UhHHbmpq2q AURixnT9oDwf2RMH0U0yUCnc6YC42J8+BPi/pcwVBWWfksuKVDgf/omvsCH5wCpRzMUY9w5 /NyfR2NAutflwePIw5D4Rld7cUbwnS/ywu1iocTCAxwIQpVSp20tEqxirgGKPvXNwuV36Ve y7QILNV7i0KT1bDtaOOCQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:HwiibBvWiXc=:nfJKjXwXx/e7aSQxYYgcE3 PKMoHZfZF8HykMzFIITh/0Od0QgI5sHa162qbeWJAbIPXFRzGDlgMm8aLg3sGwTRSDmGb/X58 0XnPEdlPdzIS8kE9xYl7Nl1cknUFlHD+OkDk4uRPJaXxJCTxaeU/Cr1R9SegVXx/IVlUrNQq8 9O5+hB19Km+wy6Gvv/+RnjTz0u++CqaSe53ZYzV4UVZcYvdElkoOWcoGm7uCp14xKqlHfJZvu Frgg8cQVdL4w+OJv5ZVemgqO0Kz4WFk7JWgR+Wi7+UmS3oiYVs4TMr2p13hPcFKU9kjiI5ozY Wy3a+FABVPRb0dxHrCkk3k1ZRHQzKYzzMC4J34dyfI3yVE5popKTkSbx3ajxFpDhU5bq0rpkf 5UeHFpqY9jDcMj+dsVt7uKd1qwKONvBPDmPOSDq5cAVoAG/i3DY7Y9WCJeKQdlN4LG4ZrIkiQ nsuRFaeg1HPwG/yGEEhklRTUrvqBpBvN1ZVwAH+Q8rBFmt5l2TKtNfzMCKGZN3RmiBWQS/NqD W0LY1r4X6LNXUEq9Boy6DpI+ApkUNk+ExeJAWrUP3mI+Z/NMilSnuTJ6WbRYrlH6gct/DUi7O i2S0znyAhzyqoQQusuFkkgfrsZZCGtsJVt643XxQWNA/6U0jFWLOxNh9xvg92ZNhyU3s+hD6V Gk5V/hsz62/acpK8glIDTNCGKnzd83VbHD3e71xZu1LQAZm2GbPaK/BAJ181Vd/JTS6I7fBeK SulWcE8cHLzrBTUukNCMTq2WNZWgV4RFalV/qbbxFi5PmRpKk7hUAbqbuXN61skaGrRTaJIqr dwcBuseaKRLdND7CKEXvrR1h8xpMAiT+cic/NxXdf1wsQexGU/0fjg9XYONbRhiQTjQpdvtma WckIWt+ZL0FGK7GOZX5W7tmLPBH04s0/ztKOgZ8BjQs3zFLy49dEIc/VspstQs1QzC57TXW1i LIkzmif5HNyixYZ3gc11x+ICbt5j1saTNhC4wEj/i8HWlv/91CB2Cke2ews6DZDSs+W//2MBz v6b9E/Yah5krGSHXziHUUnQtNpDUaxK3XUqGbuduafvNDA87pO2AJ6vmmB4tekN0ZslhSF7t8 eBZFkyssjUJVBFP/D/KmSFi7PQbtLN/J8x7 X-Archives-Salt: f82d3a9f-a9f4-4788-b142-45bb644dd8fd X-Archives-Hash: 736259fce6e00a720e028608519c05ed --MsNiWRn2mnNKSQo/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Wed, Jul 07, 2021 at 01:08:55PM -0500 schrieb Dale: > root@fireball / # blkid | grep dde669 > /dev/mapper/8tb: LABEL=3D"8tb-backup" > UUID=3D"0277ff1b-2d7c-451c-ae94-f20f42dde669" BLOCK_SIZE=3D"4096" TYPE=3D= "ext4" > root@fireball / # ls /dev/disk/by-uuid | grep dde669 > 0277ff1b-2d7c-451c-ae94-f20f42dde669 > root@fireball / # I followed this thread, and couldn=E2=80=99t remember ever having the same = issue. But today I was bitten: It=E2=80=99s a 3 TB external USB drive from Intenso. Yesterday I was in the middle of a backup (it=E2=80=99s my main backup driv= e), but I had to sleep and so sent the machine into standby. I had to start the PC again a few minutes later in order to unmount an sshfs of it on another machine, and sent it right back to sleep. Just now I switched the PC back on and the drive was gone and off (USB enclosures tend to spin down the drive when USB disconnects). So I pulled the USB cable and plugged it back in for the drive to start and be rediscovered. That worked and I resumed the backup, but this enclosure has the nasty habit of sometimes intermittently disconnecting on its own. Its device was not gone (it usually disconnects for a tiny moment and then comes back, probably a USB issue), so I just tried to open it again in Dolphin, which gave me: Error unlocking /dev/sdd1: Failed to activate device: File exists $ blkid | grep luks /dev/mapper/luks-6a55a712-773e-4cd8-9776-fc9b6f39a998: LABEL=3D"backup" UUI= D=3D"50ed9519-cd9c-4d11-b78a-9f057b089362" BLOCK_SIZE=3D"4096" TYPE=3D"ext4" $ ls -l /dev/disk/by-uuid/6a55a* lrwxrwxrwx 10 root 2021-07-25 21:34 /dev/disk/by-uuid/6a55a712-773e-4cd8-97= 76-fc9b6f39a998 -> ../../sdd1 $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS [=E2=80=A6] sdd 8:48 0 2,7T 0 disk =E2=94=94=E2=94=80sdd1 8:49 0 2,7T 0 part $ mount | grep -E 'luks|sdd' [nothing] $ cryptsetup luksClose luks-6a55a712-773e-4cd8-9776-fc9b6f39a998 Device luks-6a55a712-773e-4cd8-9776-fc9b6f39a998 is still in use. I don=E2=80=99t quite like this bad habit of the enclosure, but a 3 TB driv= e is a 3 TB drive. I just looked at smart to see how old it is, because it has only 350 hours of power-on time, but it must be at least 5 years old. And smartctl tells me there is a firmware update available! (for Windows, Mac and=E2=80=94lo and behold=E2=80=94a bootable ISO, let=E2=80=99s hope it wor= ks with USB sticks). Perhaps this fixes the issue. Dale, maybe you should look for the same. --=20 Gr=C3=BC=C3=9Fe | Greetings | Qapla=E2=80=99 Please do not share anything from, with or about me on any social network. Emacs is a great operating system, which only lacks a good editor. --MsNiWRn2mnNKSQo/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmD9ybkACgkQizG+tUDU MMr/WxAAwg91tLPldqYygPB7+wa2PjwZPkdZgV7jDYMcV8acQX7qzP6hIklm/GQy xDcWd+XBk7nelM+T6X7J284Nz8ld0vS3G/dNs4IaLIeQewan7A++6w+z8EtsbV4F xBI8/Pkqx2TrtJ6910kDB66z4PPGpJnlqAS9pgVO36zedTis4f8RkmLHSI1hDD5F H3c1aS+6woByQZ4HtMOaMvmH4GxrZ6GkGHQPtkPQCUXKa5T39nPybofRypRJmoVf 5Hr49FaYgj6ejZS2ZLQ9MCmGdEs0oDSv/zz+kiHxIRISxOorQXLn0OZ6dwJE47PY QqXJTpvxIVfRKz5voXTubIGGuHubS9ErQwQJ6VJ7GEapcPKZXi94ebedGLhbaTB5 /m08FfS7k+yUgCbh17VGd7NAB+9g9tUC9CoPxWyoVQsuDeV+CRjf2LedpRqzPTZx T98ZrEPgIvw7s81F22ssGJAdkDag6OCr3DOjotifD+ZpwGhzhEPXcUOSnPnmc5r5 OMBTj/dVsEUsdGk9w8/B81OHFeUrMCkVECvoumNsk0pkSYubFzitIyxc8C5WWqno 42a4jLanEPJOrvf7iAo9B0oqQKt5I4EejSq0iopvbKPMyuEkBae1w3OrpJP64yAI GQXqWpUEUX79Z6swkzxUfy0MpSm+qd/bS3f+ak/9k6V5T7NgajY= =7M+r -----END PGP SIGNATURE----- --MsNiWRn2mnNKSQo/--