Skip to content

Instantly share code, notes, and snippets.

@benlk
Created August 28, 2012 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benlk/3494788 to your computer and use it in GitHub Desktop.
Save benlk/3494788 to your computer and use it in GitHub Desktop.
Linux Dualboot installation instructions with existing Windows partition
  1. Boot into Windows.

  2. Using Windows' partition tool Disk Management, resize the Windows partition to create a blank area as large as you desire.

  3. Insert your Linux install media.

  4. Reboot into your Linux install media.

  5. Do the Linux partitioning from your Linux install media.

    • If you want, or think you will ever want, n>4 partitions, make the rightmost partition a LVM, then create other partitions inside that.

    • If you want Windows to access a partition, leave that partition outside the LVM and format it with something Windows-compatible like NTFS.

    • If you make a swap partition, it's perfectly fine to leave it within the LVM

  6. Install Linux.

    • It's okay to install Linux to a partition inside the LVM.
  7. Test that you can boot into Windows.

    • If you can't, boot into your installed Linux and run update-grub as root, then goto(7)
  8. Test that you can still boot into Linux

    • Windows might over-write GRUB with its own boot tools, for some reason.

    • In the event that GRUB is borked:

      1. Boot into the Linux install media

      2. Mount your installed Linux partition

      3. Chroot into the installed Linux partition

      4. Run update-grub

      5. n = n + 1

      6. If n < 4, then exit the chroot, reboot, goto(7); else go googling.

  9. Success!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment