2026年8月10日 星期一

Install Linux on a Windows 11 laptop with Secure Boot disabled

 To install Linux on a Windows 11 laptop with Secure Boot disabled without corrupting your existing OS, follow these steps in order.

1. Prepare Windows 11

Before beginning, you must ensure Windows is in a state that allows another OS to share the hardware.

  • Backup Your Data: Always back up critical Windows files to an external drive or cloud storage before modifying partitions.
  • Disable Fast Startup: Windows 11's "Fast Startup" locks the hard drive, which can lead to data corruption when Linux tries to access it.
    • Open Control Panel > Hardware and Sound > Power Options > Choose what the power buttons do.
    • Click "Change settings that are currently unavailable" and uncheck Turn on fast startup.
  • Shrink the Windows Partition:
    • Right-click the Start button and select Disk Management.
    • Right-click your main (C:) drive and select Shrink Volume.
    • Enter the amount of space to shrink (at least 20-40 GB is recommended for Linux). This will leave "Unallocated Space" for your Linux installation. 

2. Create Bootable Linux Media 

  • Download the ISO for your chosen Linux distribution (e.g., Oracle Linux, Ubuntu, or Fedora).
  • Use a tool like Rufus to write the ISO to a USB drive (minimum 8GB).
  • Critical Setting: In Rufus, ensure Partition scheme is set to GPT and Target system is UEFI (non-CSM) to match Windows 11's boot mode. 

3. Configure UEFI/BIOS Settings 

  • Access BIOS: Restart your laptop and repeatedly press the BIOS key (usually F2, F12, Delete, or Esc depending on the manufacturer).
  • Verify Secure Boot: Confirm it is set to Disabled. On some laptops (like Acer), you may need to set a "Supervisor Password" in the Security tab before you can toggle this setting.
  • Disable Fast Boot: If your BIOS has a "Fast Boot" or "Quick Boot" option, disable it to ensure the USB drive is detected during startup. 

4. Install Linux

  • Boot from the USB drive by selecting it in the Boot Menu (often F12 or F10 during startup).
  • During installation, look for an option like "Install Alongside Windows Boot Manager".
    • Manual Method: If you choose "Something Else" (manual partitioning), select the Unallocated Space you created earlier. Create a Root (/) partition (ext4 format). The installer should automatically detect the existing EFI partition used by Windows and add the Linux bootloader (GRUB) there.
  • Bootloader: Ensure the bootloader is installed on the primary disk (e.g., /dev/nvme0n1 or /dev/sda), not a specific partition. This allows GRUB to show a menu where you can choose between Linux and Windows 11 at every startup. 

Troubleshooting

  • Windows Boots Directly: If the laptop boots straight to Windows after installation, you may need to go back into the BIOS and change the Boot Order to prioritize the "Linux" or "GRUB" entry over "Windows Boot Manager".
BitLocker: If Windows has BitLocker encryption enabled, you may be prompted for your BitLocker Recovery Key after changing BIOS settings. Ensure you have this key handy from your Microsoft Account before starting.