Right now I’m using Ubuntu Mate with a Raspberry Pi 2 in order to use Transmission and files were being stored on an external HDD with 4 TB. So far everything was working well, but recently arose an error saying that there was no space available. Then I realized that the error is the root folder has a size of 1.5 TB and was already filled to 100%.
Apart from the root folder, there are also other folders of the same size that are also filled to 100%:
The downloaded files are stored within the Seagate folder.
My question then is how can I increase the size of those folders from 1.5 TB to 4 TB without losing or damaging my files, because right now I have no other HDD, plus I do not want to delete the already downloaded files.
I’m a bit confused what you mean by root folder. Is Ubuntu MATE running from the external hard drive or is it running off an SD card but mounting the external drives?
Folders are not limited by size, but the partition of that disk. It could be a limitation of the file system, partition sizes or improper mount points.
What’s the output of these commands?
df -h
sudo fdisk -l
The first one will tell us how much space is avaliable per mount point, and the second lists the structure of your partitions.
Disk /dev/mmcblk0: 14,9 GiB, 16021192704 bytes, 31291392 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
Disklabel type: dos
Disk identifier: 0xf9315c16
Disposit. Inicio Start Final Sectores Size Id Tipo
/dev/mmcblk0p1 * 2048 133119 131072 64M c W95 FAT32 (LBA)
/dev/mmcblk0p2 133120 31291391 31158272 14,9G 83 Linux
Disposit. Start Final Sectores Size Tipo
/dev/sda1 34 262177 262144 128M Microsoft reserved
/dev/sda2 264192 7814035455 7813771264 3,7T Microsoft basic data
Partition 1 does not start on physical sector boundary.
The root file system is indeed simply full. This could've happened if the drive wasn't mounted at the intended directory and wrote to the SD card (thinking it was the drive) instead.
I'd suggest checking your home folder and move any files that shouldn't be there to /media/oswaldo/Seagate Expansion Drive where your external drive is mounted. Then check Transmission's preferences so that the default download location is correctly pointing to the right folder on the drive.
MATE Disk Analyser tool may be helpful to find these large files.
Tip! You can add symbolic links from the terminal if you'd like /home/oswaldo/Seagate or /home/oswaldo/Downloads to point to the drive's root folders (or any folder inside):
Indeed, that was the problem, one of the files was being downloaded to the SD card and completely filled, then moved the file from the SD to the correct folder on the HDD and the problem was solved.