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 474F21382C5 for ; Mon, 14 Jun 2021 04:50:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77FDDE0E5D; Mon, 14 Jun 2021 04:50:23 +0000 (UTC) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (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 E5832E0E27 for ; Mon, 14 Jun 2021 04:50:22 +0000 (UTC) Received: by mail-oi1-x236.google.com with SMTP id w127so13090960oig.12 for ; Sun, 13 Jun 2021 21:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=rkuFW0LDOvmZjE94fd56SJklVe8GRIteIvxMOX+FG9o=; b=mDceZ2HLdN6MZT0ndCTWhxAJ3fm+FNoTv3ojVmYTVYvPmzkp2a7Sm3nuT9NWLrqjVB 26B+S/d04TQudHddjQsVt8S+MuIANKDkeK4rwhoo8t5q9uJ1dF72wVLpCVQ2AJTPRDD+ gXVOFcw52et3TONulTA3u4NcDVgR6pZDwB1dogtxINU7hB1qvP+sKUftaMQWaIeMNgR3 VhrFLMiRZqtFOfLGb5+4CH7BwUhG48jZRl6aPjMJr+HbV6QpLcnm+hTUJ4JCh5kRcEVw EFXvlqwZF8vPMGFd0ghJr9b+jIlyMLLTi2qus7+oaMsvY+3PDg3E9q3X0dYW7rtqO3ie 5+iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id :date:user-agent:mime-version:content-transfer-encoding; bh=rkuFW0LDOvmZjE94fd56SJklVe8GRIteIvxMOX+FG9o=; b=bPnfEB02EzNIu3Hq53DvepGfVvHh1l8pndjpfGJmJrRSniJVJVri69l1+SjgawbmRr eEkKprdaSgVAu1u8JayqGm+ItI3vyqRIn4vltEzKnnS4TVin0Yh9mIqd8zmc8Yr231Ex VAko6buoU4nGT6yjpRE4yr1h4rIEwIgu1WwEcwDZ0J4wiVtMnsnXhupnOzYYSt1GVO+g KN6dPQMfxjS99ctFhi7i98/jA0oxRosAHFlO336jUWhD/rQz1+MeP39i+tpREsKEOvC0 u1W7t2Ni8ow3i9Q8pybPPoh9Evs3+tgdcJrl5ZgxsMGxoBZuFy2llAkbaTIaQOfyCVy+ sdbA== X-Gm-Message-State: AOAM5320nmk4cIIlwbV8qFh74cKII4VzmcCSF/RSO3VWYI2LXvRw4m9I Zqr9JhMDKBR1CwnSVjiO/VU= X-Google-Smtp-Source: ABdhPJyub6t9MR9MAdmSOMFAJcprfwIFpFyZJFjuCnvjINY0Cs2qy5Nwc2cXvLE8Zw9QD6HXF7fc1Q== X-Received: by 2002:aca:39d4:: with SMTP id g203mr21238771oia.158.1623646221914; Sun, 13 Jun 2021 21:50:21 -0700 (PDT) Received: from [192.168.0.100] (adsl-074-188-244-003.sip.asm.bellsouth.net. [74.188.244.3]) by smtp.gmail.com with ESMTPSA id a74sm2699765oib.21.2021.06.13.21.50.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Jun 2021 21:50:21 -0700 (PDT) To: gentoo-user@lists.gentoo.org From: Dale Subject: [gentoo-user] cryptsetup close and device in use when it is not Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBFxc7MgBEAC+zrgEdqJJiDe/UDAB+ScmferXWfJTVjbVT2T4D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VgzM/uuK0lt+UxCimgC+YR3IezgDcbfudb7h9dGIwL+bbPL0A EQEAAYkCNgQYAQgAIBYhBNnuy6u48FpLrRsJhe8Qz9da75mcBQJcXOzIAhsMAAoJEO8Qz9da 75mcXZ4P/1YXgWDZek7mhzrf6uaQzMxa92P89HeWz4PlgB/32symeEFAV04WazzBZffI8AYY rGA1Xmu/2VaB9+FOODyKhUWBc2UL0NRWBk6POwboyTdKlclmpixaN9zLcBt0YLejoRfN1B/5 aQf9/lUDZMnAiCyz0FgeqEMUshldmwWC35RqnjrCbbuk2vIqSH6BLDIXU6jQrLHE1DF0ai41 wLtQFAFXPhn45n0ZwYhVs4Z32z4sjXrIvgBgCaXa4HM+L1Klne0KiNM8ReFTTpTE0SgyDOSZ O3MOa2n77i6JbVtsbiFYnNeP3J9S/l3jevGpZEtNQOKrIm1MW8jGuHWtsDeMkT/mCcSodlkt PxIo+mMK9GpGvG2hW80LiohqNfUbNwAmr3blOYY4URPXPRnEnPs4pmTmL5owjw2dkg145i9I D42Tq+XZ6YtWt3SGzGbAYow6XwTwZ5NFAzV9UQuCGrDw4KWan6O6Z+VIYWsn0UMZlu1Obxna aocofkaUCbISK26kImuD1aA8juSHC18Qv1xUage6/UakbSxyDtACqt6hOVFKX3IA59ApdNRT +2x3iCmlvF9MJsGgFq6IpqL+Fk7iWV8Kjbz0wQOId6N9+JdQh3LrLaS7a1PowUm1z9DK5/O0 Yg+gpDnEOOFI7WM5u7a7FSM2Z/LXGVwel/0eWvLk9tN6 Message-ID: <70a1b488-c49e-6a94-a9a9-37eeb2ff4399@gmail.com> Date: Sun, 13 Jun 2021 23:50:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.8 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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: a3dee28b-126e-4680-8a4e-9db043ad463a X-Archives-Hash: b17f29c8749d8484031f5b5e303209f6 Howdy, As some may recall, I use external drives as backups.  They are encrypted and I use cryptsetup to open and close them.  Open works fine but close gives me trouble at times.  It doesn't always do this but it does it more often than not.  It's getting annoying.  Drive one.  It's a 6TB drive and when it gave this error a few minutes ago, I restarted udev-trigger to correct it.  When I try to close it, it says it is in use.  But restarting udev-trigger reset it so I could close it.  Drive two, when I tried to close it, it gives me this: root@fireball / # cryptsetup close 8tb Device 8tb is still in use. root@fireball / # mount | grep 8tb root@fireball / # As you can tell, it is not mounted.  When I mount, I do it manually from a fstab entry.  I just do mount /mnt/8tb and it mounts it.  I use umount to unmount it.  Old school but it works.  Thing is, for some reason it shows it is in use even tho it is not mounted.  Even restarting udev-trigger didn't work this time.  I can't figure out what is doing it exactly and think it is something besides cryptsetup having a problem.  I'm actually thinking udev for this reason.  I do my backups while I'm updating the OS.  When I do my updates, all my firefox profiles are closed and I'm not downloading new files.  So that is when I do my backups.  Last time it did this, I went to boot runlevel and restarted udev itself.  That reset it so I could close the drive and cut it off.  Thing is, I'd like a proper fix for this or a good sound way to reset it without having to do all that.  Sometimes all I need is to logout and back in after updates.  Restarting udev and such shouldn't be required. If it matters, both drives are in identical enclosures and use the same cable and power source.  One is a SMR and the other a CMR.  One is 6TB and one is 8TB.  Both are encrypted the same way.  Both use eSATA, not USB.  I used USB before and it may have been the enclosure but it ruined drives.  I could never depend on it so I switched to eSATA.  So, anyone else run into this and have a solution for it?  Do I have something set up wrong or is this a bug in some package somewhere?  I've googled and seen where others have the problem but their solutions don't seem to work and most are very old posts.  Need some ideas and thoughts here. Thanks. Dale :-)  :-)  P. S.  I took some meds so I hope the above makes sense.  The meds are working well right now but I need to close the drive so I can put it back in the safe.  :/