Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmounting dislocker-file does not release the device file #296

Open
VishishtK opened this issue Dec 26, 2022 · 0 comments
Open

Unmounting dislocker-file does not release the device file #296

VishishtK opened this issue Dec 26, 2022 · 0 comments

Comments

@VishishtK
Copy link

I have an NTFS drive which is mounted on a VM by Libvirt

The first time I attach the drive, it attaches as /dev/vdc
and is mounted by

dislocker /dev/vdc -u password -- decryptPath
mount -t ntfs-3g decryptPath /drives/drive2

It works fine till here but, when I unmount I do

syscall.Unmount(/drives/drive2, 0)
syscall.Unmount(decryptPath +"/dislocker-file", 0)

And it unmounts the dislocker drive
also
ls /dev/vd*
shows that vdc does not exist anymore

After the above steps when I try to attach any other drives
they skip the vdc and go to vdd instead, as if vdc is still occupied by the dislocker drive

Only happens with the dislocker NTFS drive
EXT4 drives work fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant