1

I plan on installing Ubuntu 19.04 and give it 100 GB of my 256 GB SSD space and leave the rest for Windows as I would primarily be using Ubuntu.

A. Now, as I plan to install a lot of applications in Ubuntu, should I give more space to the / partition than the home partition? (Or maybe even drop the /home altogether?).

B. I have another 128 GB SD card for files like photos, audio and video files. Please suggest me the optimal partitioning for the use case.

C. Also, I have 8 GB of RAM so what should be the optimal swap partition size?

D. How would the distribution be if I choose "install Ubuntu alongside Windows" option?

K7AAY
  • 17,705

2 Answers2

0

You are a bit limited on disk space on the SSD so I recommend dropping the /home partition altogether and going with a single partition for everything in your Ubuntu operating system. New installations of Ubuntu 17.04 and later create a swap file instead of a swap partition by default, so a single >= 25GB partition for Ubuntu is all you need. This feature makes more efficient use of valuable disk space on SSDs.

You can also add the 128 GB SD card to /home by following the instructions in How to increase space in /home, by adding an extra hdd? or How can I give space on another drive to my Ubuntu partition?. This will allocate to your Ubuntu installation 100GB on the SSD (plenty of room to install applications) + 128GB on the SD card making a total of 228 GB for Ubuntu and the remaining 156GB of disk space on the SSD will be allocated to Windows 10 by the Install Ubuntu alongside Windows 10 option in the Installation type screen of the Ubuntu installer. You won't need to do any manual partitioning because you will only be making one new partition in the Installation type screen of the Ubuntu installer.

In the general case here is my method for calculating the disk space required for installing Windows on a home computer for personal use. If disk space is not a limiting factor I would allocate at least 100 GB for Windows not including stored files. Let's assume that there is an additional 100 GB that is required for stored files in Windows. Adding the two together gives a recommended disk space of at least 200 GB for this scenario,

karel
  • 122,292
  • 133
  • 301
  • 332
0

A. Keeping all Ubuntu files in one partition is preferred; when you need to reinstall, you can back up, then verify, all the files under home before reinstallation.

B. I would keep the 128 GB SD Card separate from the root partition of Ubuntu, so you can easily access it from Windows, and remove it if needed. They have a significantly higher failure rate than SSDs or HDDs, and I would not trust a filesystem split between an SD card and another drive.

You can access files for read, write, create, and delete in the Windows NTFS partition if you wish to share files across both operating systems; however, Windows does not access files in Linux filesystems well. Every time I have tried to access a Linux ext4 partition from Windows using drivers, I have ended up with a corrupted filesystem.

C. RedHat says 4 GB or more for swap. Swap partitions are passé in Ubuntu since before 18.04 LTS; the default now is a swap file equal in size to your RAM, so you do not need a separate swap partition, and since Ubuntu is much more efficient in the use of swap. dphys-swapfile allows autogeneration of the swapfile as well as turning it off when no longer needed. Here's a good primer on swap and zswap, an alternative which uses CPU and memory instead of disk space if you've got a fair amount of RAM and processor power available. zram is also worth considering.

D. When you do the dual boot 'alongside' install, the Ubuntu installation app, Ubiquity, will ask you how much space you will take on the SSD for Ubuntu. If it's occupied be a Windows-style NTFS partition, Ubiquity will resize that NTFS partition and make space, whatever you specify, in the SSD for Ubuntu. You can also, later on, reallocate space for either partition, if you boot from the Ubuntu LiveUSB and run gparted.

K7AAY
  • 17,705