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 7854A1382C5 for ; Tue, 15 Jun 2021 13:48:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42E1CE0843; Tue, 15 Jun 2021 13:48:17 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn20827.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::827]) (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 BDE3AE0821 for ; Tue, 15 Jun 2021 13:48:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h9DXyjuEJLsbhx9zIEe0gA8XkTGIYDokfC/Ud4bfeWbt8uJSfgO/Nz0NWGp4g5J2ZwxbKdY9yJfiHeh50NnyRfNYkC76WWhnUPMGfrMo0b9gsvdQd1M6ULbUY/f9QvKCVzuu4TK2pnsODj0qpgEWnPhvNs4eAkwyxCXVARSDZ+31IxuY6Y/xgPdsTKuEfXpwwUgnT957gelvukg96QTgFuilxV6lIZjhzShhyRe0duc9VNfrQSnzToj9HL25nvSj6l4p5QCe8UDXNW7V90VgNJSHhfaiGOPcu7M69NXfcmc8vGWfSPAfnSuUx+CPJk8ftvmqnJ8SZ0WC20Mt/TZhMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P+4nR5a3PnfbMl6o9i5Cb/KAHKr+OWXDQFzLi+kD9+w=; b=jkA/FnEvanE6Lln01Hu4NUzya1F2hMmi+XVU9LBoaLnRd/YbJYGwgTL5XT5ZbYqi9gqounQcn0gM1mmcpYfIo261fam3UlaQwRWfBQKgIsx5gv4KuiD1GUXJVZNwjGonyeMDpL9Lg2T77JOt66tRw8UyFrTKkuzIClfFg4+KfPgeL363lp2s2hccMHfNt9yoUPLqJsjlZSMWAlxRM7S+hdeK8DfpuD7mfhzyCIiZnA9nHHf2blrAP0T6zNAyVfZFe9zTZEygbw+0VCe0W/uxibop8tIp3eh0MgMJW7VG1HmQR2ohR7WasfDOIOLvdhEd/8ftzOB4u1eb2ejJtHV6YQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DB8EUR05FT018.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::4a) by DB8EUR05HT091.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Tue, 15 Jun 2021 13:48:15 +0000 Received: from AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM (2a01:111:e400:fc0f::40) by DB8EUR05FT018.mail.protection.outlook.com (2a01:111:e400:fc0f::63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 13:48:15 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:08D872C392637595BAB4A6F88A0A824E18642D48D53FFFC70C17E335B3FCE629;UpperCasedChecksum:DC8D0A3C38345C1B2E008EC2DB83B6188A49DC6CE67D8BD3ABA8BF270F46AE48;SizeAsReceived:8766;Count:45 Received: from AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM ([fe80::e581:feb4:4485:2e4f]) by AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM ([fe80::e581:feb4:4485:2e4f%7]) with mapi id 15.20.4219.025; Tue, 15 Jun 2021 13:48:14 +0000 To: gentoo-user@lists.gentoo.org References: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> From: Ramon Fischer Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not Message-ID: Date: Tue, 15 Jun 2021 15:48:12 +0200 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) In-Reply-To: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bRaA1fiGpLFZFKE3rlIbC9OfxDwhxnzCc" X-TMN: [Vv/m9S+7mCsGP+Qj0koD7S261Sy5khhCk478Tg831BU1DemElsoX+X2t3dksFN8+] X-ClientProxiedBy: LO4P123CA0174.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::17) To AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:4c::30) X-Microsoft-Original-Message-ID: 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 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:4dd7:7e83:0:d9e9:bbac:a0d3:801c] (2001:4dd7:7e83:0:d9e9:bbac:a0d3:801c) by LO4P123CA0174.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22 via Frontend Transport; Tue, 15 Jun 2021 13:48:13 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2437f98e-e9ff-4f70-84e0-08d9300438cd X-MS-TrafficTypeDiagnostic: DB8EUR05HT091: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b7mbg2ywnN1h4FzgOm2H1QjJDlPq4+Mk7yyDUaaoDFDlvTV1pzC2U0eNz52d5M5+ec4BBZztBtaIfhZKUt4G047KiXdN4BSmzgB46hSRZOWwj9GynbqdfuN7QHULbuEMbjFX08jjhC18mfopV1MU+WvzCDyeuT5+z2kjzyNZzfijrtpolZRyDbc0H11w/YFwhKL6TpEsgy9QTRo1YxKLyUhgve7T0V3YSmItIYdL7f6PPGv39Oq7Xt3oIHPqoxijo1zug1nwr4SOH5r97Kso9k5jbGCmRtOXvHf3UJ1rdWb+nwJByJJHdhFoeIoORWOnaAD6VUGjdZ3TJXiqCzCVc0TBAcibkwG/FFMCtmdsf6WNBKtQxnyzuKBwmww39ltztE73ngPMADAAEKFLy3Xwfg== X-MS-Exchange-AntiSpam-MessageData: OYEawI9AA4upJpoHF/t91eNCNw1BjNNGICHDg4i6rax7+4sx2XM+32IkTUuBPe7jvRnwx2T8SNqiT1CIypuCMzvt4/GVj+a07y/1LA0/lgDtB82UxIMSt1WzbJqy9/r46XjlbGVpcTytvLW0N/jZJR3kWaWxrYbHvttD0LltuPfGyQRLgVcOc6j7g4HQ3Hd8MvOJ3Z7zkyP3d1y7tWlt2A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2437f98e-e9ff-4f70-84e0-08d9300438cd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 13:48:14.7407 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT018.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT091 X-Archives-Salt: d57b0c94-93db-4f6f-9ca0-4ec40f7d6267 X-Archives-Hash: a1a7dadc8fe185c6ca5e89acf87790cd --bRaA1fiGpLFZFKE3rlIbC9OfxDwhxnzCc Content-Type: multipart/mixed; boundary="OEg4w3UUY0LjuYPyg0khIKlUs5TsguXfU"; protected-headers="v1" From: Ramon Fischer To: gentoo-user@lists.gentoo.org Message-ID: Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not References: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> In-Reply-To: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> --OEg4w3UUY0LjuYPyg0khIKlUs5TsguXfU Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US Hello Dale, this also happens to me sometimes and the culprit was an open process=20 still accessing the hard drive. Maybe you can solve it like this: $ lsof /mnt/8tb zsh=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8390 root=C2=A0 cwd=C2=A0=C2=A0= =C2=A0 DIR=C2=A0 253,2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4096 27787265 /mnt/8= tb $ kill 8390 $ lsof /mnt/8tb After that, you should be able to close the drive via "cryptsetup". -Ramon On 14/06/2021 06:50, Dale wrote: > root@fireball / # cryptsetup close 8tb > Device 8tb is still in use. > root@fireball / # mount | grep 8tb > root@fireball / # --=20 GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF --OEg4w3UUY0LjuYPyg0khIKlUs5TsguXfU-- --bRaA1fiGpLFZFKE3rlIbC9OfxDwhxnzCc Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEWYOY2l9NpGQ4/c+HFVviZBPmmb8FAmDIr5wFAwAAAAAACgkQFVviZBPmmb82 dQ/9GS2lmht5Ifhk9I0BNZa7it7dVT6z1t4IN1zH3Bk58WUbpOtp2W0jap6t+fdqOzxiq/CqLUgG 8cXXMc1e3Lh9++CfMC59BNn09JIpGllbdp8ENHg2GFCe6ZVQTFuAGujnC1qRLwRZADuU0+yqyyhV RSzXLuGbhIw/skYWcu29d5Co7SknVxjgLtGOtDH/y0PCY1mfWKuG1IdD+47jJjMik/wE7O661jD3 86Pevg0QS9qwwo1WjbN6r0Y+0wVvZ6J8eSf+6oM1MTNFgVYMGxdz4Hgqkr5pAOgw5mgOj9a2EVha c/NOS6VOqZk/7w0Glov/5ejMcs2NWj4lW8N/1ho1rcWMUwMb3UdS45VQMoO+WwycxP+h5YIY1vDE EkDezlCt1rNXE5XEkeHWYHiPi2Ec1/oKrQ5mVLAivnBcKZ56iUgZk7vdcbOpFCtLplHnf6aReQaS 60k1LACdzTwFQSfVa9KtKI5ZYWCD1Tv5/UDTl7ZMt1sNYHsQ2mGZTC3ktSxtvxnjCRbsN3rO/3VL B/01d+iG1f5CwHDaIwQwxGvsQ8dPs/b18kXy2A44Idv0O0qj15w2aGFpGWzAHF3ZmTLA1Y6svnD4 38QVhjcZC84b7YWZWSoAP5uV43lx19ywO07bb35Za2sbTUAsjMxl21Zuz+NhvpNr5EmE0lTGz36O UBo= =gcuO -----END PGP SIGNATURE----- --bRaA1fiGpLFZFKE3rlIbC9OfxDwhxnzCc--