From: Ramon Fischer <Ramon_Fischer@hotmail.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not
Date: Tue, 6 Jul 2021 20:40:32 +0200 [thread overview]
Message-ID: <AM6PR10MB24406ED1F1B405DFD39C0AD1EF1B9@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <f48bc72e-dfea-fb10-28a9-89fee3195d29@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3407 bytes --]
This is just a guess. Maybe you have two devices with the same UUID?
If so, you can change it with:
$ cryptsetup --uuid="<some_uuid>" 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 still
>>> mounted, even tho I umounted already without error. So, I just ran the
>>> umount command again. After that, it closed just fine. So, it seems to
>>> be mounted twice, not once. I mount using this command 'mount /mnt/8tb'
>>> which uses fstab to mount the correct UUID device to that mount point.
>>> Surely it only mounts once. Always has in the past. So why is it being
>>> mounted twice now? None of my scripts used for backups includes any
>>> mounting commands. There's also only one entry in fstab as well.
>>>
>>> Anyone have any idea while it gets mounted twice? Does the cryptsetup
>>> open command mount it in some way and then I mount it manually as well??
>>> When I opened it just now, it didn't show anything as mounted. So it
>>> doesn't appear to be the open command. What else could it be??
>>>
>>> Ideas?
>>>
>>> Dale
>>>
>>> :-) :-)
>>>
>> The same drive just did it again. I had to reboot to get it to reset.
>> This is Linux not windoze. Rebooting to reset something like that is
>> plain ridiculous. I also checked, this time it was mounted only once.
>> When I tried to umount it again, it said it wasn't mounted. The thing
>> that really gets me, nothing can tell me what it is that is using the
>> device. 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. I dunno. I do know, if this doesn't
>> improve soon, I'm going to erase the drive and either find another
>> encryption tool or just not encrypt it at all. I'm not rebooting every
>> time this thing wants to act ugly. I'm used to rebooting like every 6
>> months or so. Usually when the power fails.
>>
>> If anyone has any ideas, please post. In the meantime, I'm going to try
>> this mounting by label idea.
>>
>> Dale
>>
>> :-) :-)
>>
>
> Here's a update. I'm doing my weekly updates which means I close web
> browsers, to conserve memory mostly. While I'm doing updates, I update
> my backups. As usual, the 6TB drive did fine. I ran the usual
> commands, got the proper response and everything worked fine. The 8TB
> drive did the same. It ran every command from decrypting it to
> unmounting and closing without a single problem. I even opened it,
> mounted it, unmounted it and closed it again. Still, no problems at all.
>
> The only thing I changed, I mounted by label instead of UUID. Can
> someone explain to me why that should matter? It's the same thing being
> mounted so one would think it wouldn't matter at all. Heck, most even
> say mounting by UUID is the best way. Dang near impossible to have two
> of anything with the same UUID. So why does it work fine with labels
> but not UUID?
>
> I'm looking forward to someone having a clue on this. I'm very
> confused, happy it works but confused for sure. This makes no sense.
>
> Dale
>
> :-) :-)
>
--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-07-06 18:40 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 4:50 [gentoo-user] cryptsetup close and device in use when it is not Dale
2021-06-15 13:48 ` Ramon Fischer
2021-06-15 14:21 ` Dale
2021-06-15 14:52 ` Jack
2021-06-15 15:26 ` Dale
2021-06-15 19:04 ` Ramon Fischer
2021-06-21 4:18 ` Dale
2021-06-21 4:49 ` Dale
2021-06-21 5:41 ` Dale
2021-06-21 5:59 ` Dale
2021-06-28 3:35 ` Dale
2021-07-05 3:19 ` Dale
2021-07-06 18:40 ` Ramon Fischer [this message]
2021-07-06 19:43 ` Dale
2021-07-07 14:48 ` Dr Rainer Woitok
2021-07-07 18:08 ` Dale
2021-07-08 8:20 ` Ramon Fischer
2021-07-12 8:31 ` Dale
2021-07-12 13:14 ` Ramon Fischer
2021-08-02 13:33 ` Dale
2021-08-09 13:38 ` Ramon Fischer
2021-09-19 11:55 ` Dale
2021-07-25 20:29 ` Frank Steinmetzger
2021-07-25 23:10 ` Dale
2021-07-26 21:00 ` Frank Steinmetzger
2021-07-26 22:48 ` Dale
2021-07-29 16:46 ` Wols Lists
2021-07-29 20:55 ` [gentoo-user] [OT] SMR drives (WAS: cryptsetup close and device in use when it is not) Frank Steinmetzger
2021-07-29 21:31 ` Frank Steinmetzger
2021-07-30 12:48 ` Frank Steinmetzger
2021-07-30 5:14 ` William Kenworthy
2021-07-30 14:29 ` Rich Freeman
2021-07-30 16:50 ` antlists
2021-07-30 18:38 ` Rich Freeman
2021-07-31 3:14 ` William Kenworthy
2021-07-31 3:50 ` Wols Lists
2021-07-31 4:58 ` William Kenworthy
2021-07-31 12:12 ` Rich Freeman
2021-08-01 0:41 ` Frank Steinmetzger
2021-08-01 0:56 ` Rich Freeman
2021-07-31 16:38 ` antlists
2021-08-01 0:50 ` Frank Steinmetzger
2021-08-01 3:36 ` William Kenworthy
2021-08-01 3:46 ` William Kenworthy
2021-08-01 21:38 ` Frank Steinmetzger
2021-08-02 5:38 ` William Kenworthy
2021-08-02 21:52 ` Frank Steinmetzger
2021-08-02 23:10 ` William Kenworthy
2021-08-03 8:18 ` Frank Steinmetzger
2021-08-05 20:40 ` Frank Steinmetzger
2021-08-06 7:22 ` William Kenworthy
2021-08-01 21:55 ` Frank Steinmetzger
2021-08-02 6:12 ` William Kenworthy
2021-08-02 22:03 ` Frank Steinmetzger
2021-08-02 23:35 ` William Kenworthy
2021-08-01 3:41 ` William Kenworthy
2021-08-01 21:41 ` Frank Steinmetzger
2021-07-31 12:21 ` Rich Freeman
2021-07-31 12:59 ` William Kenworthy
2021-07-31 13:30 ` Rich Freeman
2021-08-01 3:05 ` William Kenworthy
2021-08-01 11:37 ` Rich Freeman
2021-07-31 5:23 ` William Kenworthy
2021-06-15 17:48 ` [gentoo-user] Re: cryptsetup close and device in use when it is not Remy Blank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM6PR10MB24406ED1F1B405DFD39C0AD1EF1B9@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM \
--to=ramon_fischer@hotmail.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox