Skip to main content

Troubleshooting

Common issues and solutions for Linux users working with Windows systems, including diagnostic tools and recovery procedures.

Common Linux-to-Windows Gotchas

File System Issues

ProblemSymptomsLinux ExpectationWindows RealitySolution
Case sensitivityFile not found errorsfile.txtFile.txtSame fileUse consistent casing
Path separatorsScript failuresForward slash /Backslash \Use os.path.join() or similar
Long pathsPath too long errorsNo practical limit260 char limitEnable long path support
File lockingCannot delete/modifyImmediate accessFiles may be lockedClose applications, use handle tools
Hidden filesMissing dot files.bashrc visibleHidden by defaultShow hidden files or use attrib
Line endingsGit issuesLF (\n)CRLF (\r\n)Configure Git autocrlf

Permission Problems

IssueLinux ApproachWindows ApproachSolution
No sudosudo commandRight-click → Run as AdministratorUse admin shell or UAC
Execute permissionschmod +x fileFile extension or propertiesRename to .exe or change properties
Ownershipchown user:group fileSecurity tab in propertiesUse takeown or security properties
Group permissionschgrp group fileSecurity tab permissionsAdd groups in security properties

Network Configuration

ProblemLinux SolutionWindows EquivalentNotes
IP configurationifconfigipconfigDifferent syntax
DNS resolutiondignslookupDifferent output format
Network restartsystemctl restart networkingDisable/enable adapterNo single command
Firewalliptables, ufwWindows Defender FirewallGUI-based configuration

Diagnostic Tools

System Information Tools

PurposeWindows ToolLinux EquivalentHow to Access
System overviewmsinfo32neofetch, lshwRun dialog → msinfo32
Hardware infoDevice Managerlshw, lspciRight-click Computer → Manage
Process infoTask Managerhtop, psCtrl+Shift+Esc
Event logsEvent Viewerjournalctl, /var/log/Run dialog → eventvwr
PerformancePerformance Monitorvmstat, iostatRun dialog → perfmon
Network configipconfig /allip addr showCommand prompt

Event Viewer Navigation

Windows + R → eventvwr.msc

Key Log Categories:

  • Windows Logs → System: Hardware and driver issues
  • Windows Logs → Application: Application crashes and errors
  • Windows Logs → Security: Security events and logons
  • Applications and Services Logs: Specific application logs

Common Event IDs for Linux Users:

Event IDSourceMeaningLinux Equivalent
1074SystemSystem shutdown/var/log/syslog shutdown entries
6005/6006EventLogService start/stopsystemctl status
4624/4625SecurityLogin success/failure/var/log/auth.log
7034Service Control ManagerService crashedService failure logs

PowerShell Diagnostic Commands

TaskPowerShell CommandLinux Equivalent
System infoGet-ComputerInfouname -a, hostnamectl
HardwareGet-WmiObject Win32_ComputerSystemlshw
Disk spaceGet-WmiObject Win32_LogicalDiskdf -h
Running processesGet-Processps aux
Network configGet-NetIPConfigurationip addr
Service statusGet-Servicesystemctl status
Event logsGet-EventLog Systemjournalctl

Common Error Messages

Application Errors

ErrorCauseLinux EquivalentSolution
"Application failed to start correctly (0xc000007b)"Missing/wrong architecture DLLsLibrary dependency issuesInstall Visual C++ Redistributables
"MSVCP140.dll was not found"Missing Visual C++ runtimeMissing shared librariesInstall Visual C++ 2015-2019 Redistributable
"Access is denied"Insufficient permissionsPermission deniedRun as administrator or check permissions
"The system cannot find the file specified"Missing file or wrong pathNo such file or directoryCheck path and file existence

Network Errors

ErrorMeaningLinux EquivalentTroubleshooting
"Network path not found"Cannot reach network resourceConnection refusedCheck network connectivity, firewall
"DNS name does not exist"DNS resolution failureName resolution failureCheck DNS settings, try IP address
"Connection timed out"Network timeoutConnection timed outCheck firewall, network connectivity
"Access denied"Authentication failurePermission deniedCheck credentials, shares permissions

