Partitioning before Installation - better in Windows or Ubuntu?
It is generally not recommended to work on disks and partitions from within a running operating system. So prepare the disk before installing any system to avoid possible trouble later on. Boot from the Ubuntu installation media you created before and select Try Ubuntu without installing.
Open GParted, create a new partition table. This will erase the disk, so backup your data before.
In case you have an UEFI based BIOS, select gpt
. In case you have a legacy BIOS, select msdos
.
Now create new partitions for Windows - here you find all information about what to consider :
- BIOS/MBR-based hard drive partitions
- UEFI/GPT-based hard drive partitions
After having prepared the partitions for Windows, prepare the partitions for Ubuntu. Creating an EFI partition is not necessary, because this already has been done before. All boot loaders will be installed there, the Windows boot loader and the Ubuntu GRUB boot loader.
Create a new partition - format it with ext4 - choose a size of minimum 20 GB.
Create a new partition - format it with swap - choose a size matching the RAM.
First install Windows, disable hibernation and fast startup, then shutdown the PC completely.
Now install Ubuntu, boot from the install media - select Try Ubuntu without installing. On the desktop click Install Ubuntu - when asked what to do - choose Something else. Select the ext4 partition you had created with GParted for the Ubuntu system before. Select / as mount point and ext4 file system as format and then start the installation of the Ubuntu operating system.
Here you find further information including a GParted presentation : How to prepare a disk ...
Firstly, find out which partition table you use.
You can do it for example from live usb in terminal by typing : sudo parted --list
or in Windows http://thpc.info/how/gpt_or_mbr.html .
If it is GPT, which is probable if you use newer machine, just install Windows 10 and then create in Windows disk management unallocated space where Ubuntu will be installed.
And after that when you will install Ubuntu, if you choose the option Install Ubuntu alongside Windows, Ubuntu will create automatically its boot partiton and swap partiton in this unallocated space without affecting anything else or you can always do it manually by Something else option.
I did it like this and I chose Install Ubuntu alongside Windows option when I installed Ubuntu 14.04.4 LTS alongside Windows 7 and everything went flawlessly.
It is always better to install Windows before Ubuntu. First perform a clean install of windows 10 then proceed with ubuntu installation. I would highly recommend you to create a partition within windows itself using the disk management utility before proceeding if you know what you are doing. You could directly select install ubuntu alongside windows option but at times I have seen windows not booting after installation. Morever I think it is the safest option to create a partition inside windows, then boot from ubuntu live-disc and select something else option and creating the root and swap partition from the partition already created and proceed with installation.If you are doing a fresh install create an extra partition for Ubuntu directly as you install Windows 10 and then boot from liveusb. Remember to switch off fastboot in WWindows 10.It sometimes causes problems.