Error while running chkdsk c: /f command #21018

Closed
opened 2026-01-31 07:30:48 +00:00 by claunia · 3 comments
Owner

Originally created by @ghost on GitHub (Dec 25, 2023).

Windows Terminal version

1.18.3181.0

Windows build number

Win 10 22H2 19045.3693

Other Software

No response

Steps to reproduce

Open Terminal, type chkdsk c: /f command and press enter


I honestly don't know if it was a bug or not, I just wanted to report it here.

Expected Behavior

It should show the following warning as the Windows Command Prompt says.

Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)

Actual Behavior

Terminal shows the following warning saying access is denied.

Access Denied as you do not have sufficient privileges or the disk may be locked by another process.
You have to invoke this utility running in elevated mode and make sure the disk is unlocked.

terminal-wcp

Originally created by @ghost on GitHub (Dec 25, 2023). ### Windows Terminal version 1.18.3181.0 ### Windows build number Win 10 22H2 19045.3693 ### Other Software _No response_ ### Steps to reproduce Open Terminal, type `chkdsk c: /f` command and press enter --- I honestly don't know if it was a bug or not, I just wanted to report it here. ### Expected Behavior It should show the following warning as the `Windows Command Prompt` says. `Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)` ### Actual Behavior Terminal shows the following warning saying access is denied. ``` Access Denied as you do not have sufficient privileges or the disk may be locked by another process. You have to invoke this utility running in elevated mode and make sure the disk is unlocked. ``` ![terminal-wcp](https://github.com/microsoft/terminal/assets/153795294/d2369c96-b598-4ddc-b1ba-1392f57aee95)
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:30:48 +00:00
Author
Owner

@o-sdn-o commented on GitHub (Dec 25, 2023):

Have you tried running Windows Terminal as Administrator?

You have Command Prompt running as Administrator, and the terminal as a regular user.

@o-sdn-o commented on GitHub (Dec 25, 2023): Have you tried running Windows Terminal as Administrator? You have Command Prompt running as Administrator, and the terminal as a regular user.
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2024):

Yea, despite your screenshot labeling the Terminal window as "Administrator", it doesn't have any of the hallmark signs of actually being launched as admin - the titlebar doesn't have a shield, the tab title is missing "Administrator", and CMD started in your user profile directory, instead of system32.

Does this work if you actually launch the Terminal as admin? Or moreover, how did you attempt to launch the Terminal as admin/?

@zadjii-msft commented on GitHub (Jan 3, 2024): Yea, despite your screenshot labeling the Terminal window as "Administrator", it doesn't have any of the hallmark signs of actually being launched as admin - the titlebar doesn't have a shield, the tab title is missing "Administrator", and CMD started in your user profile directory, instead of system32. Does this work if you actually launch the Terminal as admin? Or moreover, how did you attempt to launch the Terminal as admin/?
Author
Owner

@ghost commented on GitHub (Jan 6, 2024):

Or moreover, how did you attempt to launch the Terminal as admin/?

I enabled the "Run this profile as Administrator" setting. Because if I click on "Command Prompt (Admin)" in the Start menu, the old Command Prompt interface opens.

I could not find another option to start the Terminal as administrator.

prfl1

@ghost commented on GitHub (Jan 6, 2024): > Or moreover, how did you attempt to launch the Terminal as admin/? I enabled the "Run this profile as Administrator" setting. Because if I click on "Command Prompt (Admin)" in the Start menu, the old Command Prompt interface opens. I could not find another option to start the Terminal as administrator. ![prfl1](https://github.com/microsoft/terminal/assets/153795294/f757bf9c-7b5a-471a-bfaa-fd5e9548eb54)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21018