Gentoo Archives: gentoo-user

From: Ramon Fischer <Ramon_Fischer@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cryptsetup close and device in use when it is not
Date: Tue, 15 Jun 2021 13:48:24
Message-Id: AM6PR10MB2440483AC869898DB4EA10B4EF309@AM6PR10MB2440.EURPRD10.PROD.OUTLOOK.COM
In Reply to: [gentoo-user] cryptsetup close and device in use when it is not by Dale
1 Hello Dale,
2
3 this also happens to me sometimes and the culprit was an open process
4 still accessing the hard drive. Maybe you can solve it like this:
5
6 $ lsof /mnt/8tb
7 zsh       8390 root  cwd    DIR  253,2      4096 27787265 /mnt/8tb
8 $ kill 8390
9 $ lsof /mnt/8tb
10
11 After that, you should be able to close the drive via "cryptsetup".
12
13 -Ramon
14
15 On 14/06/2021 06:50, Dale wrote:
16 > root@fireball / # cryptsetup close 8tb
17 > Device 8tb is still in use.
18 > root@fireball / # mount | grep 8tb
19 > root@fireball / #
20
21 --
22 GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] cryptsetup close and device in use when it is not Dale <rdalek1967@×××××.com>