Disk full on EXT4 partition

Hello,
i have a RPI2 with the latest OSMC and attached it to is a USB 3.0 HDD NTFS (HDD1) formatted with transmission, sickrage and couchpotato installed and pointing to /media/HDD/xxx. I have another USB HDD (HDD2) attached to my router. After running into download speed isues i decided to format a FAT32 partition on my HDD2 and make it EXT4. After i was done, i wanted to test the download speeds so i added a file and it downloaded great except that it was still pointing at the HDD1 (transmission folder /media/HDD/incomplete) then i added manually another file and set the location to /mnt/HDD2/incomplete it started well then said disk is full. HDD2 is a 2TB disk with 1TB NTFS and 1TB EXT4 (nothing on it), so how can it say its full when its actually empty…now when i rebooted and tried to access sickrage (192.168.1.xxx) i get a message about opt/sickrage error disk full only transmission interface is still accessible. I looked at /temp and osmc/downloads and home/transmission and cna’t find any big files there. Any idea whats happening?

Have you set permissions for this folder correctly?

sudo chown -R osmc:osmc /mnt/HDD2/incomplete
sudo chmod -R 775 /mnt/HDD2/incomplete

You need pass those commands, either over ssh or connect a keyboard. I’m assuming the transmission is being started by the osmc user:

Also the output of the following, will also provide more info:

df 

Thanks Tom.

i did chown to osmc user and it did download to it 10% of the file then said disk full rebooted and now i can’t launch sickrage nor couchpotato i will output the df once i get home :slight_smile: thanks

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri May 5 07:15:29 2017 from 192.168.1.39
osmc@osmc:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 370520 0 370520 0% /dev
tmpfs 375512 5300 370212 2% /run
/dev/mmcblk0p2 15022000 14236188 0 100% /
tmpfs 375512 0 375512 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 375512 0 375512 0% /sys/fs/cgroup
/dev/mmcblk0p1 244988 21004 223985 9% /boot
/dev/sda1 976726012 953878820 22847192 98% /media/My Passport
tmpfs 75104 0 75104 0% /run/user/1000
osmc@osmc:~$

Hi,

How are you mounting /media/HDD/incomplete & /media/HDD2/incomplete, because they should be listed when you run df.

Where are the completed torrents being saved to?

How big is your sd card? I ask because your root partition (/dev/mmcblk0p2) is showing 100% full. This is possible the cause of your issue. I would clear any unwanted files from /home/osmc/

Thanks Tom.

My HDD1 is auto mounted under/media/sda1

My HDD2 IS MOUNTED via fstab

/dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automoun$# rootfs is not mounted in fstab as we do it via initramfs. Uncomment for re$//192.168.1.2/NAS/ /mnt/NAS/ cifs noauto,x-systemd.automount,guest,uid=1000,$//192.168.1.2/EXT4/ /mnt/NAS_OSMC/ cifs noauto,x-systemd.automount,guest,uid
My sd card is 16gb

User probably had a mount failure and torrent client created and populated directories at his mount point. Disks, if mounting, possibly now appearing as /media/mount.point(1), exacerbating the issue

So what should i do

Go look at your Mount points, are they duplicated?

/dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automoun$
#rootfs is not mounted in fstab as we do it via initramfs. Uncomment for re$
//192.168.1.2/NAS/ /mnt/NAS/ cifs noauto,x-systemd.automount,guest,uid=1000,$
//192.168.1.2/EXT4/ /mnt/NAS_OSMC/ cifs noauto,x-systemd.automount,guest,uid$

your fstab does not mention /media/HDD/incomplete or /media/HDD2/incomplete. Also my understanding is that fstab mounts, get mounted under /mnt; e.g. /mnt/HDD/incomplete. This would also need to be changed on the transmission settings.

I assumed when I read this earlier I thought you meant you had a fat32 partition, which you reformatted as ext4; is this the case?

Thanks Tom.

It just automounts I guess as it appears under /media/My Passport/ (that’s HDD1)
/mnt/NAS_OSMC/ (HDD2) Is MOUNTED with fstab as you can see
Both hdds contain incomplete folders
And I don’t have any mount points the way I see It, I just don’t understand how the sd card got full as I don’t download anything on it

