Hi,
I will start by saying I know nothing about Linux. Anything I did here related to Linux I just learned from articles here. Keep that in mind please
Okay, here’s what’s going on. I wanted to download all the Aerial screensavers so I could run them locally. I pointed them to the Movies folder from within Kodi. I walked away and noticed they were still downloading like 45 minutes later which was strange. I’ve done this before on Windows and they didn’t take up much space.
I checked out storage stats in Kodi, and it showed 14GB of 14GB used. I figure something went crazy with the aerial video downloads because I don’t store anything else on the Vero. It’s a stock setup using network drives for all media, and only the Embuary skin installed.
So I ssh’ed in thinking I could find a way to delete all that stuff but I have no idea how to do it and the little I just learned about Linux isn’t working for me. I can’t seem even cd to the Movies directory. I’m clearly just doing something wrong.
osmc@VERO:~$ ls
Movies Music Pictures TV Shows nano.save
osmc@VERO:~$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 757M 0 757M 0% /dev
tmpfs 879M 8.5M 870M 1% /run
/dev/vero-nand/root 14G 14G 4.0K 100% /
tmpfs 879M 0 879M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 879M 0 879M 0% /sys/fs/cgroup
tmpfs 176M 0 176M 0% /run/user/1000
Hi,
What is the out put of:
du -ah --exclude ".*" ~ 2>/dev/null | sort -n -r | head -n 20
Thanks Tom.
Hi Tom, thanks for the super fast reply.
osmc@VERO:~$ du -ah --exclude “.*” ~ 2>/dev/null | sort -n -r | head -n 20
592M /home/osmc/Movies/comp_LA_A008_C004_ALT_v33_6Mbps.mov
487M /home/osmc/Movies/comp_HK_H004_C008_v10_6Mbps.mov
485M /home/osmc/Movies/comp_HK_H004_C013_t9_6M_HB_tag0.mov
441M /home/osmc/Movies/plate_G002_C002_BG_t9_6M_HB_tag0.mov
438M /home/osmc/Movies/comp_DB_D008_C010_v04_6Mbps.mov
433M /home/osmc/Movies/comp_GL_G010_C006_v08_6Mbps.mov
355M /home/osmc/Movies/comp_C007_C011_08244D_001_v01_6M_HB_tag0.mov
351M /home/osmc/Movies/comp_DB_D001_C001_v03_6Mbps.mov
333M /home/osmc/Movies/comp_DB_D001_C005_t9_6M_HB_tag0.mov
320M /home/osmc/Movies/b4-3.mov
311M /home/osmc/Movies/comp_C007_C004_0824AJ_001_v01_6M_HB_tag0.mov
308M /home/osmc/Movies/comp_LW_L001_C006_t9_6M_tag0.mov
306M /home/osmc/Movies/comp_HK_H004_C010_4k_v01_6Mbps.mov
277M /home/osmc/Movies/b8-2.mov
275M /home/osmc/Movies/b2-2.mov
268M /home/osmc/Movies/comp_LA_A006_C008_t9_6M_HB_tag0.mov
265M /home/osmc/Movies/comp_DB_D002_C003_t9_6M_HB_tag0.mov
264M /home/osmc/Movies/comp_DB_D011_C010_v10_6Mbps.mov
258M /home/osmc/Movies/b5-3.mov
256M /home/osmc/Movies/b5-2.mov
I should also add that I may have accidentally saved these same videos to the root/media folder (which is probably not a great idea but I wasn’t thinking about the file structure when I did that; I really should just save these to removable media I guess). I selected that one first, but walked away and didn’t see the progress. I can’t seem to figure out how to navigate to that folder to do a “ls” command.
It could be all the .mov files. What’s the output of:
du -hs ~/*
Right, those are the Aerial screensaver files.
osmc@VERO:~$ du -hs ~/*
11G /home/osmc/Movies
4.0K /home/osmc/Music
4.0K /home/osmc/Pictures
4.0K /home/osmc/TV Shows
4.0K /home/osmc/nano.save
That’s 11G of .mov files. You should get an external drive, sd card or USB thumb drive to save them on.
I just replied to Tom, saying the same thing
Once I get this cleared up, I will do things the right way. This whole Linux based Kodi is new to me…
So what I really want to do is clear out that directory.
Then I want to see if there are any of these files stored in the root media directory
I was replying at the same time you were, so I missed that…
To clear up the files:
rm ~/Movies/*
will remove everything under the Movies directory.
OP should be able to do this in File Manager
Awesome! Thank you. I know that seems pretty simple but when you’re a Linux noob…
Can you tell me how to see what’s stored in that root media directory so I can make sure none of these videos were saved there as well?
osmc@VERO:~$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 757M 0 757M 0% /dev
tmpfs 879M 8.5M 870M 1% /run
/dev/vero-nand/root 14G 2.2G 11G 17% /
tmpfs 879M 0 879M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 879M 0 879M 0% /sys/fs/cgroup
tmpfs 176M 0 176M 0% /run/user/1000
To see usage at the top level:
sudo du -hs /*
You may see some errors when running that. Don’t worry about those. But don’t worry, 2.2G is about what I’d expect to see for usage.
Looks like nothing was stored there, which is great. Now I will get some removable media for the screensaver files…
Thanks again!
osmc@VERO:~$ sudo du -hs /*
6.4M /bin
35M /boot
0 /dev
5.1M /etc
591M /home
473M /lib
4.0K /lib64
16K /lost+found
8.0K /media
4.0K /mnt
1.4M /opt
du: cannot access ‘/proc/3067/task/3067/fd/4’: No such file or directory
du: cannot access ‘/proc/3067/task/3067/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/3067/fd/4’: No such file or directory
du: cannot access ‘/proc/3067/fdinfo/4’: No such file or directory
0 /proc
16K /root
8.5M /run
5.8M /sbin
4.0K /selinux
4.0K /srv
0 /sys
24K /tmp
581M /usr
460M /var
0 /walkthrough_completed
Oh man…I didn’t even realize you could make changes in File Manager. I thought it was informational only. SMH! I will keep that in mind in the future.
Either way it’s probably easier to SSH instead of hooking up a keyboard and turning on the receiver, TV, etc. Well, easier if one actually knows how to use Linux.
I’ve been using *nix systems since 1981, so I have the tendency to do things like this using the CL…
For future reference, ncdu is a handy way to check filesystem use from the command line:
sudo apt install ncdu
and then to just view the home directory:
ncdu ~
for the system:
sudo ncdu /
Thank you. I did find some articles on that, but before I posted, I tried and couldn’t install it because the storage was full. Since I was 99% sure what filled it up, I wasn’t too worried about using ncdu, but I’m sure it will be helpful in the future.
Thanks for the help and the tips!
If you haven’t found these, maybe they can be useful
Here is a cheatsheet and some tutorials for how to navigate in a Linux shell: Cheatsheets and Tutorials for users new to Linux based operating systems
Since Movies is inside your home directory, if you have installed samba server, they are automatically shared and you can browse them from Windows with none of this commandline stuff.
Thanks for the tip. Now that I can actually install stuff because I have the free space, I will install Samba.