Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Desktop computer freezes when trying to shut down  (Read 6782 times)

0 Members and 1 Guest are viewing this topic.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Desktop computer freezes when trying to shut down
« Reply #15 on: November 14, 2017, 04:40:37 PM »
@patio

the /x switch forces a dismount of the drive if locked, I've just always used it now, out of habit, due to all the "that disk is locked, do you want to force a dismount?" questions Windows used to say.

Fair enuff...however it risks data loss as per MStech bulletins...i prefer to let it run on reboot...

Just sayin...
" Anyone who goes to a psychiatrist should have his head examined. "

Mark.



    Adviser
  • Forum Regular
  • Thanked: 67
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Desktop computer freezes when trying to shut down
« Reply #16 on: November 14, 2017, 07:22:22 PM »
no, you're right, there is that risk, but not only do I make sure I have no programs running so none of my data would be effected, for me, by the time you get to the chkdsk stage, you've already received some errors, tried other stuff, jumped through hoops and now it's chkdsk turn to try and find why my PC is behaving badly, and at this stage, screw it, just dismount the *censored* drive and scan it will you!!!   :)

if you get my drift...

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Desktop computer freezes when trying to shut down
« Reply #17 on: November 14, 2017, 08:52:47 PM »
But recommending it assumes Users know as much as you do...again...just sayin.

" Anyone who goes to a psychiatrist should have his head examined. "

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Desktop computer freezes when trying to shut down
« Reply #18 on: November 14, 2017, 09:13:25 PM »
/X on the system drive merely skips the dismount prompt. It doesn't change the end result because the system drive cannot be dismounted anyway; the risk of data loss would apply to drives that *can* be dismounted- say secondary or tertiary drives, if those drives are currently in use.

With the system drive, attempting to dismount will always fail. So /X effectively just skips the first prompt:

Code: [Select]
C:\WINDOWS\system32>chkdsk /R
The type of the file system is NTFS.
Cannot lock current drive.

Chkdsk cannot run because the volume is in use by another
process.  Chkdsk may run if this volume is dismounted first.
ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
Would you like to force a dismount on this volume? (Y/N) Y

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)

Versus using the /X switch:
Code: [Select]
C:\WINDOWS\system32>chkdsk /R /X
The type of the file system is NTFS.
Cannot lock current drive.

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)
I was trying to dereference Null Pointers before it was cool.

earlk

    Topic Starter


    Rookie

    • Computer: Specs
    • Experience: Familiar
    • OS: Other
    Re: Desktop computer freezes when trying to shut down
    « Reply #19 on: November 15, 2017, 03:12:13 PM »
    Mark..... an update to my issue of my desktop computer freezing on shutdown.

    Today, I downloaded another MS update. This must have corrected the previous update as now the 'puter shuts down without freezing. I've tried it twice.   :D

    Just thought I'd let you know.   ;D

    Mark.



      Adviser
    • Forum Regular
    • Thanked: 67
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Desktop computer freezes when trying to shut down
    « Reply #20 on: November 15, 2017, 04:32:06 PM »
    thanks for the update, I guess now it's a wait-and-see game to know for sure...