Here’s what I get when trying to access socks are
Error
[Errno 28] No space left on device: ‘/opt/sickrage/cache/mako’
Traceback
Traceback (most recent call last):
File “/opt/sickrage/lib/tornado/web.py”, line 1469, in _execute result = yield result
File “/opt/sickrage/lib/tornado/gen.py”, line 1015, in run value = future.result()
File “/opt/sickrage/lib/tornado/concurrent.py”, line 237, in result raise_exc_info(self._exc_info)
File “/opt/sickrage/lib/tornado/gen.py”, line 1021, in run yielded = self.gen.throw(exc_info)
File “/opt/sickrage/sickbeard/webserve.py”, line 271, in get results = yield self.async_call(method)
File “/opt/sickrage/lib/tornado/gen.py”, line 1015, in run value = future.result()
File “/opt/sickrage/lib/concurrent/futures/_base.py”, line 422, in result return self.__get_result()
File “/opt/sickrage/lib/concurrent/futures/thread.py”, line 62, in run result = self.fn(self.args, **self.kwargs)
File “/opt/sickrage/sickbeard/webserve.py”, line 287, in async_call result = function(**kwargs)
File “/opt/sickrage/sickbeard/webserve.py”, line 718, in index t = PageTemplate(rh=self, filename=“home.mako”)
File “/opt/sickrage/sickbeard/webserve.py”, line 125, in init self.template = lookup.get_template(filename)
File “/opt/sickrage/lib/mako/lookup.py”, line 256, in get_template return self._load(srcfile, uri)
File “/opt/sickrage/lib/mako/lookup.py”, line 321, in _load **self.template_args)
File “/opt/sickrage/lib/mako/template.py”, line 322, in init module = self._compile_from_file(path, filename)
File “/opt/sickrage/lib/mako/template.py”, line 368, in _compile_from_file util.verify_directory(os.path.dirname(path))
File “/opt/sickrage/lib/mako/util.py”, line 60, in verify_directory os.makedirs(dir, compat.octal(“0775”))
File “/usr/lib/python2.7/os.py”, line 157, in makedirs mkdir(name, mode)
OSError: [Errno 28] No space left on device: ‘/opt/sickrage/cache/mako’
Request Info
body:
files: {}
protocol: http
connection:
body_arguments: {}
uri: /home/
query_arguments: {}
_start_time: 1494011904.5
headers: Accept-Language: en-US,en Accept-Encoding: gzip, deflate Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,
/
;q=0.8 User-Agent: Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G950F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/5.2 Chrome/51.0.2704.106 Mobile Safari/537.36 Host: 192.168.1.22:8081 Cookie: sickrage_user=“2|1:0|10:1493758489|13:sickrage_user|44:ZjJlOGRkMTEzYTE5YjYxYzY3ZWRkNDIzNjI1NDc4MTE=|63897b1c4d36c8497ff3632c7035e61f9dea3fadd63927f338b8cd8e3098357a”; user=“2|1:0|10:1493839688|4:user|44:NjlmYTU0MmRhYjdhNGJhZGJlMjUyMDdkYWM0MTFmZGQ=|960296863d14eefcd268b10ff3a89eb7c2c287f7ed6146faa6b469bc9d194849”; wanted_view=thumb; soon_view=thumb; suggest_view=thumb; late_view=list; imdb_movies_in_theaters_view=thumb; blu_ray_com_new_releases_view=thumb; imdb_box_office_view=thumb; filter=paused; snatched_view=list If-None-Match: “f02d4ca726211ae16a4bf9c70781eafa1cb200e5” Upgrade-Insecure-Requests: 1
host: 192.168.1.22:8081
version: HTTP/1.1
arguments: {}
_finish_time: None
query:
path: /home/
_cookies: Set-Cookie: blu_ray_com_new_releases_view=thumb Set-Cookie: filter=paused Set-Cookie: imdb_box_office_view=thumb Set-Cookie: imdb_movies_in_theaters_view=thumb Set-Cookie: late_view=list Set-Cookie: sickrage_user=“2|1:0|10:1493758489|13:sickrage_user|44:ZjJlOGRkMTEzYTE5YjYxYzY3ZWRkNDIzNjI1NDc4MTE=|63897b1c4d36c8497ff3632c7035e61f9dea3fadd63927f338b8cd8e3098357a” Set-Cookie: snatched_view=list Set-Cookie: soon_view=thumb Set-Cookie: suggest_view=thumb Set-Cookie: user=“2|1:0|10:1493839688|4:user|44:NjlmYTU0MmRhYjdhNGJhZGJlMjUyMDdkYWM0MTFmZGQ=|960296863d14eefcd268b10ff3a89eb7c2c287f7ed6146faa6b469bc9d194849” Set-Cookie: wanted_view=thumb
method: GET
remote_ip: 192.168.1.41
View Log(Errors)

Whats the output of:

cd /media
ls

Thanks Tom.

@SuperLmnt, /mnt/NAS_OSMC is NOT actually mounted; look at your df output.

What happens if you try to manually mount it

sudo mount /mnt/NAS_OSMC

Hmmm you are right it says no such device. But it was mounting correctly yesterday I was able to access through /mnt/ now it says no such device

osmc@osmc:~$ cd /media/ ls
osmc@osmc:/media$ ls
My Passport README

Is your /mnt/NAS_OSMC mountpoint missing?

ls -l /mnt

Hi,

Apologies its been a long day and somewhere along the line in reading this read I got it in my head, that HDD2/incomplete was under media; re-reading I can see it is in fact under mnt.

Please advise on the output of this:

cd /mnt
ls

Tom.

osmc@osmc:~$ ls -l /mnt/
total 0
drwxr-xr-x 2 osmc osmc 0 May 4 07:18 NAS
drwxr-xr-x 2 root root 0 Jan 1 1970 NAS_OSMC
osmc@osmc:~$

I guess it’s the userownership that’s causing the problem

I would just change the mountpoint permissions to 777

sudo chmod 777 /mnt/NAS /mnt/NAS_OSMC

And then try to mount again.

It could be a permissions issue, but I thought you had configured transmission while downloading to point to /media/HDD1/incomplete or /mnt/HDD2/incomplete. Neither of which appear to exist as mounts in osmc?

Tom.