Ubuntu单磁盘分区下创建独立分区安装Windows 11的方案及USB启动问题求助
Hey Jesse, let's tackle your two core problems one by one—resizing your Ubuntu partition (since it's in use and can't be modified right now) and getting that Windows 11 USB to show up in your BIOS boot options. Here's a practical, step-by-step guide:
一、调整Ubuntu分区,腾出Windows安装空间
Since you're running Ubuntu directly from your main partition, GParted can't modify it while it's mounted. The fix is to use an Ubuntu Live USB to boot into a temporary environment where your main drive isn't in use:
- Grab a spare USB drive (8GB or larger) and create an Ubuntu Live USB. You can use the pre-installed
Startup Disk Creatorapp, or run this terminal command if you prefer:
Replacesudo dd if=/path/to/ubuntu.iso of=/dev/sdX bs=4M status=progress/path/to/ubuntu.isowith your Ubuntu ISO file path, and/dev/sdXwith your USB drive (double-check withlsblkto avoid overwriting the wrong disk!) - Boot your laptop from this Live USB—press the BIOS/UEFI key during startup (usually F2, F12, Del, or Esc; check your laptop's splash screen for hints).
- Once in the Live Ubuntu environment, open GParted from the apps menu. Now you can resize your main partition:
- Select your ext4 Ubuntu partition.
- Right-click it and choose "Resize/Move".
- Drag the right edge left to shrink the partition—leave at least 64GB (ideally 100GB+) of unallocated space for Windows 11.
- Click "Apply" to save changes. Leave the unallocated space as-is; Windows will format it to NTFS during installation.
二、解决Win11 USB无法在BIOS中启动的问题
If your BIOS isn't showing the Windows USB as a boot option, try these troubleshooting steps:
- Verify the USB is bootable: Test it on another computer first. If it doesn't boot there either, recreate the bootable USB using the official Windows 11 Media Creation Tool (follow the tool's steps carefully to make a proper UEFI-compatible drive).
- Check BIOS/UEFI settings:
- Restart and enter BIOS setup. Enable UEFI Mode (Legacy/CSM mode can block USB boot, and Windows 11 requires UEFI anyway).
- Ensure Secure Boot is turned on—Windows 11 mandates this for installation.
- Look for a "Boot Order" section; if the USB isn't listed, check the "Hardware Information" tab to confirm the BIOS detects the drive.
- Switch USB ports: Some older laptops only support USB 2.0 ports for booting. Try plugging the USB into a 2.0 port instead of 3.0.
- Use the one-time boot menu: Instead of entering BIOS setup, press the dedicated boot menu key (usually F12) during startup—this often lists all detected boot devices, including the USB, even if it's not in the main boot order.
三、安装Windows后的关键修复
After installing Windows to the unallocated space, your laptop will boot directly into Windows (it overwrites the bootloader). To get back the option to boot Ubuntu, repair the GRUB bootloader:
- Boot back into the Ubuntu Live USB.
- Open the terminal and install the Boot Repair tool:
sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt update sudo apt install boot-repair - Run
boot-repairin the terminal, click "Recommended Repair", and follow the on-screen prompts. Once done, restart your laptop—you'll see a GRUB menu where you can choose between Ubuntu and Windows 11.
Hope this gets your dual-boot setup working smoothly!
备注:内容来源于stack exchange,提问作者Jesse Liverless

