1

I have Linux installed on my computer, but I need Windows for some things that I can't do with Wine, so I wanted to use a dual boot. I haven't done this before, but I just installed Linux so I don't have any files to risk if I screw up anyways. When I open GParted I have 3 partitions that were set up when I installed:

  • sda1 fat32 512Mb

  • sda2 ext4 693Gb

  • sda3 linux-swap 4.97

I thought I should reduce the ext4 partition so I could make one for Windows, but I can't resize it, the minimum and maximum options it gives are the same. I can't seem to do anything at all with the other two partitions either. What am I supposed to do to let me make a new partition?

Zephyr
  • 319

2 Answers2

1

You can't resize sda2 partition while it's in use. You need to boot your computer using a live USB or DVD Ubuntu, and then start Partition Manager GParted to shrink sda2 to the right, creating necessary free space (20gb?) to create a new partition (ntfs) for Windows.

Beware that your grub2 bootloader will be replaced with Windows boot manager and you won't be able to boot into Ubuntu immediately. You can only do this after restoring grub2 bootloader using some tool like boot repair disk (http://sourceforge.net/projects/boot-repair-cd) after which you can have an option to boot into Windows as well as Ubuntu.

Sadi
  • 11,074
0

OK, you want a 3 Partition Drive. 2 OS and 1 Data. The first thing you need to do is understand one thing. Windows and Linux has programs that only work with those OS' natively on the partition the OS is installed on.

So now that is covered. You need to back your data up on the Partition you are wanting the Data Drive to be on. This will ensure something bad happens, you can know you have that data else where.

Next you need to restart your PC. Use a LiveUSB of either Windows or Ubuntu. Enter Gparted/Fdisk depending on your USB. Now, in order to use this fully you need to shrink your Ubuntu part to 50 GB. Then make an NTFS Part thats also 50 GB. Finally make another part of the leftover space in NTFS. Please note to keep the other two partitions.

Finally install Windows. After windows is installed, enter your UEFI Boot Manger in your BIOS and make Ubuntu the first choice to boot to.

After you boot into Ubuntu, press Ctrl+Alt+T to access a Terminal to enter

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair 

At which point you can boot into Windows if needed. This data Partition makes it where you can access items from Linux just in case you need them from use in Windows, since Windows cannot see the Z: drive Ubuntu calls home.

Mudit Kapil
  • 2,081
Virusboy
  • 1,566