Windows-Specific Errors

Error CodeMeaningTroubleshooting Steps
0x80070005Access deniedCheck permissions, run as administrator
0x80004005Unspecified errorCheck Event Viewer for details
0x80070002File not foundVerify file path, check for typos
0x8007000EOut of memoryClose applications, restart system

Performance Troubleshooting

Task Manager Deep Dive

Ctrl + Shift + Esc

Tabs Explained for Linux Users:

TabPurposeLinux Equivalent
ProcessesRunning applicationshtop, ps aux
PerformanceSystem resourcesvmstat, iostat
App historyResource usage over timeLong-term monitoring tools
StartupBoot programs/etc/init.d/, systemd services
UsersPer-user processesps -u username
DetailsAll processes with detailsps auxf
ServicesSystem servicessystemctl list-units

Performance Monitor (perfmon)

Windows + R → perfmon

Useful Counters for Linux Users:

CounterPurposeLinux Equivalent
Processor → % Processor TimeCPU usagetop, CPU%
Memory → Available MBytesFree memoryfree -m
PhysicalDisk → % Disk TimeDisk usageiostat
Network Interface → Bytes/secNetwork throughputiftop, nethogs

Resource Monitor (resmon)

Windows + R → resmon

Tabs and Linux Equivalents:

  • CPU: Like htop with detailed process info
  • Memory: Like free with process breakdown
  • Disk: Like iotop showing disk activity
  • Network: Like netstat and ss combined

Network Troubleshooting

Network Commands Comparison

TaskWindows CommandLinux CommandNotes
Check connectivityping hostnameping hostnameSame syntax
Trace routetracert hostnametraceroute hostnameDifferent command name
DNS lookupnslookup hostnamedig hostnameDifferent output format
Network configipconfig /allip addr showDifferent syntax
ARP tablearp -aarp -aSame syntax
Routing tableroute printip route showDifferent syntax
Network connectionsnetstat -anss -tulpnSimilar functionality

Network Troubleshooting Steps

  1. Basic connectivity: ping 8.8.8.8
  2. DNS resolution: nslookup google.com
  3. Local network: ping gateway_ip
  4. Port connectivity: telnet hostname port
  5. Firewall check: Windows Defender Firewall settings

Firewall Troubleshooting

# Check firewall status
Get-NetFirewallProfile

# List firewall rules
Get-NetFirewallRule | Where-Object {$_.Enabled -eq "True"}

# Test port connectivity
Test-NetConnection -ComputerName hostname -Port 80

WSL Troubleshooting

Common WSL Issues

ProblemSymptomsSolution
WSL won't start"WSL is not installed"Enable Windows features, restart
Poor performanceSlow file operationsKeep files in WSL filesystem
Network issuesCannot access servicesCheck Windows firewall
File permissionsPermission denied errorsUse WSL filesystem for development
Memory issuesOut of memoryConfigure WSL memory limits

WSL Diagnostic Commands

# Check WSL status
wsl --status

# List installed distributions
wsl --list --verbose

# Check WSL version
wsl --version

# Update WSL
wsl --update

# Restart WSL
wsl --shutdown

WSL Performance Issues

# .wslconfig in %USERPROFILE%
[wsl2]
memory=4GB # Limit memory usage
processors=2 # Limit CPU cores
swap=1GB # Set swap size
localhostForwarding=true

System Recovery

Safe Mode

Access Safe Mode:

  1. Hold Shift while clicking Restart
  2. Troubleshoot → Advanced options → Startup Settings
  3. Restart and press F4 for Safe Mode

Linux Equivalent: Single-user mode or recovery mode

System File Checker

# Check system files (run as administrator)
sfc /scannow

# Check and repair
DISM /Online /Cleanup-Image /RestoreHealth

Linux Equivalent: debsums (Debian) or package verification

System Restore

