Linux – Partitioning for Windows 7 and Fedora 11 dual boot

fedoralinuxmulti-bootpartitioningwindows 7

I am new to Linux and would like to install Fedora 11 on a notebook with Windows 7 already installed. Currently the HDD has 2 primary partitions (System Reserved and C:), some free space and an extended partition (D: with user data).

When installing Fedora, I would like to use a recommended partitioning scheme (/boot, swap and LVM for other partitions). However, since only 4 primary partitions are allowed, how do I fit everything onto one HDD?

Best Answer

First, I strongly recommend that you read the Fedora 11 Install Guide

It's really going to depend on the existing layout of your system, but here's how I would do it:

  1. Go get a Live CD with GParted on it. I would suggest either the official GParted LiveCD or SystemRescueCD.

  2. Plan the partition layout (this is somewhat dependent on the amount of free space you have available). It's typically easier to have all of your Windows partitions at the beginning of the drive and then your Linux partitions after them, but you also want to have your /boot partition be a primary partition (not technically necessary, but you may confuse the installer if it's not). You may need to shrink or move some of your existing Windows partitions to free up enough space (This is typically safe, but the usual backup warnings apply). It is best if you end up with at least 10GB available for Fedora, although you can fit it into less. Here's the layout I would suggest:

    • System Reserved
    • Windows Root (C:)
    • /boot (~200 MB is plenty)
    • Extended Partition (Contains the rest of the partitions)
    • Windows Data (D:)
    • Free Space (to be filled by Fedora when you do your install)

    Alternatively, you may prefer to just slide all of the windows partitions to the beginning of the drive and see if Fedora will be happy to install to an Extended Partition in the Free space area (it would put /boot and the LVM block all in the Extended Partition).

  3. Start the Fedora 11 install (whether from the Fedora 11 LiveCD or the Install DVD, my preference is for the latter but YMMV).

  4. At the Partitioning screen, tell it you want to do a custom layout and that you want to review it first. This should take you to the Partitioning screen.

  5. Assign the pre-created /boot partition to the /boot mount point (edit that partition in the partitioning screen).

  6. Create an LVM block taking up all of the free space.

  7. In the LVM block, create a swap LV the same size as the amount of RAM you have in your machine.

  8. In the LVM block, create a root partition ( / ). You can have it take up the rest of the space in the LVM (this is the default layout), although it's easier and more flexible to keep it small (10-20GB) and leave the unused space available for future use. If you find you're running out of space on your root partition, you can extend the LV and the filesystem -- the ext3/4 & XFS file systems can even be grown while mounted (lvextend then resize2fs or xfs_growfs).

That should work fine... but seriously, read the Install Doc as I'm sure it will have both more detail and better clarity than I.

Related Question