vozek
Posts: 2
Joined: Thu Nov 28, 2019 7:27 pm

/dev/root full because of usb HDD disk failure. Where are the files ?!

Thu Nov 28, 2019 7:34 pm

Hello,
I have the very known problem of full SD card. The file system is expended.
The RPI is used as a backup server. The connected usb HDD has certainly failed during a backup, so data was saved on the SD card.
At least it's what I heard on the forum.

But where are those files so I can remove them ?!

Thanks for your help :)

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.1G  6.8G     0 100% /
devtmpfs        213M     0  213M   0% /dev
tmpfs           218M     0  218M   0% /dev/shm
tmpfs           218M  3.1M  214M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           218M     0  218M   0% /sys/fs/cgroup
/dev/mmcblk0p1   42M   21M   21M  51% /boot
/dev/sda        146G   61G   78G  44% /media/backup
tmpfs            44M     0   44M   0% /run/user/0

Code: Select all

root@raspberrypi:/# sudo du -sh *
7.6M    bin
21M     boot
0       dev
3.8M    etc
20K     home
182M    lib
16K     lost+found
61G     media
4.0K    mnt
40M     opt
du: cannot access 'proc/1971/task/1971/fd/3': No such file or directory
du: cannot access 'proc/1971/task/1971/fdinfo/3': No such file or directory
du: cannot access 'proc/1971/fd/3': No such file or directory
du: cannot access 'proc/1971/fdinfo/3': No such file or directory
0       proc
20K     root
3.1M    run
7.7M    sbin
4.0K    srv
0       sys
32K     tmp
546M    usr
301M    var

rayjoh
Posts: 27
Joined: Thu May 23, 2013 11:48 am

Re: /dev/root full because of usb HDD disk failure. Where are the files ?!

Fri Nov 29, 2019 7:12 am

Unmount /media/backup and check if the files was hidden by the mounted disk.
-- Raymond

vozek
Posts: 2
Joined: Thu Nov 28, 2019 7:27 pm

Re: /dev/root full because of usb HDD disk failure. Where are the files ?!

Fri Nov 29, 2019 7:58 am

rayjoh wrote: Unmount /media/backup and check if the files was hidden by the mounted disk.

Thanks ! The files were in /media/ after unmounting the HDD :D

Return to “Raspberry Pi OS”