How to increase size of root directory (/) with no unallocated space on disk

I’m new to Linux, so I’ll apologize in advance for if I say something stupid.

I’m attempting to dual-boot GalliumOS on my Chromebook. Everything has been going swimmingly for a few weeks, but just today, I started having a problem. After logging in, I’ll get the following error: Xsession: warning: unable to write to /tmp; X session may exit with an error. Clicking okay will bring be back to the login screen, and thus gets me nowhere.

After doing a bit of research, I believe my problem is that my root directory (/) doesn’t have enough allocated space, and is currently completely full. I got it to work once by booting to a terminal and emptying /tmp as well as doing apt-get clean, but that only worked for one login.

I’ve tried finding out how to allocate more space, but none of the help I’ve found has worked for my specific case. I have a live USB of GParted, but it still won’t allow me to extend/shrink any partitions.

If anyone can help me work out how to do this, I’d be very thankful.

Drive Partitions as displayed by GParted

Worst case scenario, I’d just have to do a clean install, but I really don’t want to do that as it’d be a lot of trouble.

Convert unallocated space to usable on a dual boot system

So I have dual booted my 1 TB hard disk with Windows and Ubuntu.

The disk partition looks as following Disk Partition

As you can see there is 326 GB of unallocated space that is not usable. It is an MBR disk so I am aware that the maximum number of partitions can be 4. Current primary partitions run contain the following:

  • Partition 2 /dev/sda2 Windows Filesystem
  • Partition 5 /dev/sda5 Linux Filesystem
  • Partition 6 /dev/sda6 Linux Swap
  • Partition 7 /dev/sda7 Linux Files

Is it possible to make this space usable?

Please link any previously answered questions if this has already been answered.

The output of sudo fdisk -l is

Disk /dev/loop0: 202.9 MiB, 212713472 bytes, 415456 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop1: 320.2 MiB, 335728640 bytes, 655720 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop2: 320.2 MiB, 335794176 bytes, 655848 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop3: 202.3 MiB, 212099072 bytes, 414256 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop4: 181.1 MiB, 189870080 bytes, 370840 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop5: 89 MiB, 93327360 bytes, 182280 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop6: 8.4 MiB, 8839168 bytes, 17264 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop7: 180.2 MiB, 188928000 bytes, 369000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x6436f9fc  Device     Boot      Start        End   Sectors   Size Id Type /dev/sda1  *          2048    1026047   1024000   500M  7 HPFS/NTFS/exFAT /dev/sda2          1026048  686035516 685009469 326.7G  7 HPFS/NTFS/exFAT /dev/sda3       1323407360 1324374015    966656   472M 27 Hidden NTFS WinRE /dev/sda4       1324378110 1953523711 629145602   300G  5 Extended /dev/sda5       1324378112 1359499263  35121152  16.8G 83 Linux /dev/sda6       1359501312 1375123455  15622144   7.5G 82 Linux swap / Solaris /dev/sda7       1375125504 1953523711 578398208 275.8G 83 Linux  Partition 4 does not start on physical sector boundary.     Disk /dev/loop8: 85 MiB, 89128960 bytes, 174080 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop9: 88.7 MiB, 92983296 bytes, 181608 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop10: 8.4 MiB, 8835072 bytes, 17256 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop11: 8.6 MiB, 9019392 bytes, 17616 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes 

Can’t install Ubuntu on unallocated space (Lenovo with Windows 10)

Hello I’m currently trying to install Ubuntu 18.04.3 LTS on my laptop that already has Windows 10 Home edition as it’s main OS. I’ve read that it’s possible to create a dual boot system with both Windows and Ubuntu and so I looked for some guides online for help on the topic and I started:

  1. I created an ISO image in my USB stick with the ubuntu installer using rufus.
  2. I created an unallocated space using the partitioning app that Windows has.
  3. I rebooted my computer and selected my USB as the way to boot.
  4. I chose the option to Try Ubuntu without installing it.

Then everything works fine, I get to the desktop page of Ubuntu and the installer on it, i double click it and I choose English as the option to install and pick the normal installation but when I get to the part to choose where I want to install Ubuntu it’s just an empty list and the unallocated space is nowhere to be found.

I’m really new to using Ubuntu and I’d appreciate any help with this, ask me if I need to give more detailed information I will provide it.

Thanks.

Ubuntu partition showing “unallocated space” after shrinking windows 10 partition with AOMEI partition assistant

Yikes, it’s been a long day. I had a dual boot of Windows 10 and Ubuntu and everything was good but I was running out of space in Ubuntu. I attempted to shrink my windows 10 partition but because of “unmovable” files I was not able to shrink it. Searched forums and I found the utility “AOMEI Partition assistant”… it shrank my windows 10 partition no problem, but now when I boot I just get a grub> prmompt. If I had esc during boot I can choose to boot into windows 10 which seems to work fine. I opened up the partition manager in windows 10 and to my horror my Ubuntu partition is simply gone and it’s space and the space I freed from Windows 10 just says “Unallocated space”. Is there any chance my data is still lurking in there somewhere? Any hope for repair? I’m looking at losing 100+ hours of work. I’m going to lie on the floor and cry for a while.

Ubuntu 18.04 large amount of available or unallocated memory?

Ubuntu 18.04 large amount of available or unallocated memory?

This is related to my prior question. I have 32gb of RAM installed on this Ryzen 2700x system. BIOS detects the RAM, everything should be all good. # lshw -C memory shows 32gb of RAM present in Ubuntu. The crux of the issue is that the system is only showing ~16gb of RAM total.

I’ve come across some new commands, which I’ve shown the output of below. They seem to indicate that roughly 1gb RAM is cached and roughly 14 gb of RAM is ‘available’ but not allocated for use. When adding these to the MemTotal we would get roughly 32gb I think. I’m interpreting MemFree as the amount of allocated RAM that is available but waiting to be used from the MemTotal.

My interpretation could be wildly wrong, but please let me know if you have any advice.

# watch -n 1 free -m

OUTPUT watch -n 1 free -m

# watch -n 1 cat /proc/meminfo

OUTPUT # watch -n 1 cat /proc/meminfo

How to expand my Ubuntu’s space with unallocated space

I’ve created a partition of 50GB to my Ubuntu on my SSD (using Win10 with 200GB), I want to expand my Ubuntu’s space by say, 20GB. So I’ve de-allocated that space from my /sda2 (ntfs) partition.

Now I would like to merge the unallocated space with /dev/sda5 which is an extended partition.

I’ve tried using AOEI software on win10 but it said it doesn’t take care of extended paritions. Tried to unmount sda5 (with –force or -f too, and with -l too), and it just made my system laggy, couldn’t do anything and had to restart, and eventually the key stayed.

I guess the steps should be to unlock the extended parition and then move the unallocated space down, and then I would be able to extend my Ubuntu’s space, but I’m not able to do it.

I’ve also read many posts and watched some YouTube videos which didn’t help me before asking here. Any help is highly appreciated, I need that space 🙁enter image description here

How to use merge windows unallocated space into Ubuntu using GParted?

I deleted my dual boot windows part from gparted. Now this unallocated space of the windows, I want merge them into sd5. But I dont know how to this. Have seen many post regarding this like drag to left to give the space but while trying to do this using Reszie/move, that it’s max size is already 600 GB so I can’t merge that 300 GB into it. I think I’m doing it wrong, can anyone tell me the right way to do it?

this is the image of my gparted