7zFM has problems with \\.\PhysicalDriverX on lastest W11

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp

Research direction

Start by tracing how 7-Zip opens physical drives for listing, then compare its access and sharing options with the Windows 11 error reported for \.\PhysicalDrive0. Reproduce with the listed 7z l commands, including -ssw, on a system where the drive contains the running Windows installation. Done means 7-Zip can open and browse the disk, or the cause and supported behavior are established.

Written by the indexing model from the issue text.

Description

Cannot open \.\PhysicalDrive0 on recent Windows 11 — sharing violation

On Windows 11, 7-Zip 26.04 can no longer open a physical disk that contains the running Windows installation.

Running 7-Zip as Administrator:

7z l "\.\PhysicalDrive0"

returns:

ERROR: The process cannot access the file because it is being used by another process.
\.\PhysicalDrive0

System ERROR:
The process cannot access the file because it is being used by another process.

7z l -ssw "\.\PhysicalDrive0" gives the same error.

Get-CimInstance Win32_DiskDrive correctly lists \.\PHYSICALDRIVE0, so the device itself is present and accessible to Windows.

In older Windows 11 / Windows 10 versions I could open the physical disk in 7-Zip and browse its GPT partitions, including an ext4 partition. In the current system, entering \.\PhysicalDrive0 in 7zFM just returns to \..

The disk contains the currently running Windows installation, so it is naturally in use.

Is this caused by a recent Windows change, or does 7-Zip need to open the physical disk with a different sharing/access mode?

Dominant language
C++
Stars
4.6k
Forks
519
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ip7z/7zip

All issues in ip7z/7zip

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.