Skip to content

Issues When Switching Between Windows and Linux

If you have Windows and Linux installed on the same computer, you’ve probably encountered unpleasant issues when switching between operating systems.

When using a dual-boot configuration, users regularly face the following problems:

  • Network connection failures — Ethernet and Wi-Fi stop working after switching from Windows to Linux
  • Non-working Bluetooth — Bluetooth adapter is not detected or cannot connect to devices
  • Read-only file system — Drives used by both systems are mounted in read-only mode and don’t allow writing data

There is an elegant solution that automatically disables hibernation every time Windows shuts down. This ensures that on the next Linux boot, all devices will work correctly.

Create a text file named hibernate_off.bat and add the following command:

Terminal window
powercfg -h off
  1. Open Windows Explorer
  2. Copy the hibernate_off.bat file
  3. Navigate to: C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown
  4. Paste the file into this directory

Now you need to configure Windows so that the script runs automatically every time the system shuts down.

  1. Press Win + R
  2. In the “Run” dialog, type: gpedit.msc
  3. Click OK

Run dialog with gpedit.msc command

In the Local Group Policy Editor:

  1. Navigate to the following path in the left panel:

    Computer Configuration → Windows Settings → Scripts (Startup/Shutdown) → Shutdown
  2. Double-click on Shutdown

  3. In the window that opens, click Add

  4. Click the Browse button

  5. Find and select the hibernate_off.bat file that you placed in the Shutdown folder

  6. Click OK to confirm

  7. Click Apply and then OK to save changes

After completing all steps:

  • Network connections work stably
  • Bluetooth devices connect without problems
  • File systems mount with write permissions
  • No need to manually disable hibernation every time