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 573D913933E for ; Tue, 6 Jul 2021 18:40:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79EAFE0BF6; Tue, 6 Jul 2021 18:40:37 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2109.outbound.protection.outlook.com [40.92.89.109]) (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 D6CE7E0BDE for ; Tue, 6 Jul 2021 18:40:36 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hcJoXxoK8PwL8yIW/+L+DqudwE5VPzQqkAKlFQuW8iuFjK6N/J+z6Bf8nKiPVzzYAcZMZYj1fQv5PPd9mJVQOrPrSYHeQvhG77LTVvihENtySP4JwxsmhT6rpenAITy+CbDWi8seaWO5uhqQ3JExLEI0iOZGlQ9OFub9StgKwDgXj1ScsbviilD1lAr43OcJuYlkHpNY6FcV2DfrZvxEJTVgWiGtn9TRvANjIVLSheH6bGhGfbJYle1YmRSP0jdOPLHBRwo4hNLScnZfGB9dTXlsK3YrUH7CSNkspzKvk4dWcMHI80YRwry4jNm1SJqBC3A3/KSsoBRirAkhNUVjJQ== 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=e9elPlNZXDUcdhNVcLzW3rcLiESyVO5AguJqUsWXoOI=; b=Cvyh6PYJ/RA7vAAC69+mXnljXUdyRKmTapKAx/MJ51ZhWqzJIArdirQjXmqRUfCGLPBSmgbix0d3JGcSxHX3otNrlmDMrlKHV59c5XqgQQMXKM1996d59sh/uchyivoJBoBcX4AUrBId+X79OwBjytmT8JqpaSvW2ODS8zcs0+Nt+AaDnjhxhBJBqZeGUVENQ8S2G1JmoIGVnvxg7w+6pGaA9wMxKIONgaoM+LDGkZ+NbLGaJHv6BE7+5KmhA1xkpWwYwPNlHsbfaL3Y1lGaQWRky6OowUkGA8mVzf381x/GysguZbIvphUjXElqyrzgo7bftqTk4p7MrfTReOwbMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from VI1EUR05FT038.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::48) by VI1EUR05HT230.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::413) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Tue, 6 Jul 2021 18:40:35 +0000 Received: from AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM (2a01:111:e400:fc12::52) by VI1EUR05FT038.mail.protection.outlook.com (2a01:111:e400:fc12::220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Tue, 6 Jul 2021 18:40:34 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3DBB20D35A815FC65C8F86E836102A6484A2D653BBDF9CBB939E9265017FA176;UpperCasedChecksum:4BACEF100C9DA6CE6D9AE1D9695DDC08E52F5FCC7D575F5AFB8D8AE6CCA3275F;SizeAsReceived:9326;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.4242.029; Tue, 6 Jul 2021 18:40:34 +0000 Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not To: gentoo-user@lists.gentoo.org References: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> <9c9d5923-dccb-34d5-0f3b-16e07f337009@users.sourceforge.net> <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> From: Ramon Fischer Message-ID: Date: Tue, 6 Jul 2021 20:40:32 +0200 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pU7iezVwovApe6xceeJxwXEUtTNKWqV1O" X-TMN: [tg6EJiLuGsRSkpa+bXkNX5MiCfLSJUK5BUPznjJfzNcgz48qKsfrobvNiMllqt7i] X-ClientProxiedBy: LO4P123CA0494.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1ab::13) To AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:4c::30) X-Microsoft-Original-Message-ID: <1339b84d-5612-1478-4e30-b9c43ccc5b67@hotmail.de> 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:2a0a:a540:33b5:0:51d5:1107:d5de:97bc] (2a0a:a540:33b5:0:51d5:1107:d5de:97bc) by LO4P123CA0494.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1ab::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Tue, 6 Jul 2021 18:40:34 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 5615fd47-b76c-4036-db6f-08d940ad8a49 X-MS-TrafficTypeDiagnostic: VI1EUR05HT230: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kjE+uOfff2/MF+gSbifhAIMpHblN9U0Dz3RK/nKL/KVq1C5snm6lxWAnG0vAIxypeKbClEg1jl6yy7RqV+IBXXVGo+DG3RZFkdaatZnv3x2x0HUSyMOJBWP2SZMFQfmSKfQsGM3qEEOidiEh43pLCo4p5gm6uRukHza37F2t/eoA+7NgEg7eA8uJxsSg0vbVaNv6JhMo9UypllgbRgz8AipWiRzAY1SRhr4bOXsBwccOP7Y+OGHFTJ2SIFuZy7F0djt814/K47lqPFkxz+o1kazWlCnlOcUVEUAOetnoXkjvph4Fi7g64qNnC6HPY7UwrA/YqEPy9DV0/ALplwNRCXbQ39gfVlhw/GUDi2ZnBQUyTBpjGOfcjcKqNhSUCPZ0wRybQTEEhUiv4koqZAMhKJQN9vhOUNWoPtF5QE0hXyt4ILDsDZOzFg3bttmuqxcK X-MS-Exchange-AntiSpam-MessageData: b4aWN/+FXekM+z66qWJz242VSewg+2uUrL9grnfrCWfkNnTxoo6ZthATlGkAn4E7ueFZ7xGvV3xtKkpnkhaEkZVW/XdiQUBb3AxzZkjvAK19IvH4/P2auE4KyWiPKO1bNQoj5749UkY888dhj/WS+29GG0l4lv4CRXk/1yBs2uX8RoPBos7o+4wuH1idOd3pqrd+Wc1/jvE/3F9dnEGs7Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5615fd47-b76c-4036-db6f-08d940ad8a49 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 18:40:34.8169 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT038.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT230 X-Archives-Salt: 0a0bf349-0cc1-4337-b3ad-cf83b2a3e2af X-Archives-Hash: 08015f4306e2246eb3247600785ecb29 --pU7iezVwovApe6xceeJxwXEUtTNKWqV1O Content-Type: multipart/mixed; boundary="PgHCcNmdMmC1xg1XNtuyzLj05eyU8upKF"; protected-headers="v1" From: Ramon Fischer To: gentoo-user@lists.gentoo.org Message-ID: <1339b84d-5612-1478-4e30-b9c43ccc5b67@hotmail.de> Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not References: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> <9c9d5923-dccb-34d5-0f3b-16e07f337009@users.sourceforge.net> <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> In-Reply-To: --PgHCcNmdMmC1xg1XNtuyzLj05eyU8upKF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US This is just a guess. Maybe you have two devices with the same UUID? If so, you can change it with: $ cryptsetup --uuid=3D"" luksUUID "/dev/sdx1" -Ramon On 05/07/2021 05:19, Dale wrote: > Dale wrote: >> Dale wrote: >>> After staring at it a while, it hit me that lsblk is showing it as st= ill >>> mounted, even tho I umounted already without error.=C2=A0 So, I just = ran the >>> umount command again.=C2=A0 After that, it closed just fine.=C2=A0 So= , it seems to >>> be mounted twice, not once.=C2=A0 I mount using this command 'mount /= mnt/8tb' >>> which uses fstab to mount the correct UUID device to that mount point= =2E >>> Surely it only mounts once.=C2=A0 Always has in the past.=C2=A0 So wh= y is it being >>> mounted twice now?=C2=A0 None of my scripts used for backups includes= any >>> mounting commands.=C2=A0 There's also only one entry in fstab as well= =2E >>> >>> Anyone have any idea while it gets mounted twice?=C2=A0 Does the cryp= tsetup >>> open command mount it in some way and then I mount it manually as wel= l?? >>> When I opened it just now, it didn't show anything as mounted.=C2=A0 = So it >>> doesn't appear to be the open command.=C2=A0 What else could it be?? >>> >>> Ideas? >>> >>> Dale >>> >>> :-)=C2=A0 :-) >>> >> The same drive just did it again.=C2=A0 I had to reboot to get it to r= eset. >> This is Linux not windoze.=C2=A0 Rebooting to reset something like tha= t is >> plain ridiculous.=C2=A0 I also checked, this time it was mounted only = once. >> When I tried to umount it again, it said it wasn't mounted.=C2=A0 The = thing >> that really gets me, nothing can tell me what it is that is using the >> device.=C2=A0 It says it is in use but no clue what it is using it. >> >> To test a theory, I changed fstab to mount by label instead of UUID. >> Maybe that will change something.=C2=A0 I dunno.=C2=A0 I do know, if t= his doesn't >> improve soon, I'm going to erase the drive and either find another >> encryption tool or just not encrypt it at all.=C2=A0 I'm not rebooting= every >> time this thing wants to act ugly.=C2=A0 I'm used to rebooting like ev= ery 6 >> months or so.=C2=A0 Usually when the power fails. >> >> If anyone has any ideas, please post.=C2=A0 In the meantime, I'm going= to try >> this mounting by label idea. >> >> Dale >> >> :-)=C2=A0 :-) >> > > Here's a update.=C2=A0 I'm doing my weekly updates which means I close = web > browsers, to conserve memory mostly.=C2=A0 While I'm doing updates, I u= pdate > my backups.=C2=A0 As usual, the 6TB drive did fine.=C2=A0 I ran the usu= al > commands, got the proper response and everything worked fine.=C2=A0 The= 8TB > drive did the same.=C2=A0 It ran every command from decrypting it to > unmounting and closing without a single problem.=C2=A0 I even opened it= , > mounted it, unmounted it and closed it again.=C2=A0 Still, no problems = at all. > > The only thing I changed, I mounted by label instead of UUID.=C2=A0 Can= > someone explain to me why that should matter?=C2=A0 It's the same thing= being > mounted so one would think it wouldn't matter at all.=C2=A0 Heck, most = even > say mounting by UUID is the best way.=C2=A0 Dang near impossible to hav= e two > of anything with the same UUID.=C2=A0 So why does it work fine with lab= els > but not UUID? > > I'm looking forward to someone having a clue on this.=C2=A0 I'm very > confused, happy it works but confused for sure. This makes no sense. > > Dale > > :-)=C2=A0 :-) > --=20 GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF --PgHCcNmdMmC1xg1XNtuyzLj05eyU8upKF-- --pU7iezVwovApe6xceeJxwXEUtTNKWqV1O 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+HFVviZBPmmb8FAmDko6AFAwAAAAAACgkQFVviZBPmmb9J Tg//e5RVlVhWod41t4i7PGsnqc8U1cJhpJ9gfOhq2Ew+uzNRT5ImY4paGQH2G/DHC+Qg33+43836 Jk9bRwV7BjlUTXJnrMgjw2QcUNyVc4FIkMYmFyonw4wWlLwP+kWVxQBEh0RwW+FU1vaxkutotIsI GMvSbbrHfivcun+Q/IAASuNftec3iYfflh7nTFl/RpBSwx9Iw1VO3WgopxpCVyh5+9hQs4zjZtfV C/KhYYkwwnxPFxkUwXNhUt7imPZmRKjTkXgITe3/+kTZOhJYM6mjanXSgfQFbQ4kykapLJ7epgWM EsgtoxD8xQwQmv+aSIeucYmQcOuvu0kiO10Bx2i2/QTrQB9I1e7a6yjeQay2NOwZ+Ha/Cs2a53eV 0NgGMiVcMUzYnkc72rN6DZkviuvlEUS7gKrtdklAXxQ9uUpIMs9BYcCFCNSSra5wTIuHzuEUljA8 h6EV4faomu52kTyNvifr0Wa8YMNPgaJXxwx4VjCVK4aQUMsWHmYoy++TsRDFwHAkCZRqrWtOI4r4 SXIflp9WA9xQlJi7WcbLXlJoKX01UyQB3hUx8adU+gZjnH/ZXPPfA6viXFkEgNj0bOOy04Snn67z pU7YcJxAZ1Fnt5J265QBockLIg/J/R2I1E97SwQ0Qa8lILWd8ZGgJywTb5g2l3B/wQCdZv7EMJBz SS8= =DkNN -----END PGP SIGNATURE----- --pU7iezVwovApe6xceeJxwXEUtTNKWqV1O--