- If necessary, defrag first in Windows to create free space for shrinking its partition.
- Choose Start→Control Panel→System and Security. The Administrative Tools window appears.
- Click Defragment Your Hard Drive. The Disk Defragmenter dialog box appears.
- Click the Analyze Disk button. …
- When the analysis is complete, click the Defragment Disk button. …
- Click Close.
- Resize an existing partition, preferably at the end of the drive, to create room for the linux partition(s) you wish to create. You can use gparted for this, but many folks suggest using window’s own tools on NTFS partitions.
- Install linux, making sure to use the same boot mode (UEFI vs. Legacy) as your window’s installation. allow the linux installation to install the grub bootloader. windows should be picked up as well.
- If windows does not show up in the grub window on first boot, run “update-grub” as a root user on the linux installation and windows should show up.
Tips and tricks
–Windows may also have some immovable files right in the middle, but there are ways to remove those temporarily so you can shrink the partition some more if necessary.
–Older disk partitioning also only allowed four primary partitions per disk. The usual workaround for this if you only had one left for Linux was to create that last one as an extended partion with GParted, then create logical partitions within that extended one for the Linux root, home, and swap partitions.