maharmstone / ntfs2btrfs

GNU General Public License v2.0
678 stars 29 forks source link

Unable to convert volume: FSCTL_LOCK_VOLUME failed (error 5, access denied) #60

Closed fnfontana closed 1 year ago

fnfontana commented 1 year ago

Windows Specifications:

Windows 10 Pro
22H2
19045.2251
Windows Feature Experience Pack 120.2212.4180.0

Installation Details: I have tried ntfs2btrfs using scoop install ntfs2btrfs and scoop install ntfs2btrfs -g with Administrator privileges.

The Problem: When run the command ntfs2btrfs f:\ or ntfs2btrfs F:\ it throws the output:

Using Zstd compression.
Using CRC32C for checksums.
FSCTL_LOCK_VOLUME failed (error 5, access denied.).

Screen Capture: cmd_hh5ifd9DAx Note: The terminal is running with administrator privileges

Additional Information

maharmstone commented 1 year ago

I think this usually happens when something else is using the drive. You'll have to find out what else is using F:.

fnfontana commented 1 year ago

I think this usually happens when something else is using the drive. You'll have to find out what else is using F:.

Yes! I have figured it out about an hour ago and came here to update you.

After terminate a lot of background processes, I suspect that ABService.exe (Aomei Backupper) or another storage related software like VeraCrypt or Montainduck was causing the issue.

Thank you for reply!

maharmstone commented 1 year ago

Great! Possibly we need a better error message then, "access denied" isn't all that helpful.

TTimo commented 1 year ago

FWIW if you end up here after running into this problem like me, I used LockHunter on the drive to see which processes where locking, pressed the 'Unlock It!' button and then I could execute the conversion command successfully.