Control Panel → Recovery → Open System Restore

Linux Equivalent: Timeshift, LVM snapshots, or Btrfs snapshots

Reset Windows

Settings → Update & Security → Recovery → Reset this PC

Options:

  • Keep my files: Reinstall Windows, keep personal files
  • Remove everything: Complete wipe and reinstall

Boot Troubleshooting

Boot Problems

ProblemSymptomsSolution
Boot loopEndless restartSafe mode, system restore
Blue screenBSOD on startupCheck hardware, drivers
Slow bootLong startup timeCheck startup programs
No boot device"Boot device not found"Check BIOS/UEFI settings

Boot Configuration

# List boot entries
bcdedit /enum

# Repair boot configuration
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

Dual-Boot Issues

ProblemCauseSolution
Missing Linux entryWindows update overwrote GRUBRestore GRUB from Linux live USB
Time sync issuesDifferent time standardsSet Windows to use UTC
Shared partition problemsFile system corruptionCheck file system integrity

Hardware Troubleshooting

Device Manager

Windows + X → Device Manager

Common Issues:

  • Yellow triangle: Driver issue or hardware problem
  • Red X: Disabled device
  • Unknown device: Missing driver

Hardware Diagnostic Tools

ToolPurposeLinux Equivalent
Device ManagerHardware statuslspci, lsusb
Disk ManagementDisk partitionsfdisk, parted
Memory DiagnosticRAM testingmemtest86
Check DiskFile system checkfsck

Memory Diagnostic

Windows + R → mdsched

Options:

  • Restart now and check for problems
  • Check for problems the next time I start my computer

Registry Troubleshooting

Registry Backup

# Export registry key
reg export "HKEY_LOCAL_MACHINE\SOFTWARE\MyApp" backup.reg

# Import registry key
reg import backup.reg

Common Registry Issues

ProblemLocationSolution
Startup programsHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunRemove unwanted entries
File associationsHKCRReset file associations
System settingsHKLM\SYSTEMUse System Restore

Warning: Always backup registry before making changes.

Antivirus and Security

Windows Defender Issues

# Check Windows Defender status
Get-MpComputerStatus

# Update definitions
Update-MpSignature

# Run scan
Start-MpScan -ScanType QuickScan

Exclusions for Development

Common directories to exclude from antivirus:

  • WSL filesystem: %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu*
  • Development folders: C:\dev\, C:\projects\
  • Node modules: *\node_modules\*
  • Build outputs: *\target\*, *\build\*

Emergency Recovery

Windows Recovery Environment (WinRE)

Access WinRE:

  1. Boot from Windows installation media
  2. Choose "Repair your computer"
  3. Troubleshoot → Advanced options

Recovery Options:

  • System Restore: Revert to previous state
  • System Image Recovery: Restore from backup
  • Startup Repair: Fix boot problems
  • Command Prompt: Manual troubleshooting

Creating Recovery Media

# Create recovery drive
# Settings → Update & Security → Recovery → Create a recovery drive

Data Recovery

ToolPurposeLinux Equivalent
File HistoryFile backup/restorersnapshot
Previous VersionsShadow copy restoreLVM snapshots
RecuvaDeleted file recoverytestdisk, photorec

Getting Help

Built-in Help Systems

ToolAccessPurpose
Get-HelpPowerShellCommand help
Windows HelpF1 in applicationsApplication help
TroubleshootersSettings → Update & SecurityAutomated fixes

Online Resources

  • Microsoft Docs: Official documentation
  • TechNet: Technical articles and forums
  • Stack Overflow: Programming and technical questions
  • Reddit r/Windows10: Community support

Remote Assistance

Windows + R → msra

Options:

  • Invite someone to help you
  • Help someone who has invited you

Professional Tools

ToolPurposeCost
Process MonitorFile/registry monitoringFree
Process ExplorerAdvanced process infoFree
AutorunsStartup program managementFree
BlueScreenViewBSOD analysisFree
CrystalDiskInfoHard drive healthFree