Windows: Difference between revisions

From David's Wiki
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Bash==
==Bash==
Download [https://gitforwindows.org Git for Windows] to get a copy of Git Bash.<br>
 
Alternatively you can download [https://www.msys2.org/ MSYS2] or Cygwin.
* [https://gitforwindows.org Git for Windows] - this is a modified version of MSYS2
* [https://www.msys2.org/ MSYS2]
* [[Cygwin]]
* [[Windows Subsystem for Linux]] - WSL2 is a full linux VM


==Blue Screen==
==Blue Screen==
How to troubleshoot BSOD (Blue Screen of Death).<br>
How to troubleshoot BSOD (Blue Screen of Death).<br>
* When windows encounters a BSOD, it will create a minidump (.dmp) file in
* When windows encounters a BSOD, it will create a minidump (.dmp) file in <code>C:\Windows\Minidump</code>.<br>
<code>C:\Windows\Minidump</code>.<br>
* Copy out this dump file to somewhere like your desktop.<br>
* Copy out this dump file to somewhere like your desktop.<br>
* There are various software to open the minidump files such as [https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86 WinDbg Preview] and [https://www.nirsoft.net/utils/blue_screen_view.html BlueScreenView],
* There are various software to open the minidump files such as [https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86 WinDbg Preview] and [https://www.nirsoft.net/utils/blue_screen_view.html BlueScreenView],
* Typically, blue screens are caused by driver crashes in my experience. Windbg preview will point out the driver which crashed from the minidump.


===WinDbg Preview===
===WinDbg Preview===
Line 21: Line 24:
<code>%SystemRoot%\System32\drivers\etc\hosts</code>
<code>%SystemRoot%\System32\drivers\etc\hosts</code>


==Changing IDE/RAID to AHCI==
==Changing IDE/RAID/VMD to AHCI==
[http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/ Reference]<br>
[http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/ Reference]<br>
You should be using ACHI instead of IDE or RAID.<br>
If you are not using Intel RAID, you should be using ACHI instead of IDE or RAID.<br>
* Run <code>bcdedit /set {current} safeboot minimal</code> in a cmd prompt with admin
* Run <code>bcdedit /set {current} safeboot minimal</code> in a cmd prompt with admin
* Change to ACHI in UEFI
* Change to ACHI in UEFI. On newer boards, it may be known as Intel VMD.
* Run <code>bcdedit /deletevalue {current} safeboot</code>
* Run <code>bcdedit /deletevalue {current} safeboot</code>


; Reasons not to use Intel Raid
==Application Management==
* It is a fake raid managed by the Intel driver.
===Winget===
* It will not be recognized in Linux. It is better to use software RAID on both Windows and Linux.
[https://learn.microsoft.com/en-us/windows/package-manager/winget/ Docs]
** See the [https://wiki.archlinux.org/index.php/RAID Archwiki RAID] page
Winget is included in [https://www.microsoft.com/p/app-installer/9nblggh4nns1#activetab=pivot:overviewtab App Installer]
* You typically run into problems when changing motherboards, and sometimes even just after updating the bios.
* On consumer Intel boards (Z370, Z390), your M.2 slots are wired to your chipset which only has a PCIe x4 connction to your CPU.
** This means you won't receive a significant performance boost if you use RAID 0 on 2 higher-end NVMe SSDs.


==Application Management==
===Chocolatey===  
===Chocolatey===  
[https://chocolatey.org/ Chocolatey] is an open source package manager for windows.<br>
[https://chocolatey.org/ Chocolatey] is an open source package manager for windows.<br>
It is particularly useful for managing CLI applications such as ffmpeg and youtube-dl.


Install Chocolatey by following the directions on [https://chocolatey.org/install https://chocolatey.org/install].
Install Chocolatey by following the directions on [https://chocolatey.org/install https://chocolatey.org/install].
Line 53: Line 51:
choco list --localonly
choco list --localonly
</pre>
</pre>
==Event Viewer==
===See Reason for last Restart===
* Go under <code>Windows Logs</code>-<code>System</code>.
* Filter with Event sources: User32
==Windows Update==
===Prevent Auto-restarts===
https://superuser.com/questions/1843873/windows-11-seems-to-have-disabled-all-ways-to-get-around-auto-update-restarts-i

Latest revision as of 07:57, 30 November 2024


Bash

Blue Screen

How to troubleshoot BSOD (Blue Screen of Death).

  • When windows encounters a BSOD, it will create a minidump (.dmp) file in C:\Windows\Minidump.
  • Copy out this dump file to somewhere like your desktop.
  • There are various software to open the minidump files such as WinDbg Preview and BlueScreenView,
  • Typically, blue screens are caused by driver crashes in my experience. Windbg preview will point out the driver which crashed from the minidump.

WinDbg Preview

How to use WinDbg preview

  • Open your minidump
  • Type !analyze -v

Hosts file

Wikipedia: hosts (file)
%SystemRoot%\System32\drivers\etc\hosts

Changing IDE/RAID/VMD to AHCI

Reference
If you are not using Intel RAID, you should be using ACHI instead of IDE or RAID.

  • Run bcdedit /set {current} safeboot minimal in a cmd prompt with admin
  • Change to ACHI in UEFI. On newer boards, it may be known as Intel VMD.
  • Run bcdedit /deletevalue {current} safeboot

Application Management

Winget

Docs Winget is included in App Installer

Chocolatey

Chocolatey is an open source package manager for windows.

Install Chocolatey by following the directions on https://chocolatey.org/install.

# Installs ffmpeg
choco install ffmpeg

# Upgrade all
choco upgrade all

# See installed packages
choco list --localonly

Event Viewer

See Reason for last Restart

  • Go under Windows Logs-System.
  • Filter with Event sources: User32

Windows Update

Prevent Auto-restarts

https://superuser.com/questions/1843873/windows-11-seems-to-have-disabled-all-ways-to-get-around-auto-update-restarts-i