2

I recently set up a dualboot with Ubuntu 17.04 and Windows 10 (Home 64). My system came with 8GB of RAM and 512GB of SSD. I followed some tutorials and most of them recommended a 15-25GB partition to install Ubuntu, regardless of the available space on the hard drive or SSD. Here's the partition breakdown:

Ubuntu partition: 25GB, the OS takes up about 5GB and I allocated 10GB for swap space Windows (C:) partition: 450GB, the OS takes up about 30GB

The remaining space on the Ubuntu partition is roughly 10GB out of 25GB. I'm trying to understand the file system. So everything in /home directory and / (root) is in the 25GB partition.

How do I access (or make use of) the rest of the SSD on the primary (C:) drive which is roughly 420GB (not including Windows OS) for bulk storage (projects, assignments, etc)? Would this also be a good place to install SDKs and other developer tools & packages? Should I allocate a separate partition for this?

If this isn't the right approach, is there a way to re-adjust the partition sizes to make sure I have plenty of bulk storage? Like re-allocating space from Windows (C:) drive and adding it to /home. Looks like most people work out of the /home directory and store all their work directories there, should that partition be as big as it can?

RCube123
  • 131

2 Answers2

3

While your current set up is enough to install ubuntu, it leaves little room for installing and upgrading.
I recommend the root partition ( / ) to be 15-20 GB.
If you use hybernate, I recommend 14 GB for swap; though 10 GB works if you don''t hit swap much during normal use.
Most people store data in their /home partition thus it needs to be as large as you can make it.
As you suggested, you can make a third partition for data that is mounted to a folder in /home. In this case home should be 15-20 GB, and the data partition as large as you can make it.

If you haven't done much with ubuntu, then clearing more free space from windows partition and reinstalling ubuntu is the easiest way to make the changes.

ravery
  • 6,874
  • for ages I felt 16gb was fine for /. i now assign it 32gb as I got sick of the space issues (i like installing multiple DEsktops). the size you need depends upon your use of it. I like my ubuntu giving me the choice of XFCE, MATE, Unity (standard Ubuntu) ... hence I go for 32gb as a minimum. the more software you'll install - the more space you'll need (as you want space for updates -- more software means more space needed for updates). only you can guess your needs.

    i'd recommend a /home partition too; it allows you to re-install with little risk to your data (even change distros).

    – guiverc Sep 10 '17 at 06:57
  • i'd recommend a 'shared' partition for data you want to share between windoze & ubuntu. i've not used w10 so it may not apply; but I've felt safer with it. – guiverc Sep 10 '17 at 06:58
  • @ravery: Sounds like a good idea, I do plan to use the hibernate feature in Ubuntu. I think the 3rd partition sounds like a good idea. So, I'll shrink the Windows partition to about 80GB since I don't plan to use it much and leave the remaining 370GB for the /data partition. For the 370GB of unallocated space, how do I make it usable in Ubuntu? I heard a program called "gparted" mentioned before. I think once that's set up, I can run sudo mount [drive details] which will let me browse to the /data partition from the /home directory. Is this correct? – RCube123 Sep 10 '17 at 21:09
  • So it looks like Windows won't let me shrink its own partition beyond 250GB. This leaves me only 200GB to use for the /data partition. Now I'm wondering if I should redo everything, merge all partitions back to one and replace Windows with Ubuntu entirely. I don't really need Windows on this system as I already have it on a separate machine. I'm still in the blank slate and have not used the system for actual work yet. – RCube123 Sep 10 '17 at 21:26
  • @AlgoTron hibernation is normally disabled in Ubuntu. It requires some minor mods to enable, and a swap partition (not swapfile) that's larger than RAM memory. See my comment below about shrinking your C: drive more. – heynnema Sep 10 '17 at 21:57
  • Do not recommend removing Windows, but if you do make a full image backup, so it could be restored. I use 25GB for / (root) including /home on SSD, but have a very large /mnt/data partition on my HDD along with other / partitions for test installs & experiments. Years ago when still using XP, my data partition was NTFS, but now with only Linux it is ext4. But I have to set ownership & permissions to use it. If you only have SSD, data partition can be on it also: http://askubuntu.com/questions/524943/dual-boot-with-ssd-and-hdd-storage – oldfred Sep 10 '17 at 22:43
  • @AlgoTron -- the partition can be made with any partitioner and ubuntu can use it. Windows stores some files at the end of the partition, so you may not be able to get windows down to 80 GB without reinstalling. – ravery Sep 10 '17 at 23:33
1

Because you've got a smallish SSD, and I assume that you want similar sizes for each of Windows and Ubuntu... don't do ANY of the crazy partitioning schemes! You'll either end up wasting usable space, or not defining the sizes correctly (guaranteed). Use the Ubuntu partitioning defaults.

If you want to share files between Windows and Ubuntu, you could manually create a NTFS partition (using Windows Disk Management app) to do that.

Update #1:

If you're going to mount your Windows C: drive in Ubuntu...

If the NTFS drives are mounting as read-only, or not mounting at all, it's probably because Ubuntu thinks their filesystems are unclean, probably due to hibernation, or a damaged file system. Do this...

in Windows

  • boot into Windows
  • open the Power control panel
  • choose change what the power buttons do
  • choose change options that are unavailable
  • uncheck fast startup
  • close the Power control panel
  • open an administrative command prompt window
  • type powercfg /h off
  • type chkdsk /f c:
  • approve to run chkdsk at next reboot
  • type chkdsk /f x: (replacing "x" with drive letters of other visible NTFS partitions)
  • reboot into Windows to let chkdsk run on drive C:
heynnema
  • 70,711
  • Hmm.. not sure if 512GB is a small SSD. Actually, I plan to use this system to learn coding and software development, so I don't plan to use Windows very much and I'm fine if it's on a smaller partition, maybe around 80GB. I'm only keeping Windows just in case there's something I absolutely need to use or run that's exclusive to Windows. So, that leaves roughly 370GB for the /data partition, which I plan to mount to /home to store user files, project directories, and other media files. – RCube123 Sep 10 '17 at 20:56
  • After attempting to shrink the Windows partition, I discovered that it won't let me shrink beyond 250GB for the Windows (C:) drive which leaves me with only 200GB to use as bulk storage for Ubuntu. From the disk management software in Windows, it looks like the Windows (C:) partition is already NTFS. How do I share the remaining space in Windows (C:) with Ubuntu? Without needing to create a separate partition. – RCube123 Sep 10 '17 at 21:29
  • You can't shrink Windows C: drive any more because it's got one or more immovable files (while they're in use), and that normally means the paging file. Temporarily disable paging. Reboot. Shrink. Re-enable paging. And you should be good. Mounting the C: drive in Ubuntu is possible, but is not recommended. There are some Windows mods that need to be done if you decide to do so anyway. I'll add the mods to my answer. Much better to create a new NTFS partition that both OS's can access. Then do a normal Ubuntu install with the space that's left. – heynnema Sep 10 '17 at 21:35
  • @heynnema: Success! The hard part is done. I temporarily disabled the hiberfil.sys, pagefile.sys, and swapfile.sys files, then shrunk the Windows partition down to 80GB, then re-enabled the system files (above). Now I have 370GB of unallocated space on the SSD. How do I use it as a /data partition and mount it to the /home directory in Ubuntu? Once successfully mounted, the /data partition will act as another directory under /home? And from /home, I can just type cd data and use it for project directories and user files? – RCube123 Sep 10 '17 at 23:26
  • @AlgoTron -- yes you make a directory in /home to mount the partition to, then it is accessed just like addressing subdirectories. – ravery Sep 10 '17 at 23:36
  • @AlgoTron Explain more about your thinking. Is this /data partition going to be NTFS or EXT4? Are you planning on sharing the files on /data with Windows, or just use it in Ubuntu? In a normal Ubuntu installation, why couldn't you just create a data or projects folder in the normal Documents folder. Why all this funny business with extra partitions? – heynnema Sep 10 '17 at 23:41
  • @ravery understand that mounting a /data (partition) at /home/data isn't the same thing as having the user be able to just cd from his home directory to get to it. Directory permissions are going to be tricky too. I'm trying to dis-swede OP from all of this partition foolishness. – heynnema Sep 10 '17 at 23:49
  • @heynnema: This is my first time dual-booting and playing with partitions. I followed some tutorials that recommended having Ubuntu to have a small partition (e.g. 25GB). During the time I created the partition, I also had some trouble shrinking the Windows partition beyond 250GB until I found out how to disable the 3 system files, which happened after I installed Ubuntu on the 25GB partition. I originally planned to mostly use Ubuntu on this system and have Windows on a separate (much smaller) partition, in case there's a Windows app I needed to run. Sure, I made some mistakes at first. – RCube123 Sep 11 '17 at 00:01
  • @heynnema -- I know it isn't the same. and this partitioning isn't foolishness. the ubuntu installer itself will ask if you want a separate home partition under guided partitioning. – ravery Sep 11 '17 at 00:01
  • @heynnema: Moving forward, now I have 370GB of unallocated space that I would like to use exclusively for Ubuntu. Actually, when I allocated 25GB for Ubuntu (ext4), during the installation, I set aside 10GB of that 25GB for the swap. Now the question becomes, should I use the 370GB of unallocated space as a mountable partition? Or should I merge the unallocated space into the Ubuntu (ext4) partition? I'm currently trying to do this by booting into the install media (USB) and adjusting the sizes using gparted. – RCube123 Sep 11 '17 at 00:08
  • @AlgoTron Yes, I helped you with shrinking your Windows partition. You still haven't told me how you're going to use /data, what format it's in, and why regular folders won't work for you. All these partitions /, /home, /data, and swap really aren't necessary, and I'm trying to talk you out of it. I don't really see an advantage in your case. I only see problems when/if you misjudge partition sizes, and have more trouble later on. – heynnema Sep 11 '17 at 00:09
  • @AlgoTron the way that you've done it already, makes / only 15G big... which I would say is too small. Esp depending on what coding/programming apps/data you're going to install. – heynnema Sep 11 '17 at 00:13
  • @AlgoTron -- 15 GB / and 10GB swap are fine. All the remaining space can be used a 1 /home partition. or you can make a /home and /data partition. If you are going to share data between OS's a separate data partition is recommended. or if (like me) you have a lot of data that you don't want to restore if you redo the home partition. – ravery Sep 11 '17 at 00:14
  • @heynnema: I have not yet created a /data partition out of the 370GB of unallocated space (no format?). So you're suggesting to merge the Ubuntu partition with the unallocated space rather than mounting it? How would I do this using gparted from the Live USB? As for usage, I plan to use it to store project files, user directories and files. – RCube123 Sep 11 '17 at 00:19
  • To summarize, rather than mounting partitions, I want the 370GB of unallocated space to be part of the Ubuntu partition, as a single large partition (15GB + 370GB = 385GB). – RCube123 Sep 11 '17 at 00:22
  • @AlgoTron -- I assume the the / partition is between the free space and the /home partition. If you intend to unite the free space and /home partition, then you need to move the / and swap partitions to the beginning of the free space, then grow the /home partition to fill the remaining space. PS- I would recommend a 20GB / partition instead of 15GB – ravery Sep 11 '17 at 00:24
  • @ravery I had this under control until you stepped in. Tell you what... I'm out... you can finish the process with AlgoTron. – heynnema Sep 11 '17 at 00:33
  • @AlgoTron do you still need help, or have you figured it out by yourself by now? If so, show me a screenshot of gparted. Then ping me at @heynnema and I'll take a look, and see if we can finish what we started. – heynnema Sep 12 '17 at 13:25