/dev/root always full Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
subaquatic
Posts: 12
Joined: Sat Nov 28, 2015 7:25 pm

/dev/root always full

Post by subaquatic »

Hi and thanks for a great lightweight distro!

I'm running into an issue where processes fail because /dev/root is filling up. I ran dietpi-cleaner with all options turned on and it finds a few MB, but not much.

Code: Select all

root@DietPi:~# df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/root                 1.7G  1.7G   16M 100% /
devtmpfs                  237M     0  237M   0% /dev
tmpfs                     242M     0  242M   0% /dev/shm
tmpfs                     242M  5.0M  237M   3% /run
tmpfs                     5.0M     0  5.0M   0% /run/lock
tmpfs                     242M     0  242M   0% /sys/fs/cgroup
tmpfs                      10M  964K  9.1M  10% /DietPi
tmpfs                      20M   20K   20M   1% /var/log
tmpfs                     242M     0  242M   0% /tmp
/dev/mmcblk0p1             56M   21M   36M  37% /boot
/dev/sda1                  30G   45M   28G   1% /mnt/usb_1
//192.168.8.20/D$/Video/  2.8T  363G  2.4T  13% /mnt/htpc
tmpfs                      49M     0   49M   0% /run/user/0
I read that Debian sometimes creates orphaned files if network shares aren't properly mounted, but I haven't found any files in the mount directories, and my one network share is working fine now.

Any ideas where else I could look?
subaquatic
Posts: 12
Joined: Sat Nov 28, 2015 7:25 pm

Re: /dev/root always full

Post by subaquatic »

Found it!

Code: Select all

umount /mnt/usb_1
rm -r bt-inprogress
1 GB free
Tox
Posts: 14
Joined: Sun Jan 03, 2021 2:59 pm

Re: /dev/root always full

Post by Tox »

Hello, I'm actually having the same problem. The /dev/root is getting bigger and bigger.

System: Dietpi V7.3.2, nextcloud, lighttpd.

Code: Select all

root@DietPi:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        59G   34G   23G  60% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G   25M  1.9G   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs            50M     0   50M   0% /var/log
tmpfs           1.9G     0  1.9G   0% /tmp
/dev/mmcblk0p1  253M   50M  203M  20% /boot
/dev/sda1       916G   31G  886G   4% /mnt/dietpi_userdata/nextcloud_data
Any idea what I could check ?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: /dev/root always full

Post by Joulinar »

Hi,

You can search for the biggest files/folder to get an idea where space is used most.

Code: Select all

du -a / --exclude /mnt/dietpi_userdata/nextcloud_data | sort -n -r | head -n 20
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tox
Posts: 14
Joined: Sun Jan 03, 2021 2:59 pm

Re: /dev/root always full

Post by Tox »

Hi Joulinar,
thanks for helping. Here is the reply:

Code: Select all

root@DietPi:~# du -a / --exclude /mnt/dietpi_userdata/nextcloud_data | sort -n -r | head -n 20
du: cannot access '/proc/7290/task/7290/fd/3': No such file or directory
du: cannot access '/proc/7290/task/7290/fdinfo/3': No such file or directory
du: cannot access '/proc/7290/fd/4': No such file or directory
du: cannot access '/proc/7290/fdinfo/4': No such file or directory
35051574	/
33466728	/mnt
33253784	/mnt/dietpi-backup
33253776	/mnt/dietpi-backup/data
31716560	/mnt/dietpi-backup/data/mnt
31716556	/mnt/dietpi-backup/data/mnt/dietpi_userdata
31516060	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data
14886372	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie
13428520	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files
13398080	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files/Photos
13022360	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin
8811648	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin/files
4737972	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files/Photos/2020
4350032	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin/files/Videos
4194324	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin/files_trashbin
4194312	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin/files_trashbin/files
4194308	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/admin/files_trashbin/files/BW.mkv.d1626712828
3621640	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files/Photos/2018
2157808	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files/Photos/2019
1883916	/mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data/Valerie/files/Photos/2020/12
Tox
Posts: 14
Joined: Sun Jan 03, 2021 2:59 pm

Re: /dev/root always full

Post by Tox »

Is the dietpi backup going to the SD card instead of my external drive ?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: /dev/root always full

Post by Joulinar »

Well you are doing backups of Nextcloud down to your SD card

Code: Select all

31516060 /mnt/dietpi-backup/data/mnt/dietpi_userdata/nextcloud_data
You should exclude nextcloud_data or use a different backup location like a 2nd HDD.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tox
Posts: 14
Joined: Sun Jan 03, 2021 2:59 pm

Re: /dev/root always full

Post by Tox »

is the location selected in the Dietpi-Backup saved or do I have to select it each time I'm doing a backup ?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: /dev/root always full

Post by Joulinar »

It's saved and will be used always until you change it again
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Tox
Posts: 14
Joined: Sun Jan 03, 2021 2:59 pm

Re: /dev/root always full

Post by Tox »

OK so I have made a mistake (as usual). Thank you Joulinar for your Help.
Post Reply