0

I've got a 240GB SSD that I'm using as my boot/applications drive and only have Ubuntu 14.04 installed, so no finagling with Windows or OS X installs.

I originally partitioned off 40GB of that 240GB as a fast access area - which I figured would be enough for simple projects now and again.

However, I'm finding that 40GB isn't really enough for everything I want to be able to speedily start (VMs & video/picture editing.)

I ran df -h to see what's being used with what I've installed thus far, and under 15GB of that 200GB of space is actually being used:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       184G  9.1G  165G   6% /               <--
none            4.0K     0  4.0K   0% /sys/fs/cgroup    |
udev            3.9G  4.0K  3.9G   1% /dev              |
tmpfs           793M  1.6M  792M   1% /run              | All SSD (/ is mounted on SSD)
none            5.0M     0  5.0M   0% /run/lock         | 
none            3.9G  1.6M  3.9G   1% /run/shm          |
none            100M   52K  100M   1% /run/user         |
/dev/sda1        93M  3.4M   90M   4% /boot/efi       <--
/dev/sdb2       914G  124G  743G  15% /home
/dev/sda2        37G   25G  9.8G  72% /media/nate/05b2dfb9-a2ad-4c21-98d3-9c8467a7f4c0
 ^- 40GB partitioned off

Obviously, since so little is being used, I'd like to be able to take some of that space that isn't being used, and put it to work.

According to this q/a the minimum required for / is 8GB, while the suggested is at least 15GB.

Judging by that, could I partition off 100GB of the 200GB currently partitioned and expand the general speedy space by that much?

What I want to know is, how much should I leave partitioned off for / (on /dev/sda3/) and how much can I safely expand the /dev/sda2 partition by so as to have more general speedy space?

The way I originally installed was I set up a 200GB partition for / on the SSD and set up /home/ to be on my 1TB HDD.

And, upon deciding how much is safe to partition off, what would be the safest method for taking that space and adding it to the general speedy space partition?

4
  • I am not sure why or what you are using your other data partition for. With my 64GB SSD, I used two / (root) partitions of about 28GB and actually used about 11GB. That 11GB included /home and .wine for Picasa, but no data which was in a /mnt/data partition and all data linked back into /home. With your larger SSD, I still would use 20 or 25GB for / and have /home for rest of SSD. Then only that data which you only access less often like photos, documents, backups etc would be on rotating hard drive.askubuntu.com/questions/524943/…
    – oldfred
    Jan 20, 2015 at 17:47
  • @oldfred That's an interesting thought, I hadn't looked at it that way. Thanks for your input! Jan 20, 2015 at 17:53
  • Do you know what dm-cache is?
    – Fabby
    Jan 20, 2015 at 20:28
  • 1
    @Fabby Nope, would you care to explain? Jan 20, 2015 at 22:31

1 Answer 1

1

A couple things:

  1. Using LVM to manage your partitions makes it MUCH easier to do this kind of thing.
  2. It is a lot easier to increase a partition's size than to decrease it. Especially the root mount.
  3. Since all the partitions you're discussing are on the same physical disk, there is no performance benefit from splitting them up into different partitions.

Given the above, you might as well just move the /mnt/media folder directly under the system root. That will get you the extra space. From there, repurpose the "/dev/sda2" parition as you see fit (e.g. using it as a mount /var or /usr).

I would normally suggest using the space from "/dev/sda2" to increase the size of "/dev/sda3", but that would be somewhat difficult in your case. Your SSD's partitions look to be in the wrong order to allow you to just delete the 40GB mount and add that space to the root partition easily (again, using LVM would avoid this issue).

If you aren't afraid of doing some repartitioning via boot disk, then you can get it sorted out. This should get you started, but it's probably more effort than it's worth (unless you're just looking to gain knowledge).

3
  • Yeah, I know about LVM. However, I didn't see the need to use it when I installed. It would definitely come in handy now :) As for using livecd - wouldn't an Ubuntu LiveUSB + gparted work exactly the same? Jan 20, 2015 at 22:33
  • Yep. The main issue is that you need to boot off of something that isn't your base install's root partition. That could be booting from a LiveCD/LiveUSB or even plugging your hard drive into another machine entirely. Jan 23, 2015 at 18:07
  • I did that, an everything worked just fine. I backed up the SSD using Clonezilla, but that wasn't actually necessary, as everything worked just fine. I booted the LiveUSB and resized using Gparted. I've marked your answer as answer :) Welcome to Ask Ubuntu! Jan 23, 2015 at 19:20

Not the answer you're looking for? Browse other questions tagged .