public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-user] Re: cryptsetup close and device in use when it is not
  @ 2021-06-15 17:48 99%     ` Remy Blank
  0 siblings, 0 replies; 1+ results
From: Remy Blank @ 2021-06-15 17:48 UTC (permalink / raw
  To: gentoo-user

Dale wrote on 15/06/2021 16:21:
> Ramon Fischer wrote:
>> Hello Dale,
>>
>> this also happens to me sometimes and the culprit was an open process
>> still accessing the hard drive. Maybe you can solve it like this:
>>
>>    $ lsof /mnt/8tb
>>    zsh       8390 root  cwd    DIR  253,2      4096 27787265 /mnt/8tb
>>    $ kill 8390
>>    $ lsof /mnt/8tb
>>
>> After that, you should be able to close the drive via "cryptsetup".
>>
>> -Ramon
>>
> 
> I've tried lsof before, for both mount point and device, it shows
> nothing open.  It's weird. 

When this happens here, it's because I accessed the drive over NFS. The NFS server sometimes
keeps mount points active, and they don't show up in the output of lsof probably because the NFS
server is in-kernel, so there are no processes associated with it. Restarting the NFS server
allows unmounting.

-- Remy



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
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 17:48 99%     ` [gentoo-user] " Remy Blank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox