winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Tweak: Disable fast boot for dual boot systems

Open joser93 opened this issue 3 years ago • 1 comments

Hello.

On systems using dual boot and linux, Windows locks the drives (even if it's a secondary drive with data only) and sometimes it's an problem to deal with this. The current solution it's to disable fast boot following this steps: https://askubuntu.com/questions/917695/read-only-partition-dual-boot-win10

The tool can implement something like this: https://superuser.com/questions/1277170/disable-windows-10-fast-boot-via-cmd-powershell to disable fast startup instead of going manually to the GUI.

Also i must say that disabling ths option, doesn't avoid it when you want to restart, because, to avoid this situation, you must hold ctrl and click the restart button, maybe isn't a simple solution for this, idk, but i leave it here just in case someone can find a solution for this or have it documented here as a known issue if someone will consider have a dual boot setup.

Thanks for this awesome tool. :D

joser93 avatar Oct 18 '22 21:10 joser93

Love this idea, I don't dual boot anymore, but just having safe mode on startup is huge for troubleshooting.

ChrisTitusTech avatar Oct 19 '22 04:10 ChrisTitusTech

I already use the following to bring back the legacy F8 startup menu which has the safe mode and others like last known good configurations:


  "WPFFeatureEnableLegacyRecovery": {
    "feature": [
    ],
    "InvokeScript": [
      "
      If (!(Test-Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'')) {
            New-Item -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'' -Force | Out-Null
      }
      New-ItemProperty -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'' -Name ''Enabled'' -Type DWord -Value 1 -Force
      Start-Process -FilePath cmd.exe -ArgumentList ''/c bcdedit /Set {Current} BootMenuPolicy Legacy'' -Wait
      "
    ]
  },
  "WPFFeatureDisableLegacyRecovery": {
    "feature": [
    ],
    "InvokeScript": [
      "
      If (!(Test-Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'')) {
            New-Item -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'' -Force | Out-Null
      }
      New-ItemProperty -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood'' -Name ''Enabled'' -Type DWord -Value 0 -Force
      Start-Process -FilePath cmd.exe -ArgumentList ''/c bcdedit /Set {Current} BootMenuPolicy Standard'' -Wait
      "
    ]
  }

smartekIT avatar Jan 13 '24 10:01 smartekIT

also the following which enables system registry backup and also set schedule for it (disabled by default in Win10 , Win11):


  "WPFFeatureRegBackup": {
    "feature": [
    ],
    "InvokeScript": [
      "
      New-ItemProperty -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager'' -Name ''EnablePeriodicBackup'' -Type DWord -Value 1 -Force
      New-ItemProperty -Path ''HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager'' -Name ''BackupCount'' -Type DWord -Value 2 -Force
      $action = New-ScheduledTaskAction -Execute ''schtasks'' -Argument ''/run /i /tn \"\\Microsoft\\Windows\\Registry\\RegIdleBackup\"''
      $trigger = New-ScheduledTaskTrigger -Daily -At 00:30
      Register-ScheduledTask -Action $action -Trigger $trigger -TaskName ''AutoRegBackup'' -Description ''Create System Registry Backups'' -User ''System''
      "
    ]
  }

smartekIT avatar Jan 13 '24 10:01 smartekIT

just did a PR for this #1389

smartekIT avatar Jan 13 '24 11:01 smartekIT

Closed due to inactivity

github-actions[bot] avatar Feb 20 '24 03:02 github-actions[bot]