[PLUG] No space left on device

Dale Snell ddsnell at frontier.com
Wed Oct 25 21:07:59 UTC 2017


On Wed, 25 Oct 2017 12:57:55 -0700, in message
20171025125755.1e654906 at Devil-Bonobo, John Jason Jordan wrote:

> I found at least part of the problem. During remodeling work
> apparently the power plug to the Synology disk station was unplugged.
> Thus, when rsync tried to sync the Mediasonic USB drive to the
> Synology it failed. But at least a couple of times recently I ran the
> command manually (Instead of waiting for cron to do it at 2am), and I
> watched in the terminal as it did so. It copied a lot of movies from
> the USB, and then failed. Now I know why it failed.
> 
> The part I don't know is where rsync put those files. They are
> somewhere in /media, because the du command listed /media as having
> 56GB. 
> 
> 	jjj at Devil-Bonobo:/$ cd /media
> 	jjj at Devil-Bonobo:/media$ ls -la
> 	total 16
> 	drwxr-xr-x   4 jjj  jjj  4096 Apr 16  2017 .
> 	drwxr-xr-x  25 root root 4096 Oct 24 21:46 ..
> 	drwxr-x---+  5 jjj  jjj  4096 Oct 24 20:59 jjj
> 	drwxr-x---+  2 root root 4096 Apr 16  2017 root
> 	jjj at Devil-Bonobo:/media$ cd jjj
> 	jjj at Devil-Bonobo:/media/jjj$ ls -la
> 	total 436
> 	drwxr-x---+    5 jjj jjj   4096 Oct 24 20:59 .
> 	drwxr-xr-x     4 jjj jjj   4096 Apr 16  2017 ..
> 	drwxrwxrwx     6 jjj jjj   4096 Oct 24 21:08 128GB
> 	drwxr-xr-x  2311 jjj jjj 270336 Oct 25 11:17 Movies
> 	drwxr-xr-x  2311 jjj jjj 159744 Oct 25 08:00 Synology
> 
> According to ls there are 16 files in /media and 436 files
> in /media/jjj. Why do they not appear when I use 'ls -la'? I also
> tried as root, but got the same output. And for what it's worth,
> Thunar (Xfce GUI file manager) also does not display them. 

The "total <blargh>" lines in a long directory listing do not
report the number of files in a directory.  Rather, they report
the total disk allocation (i.e., the number of blocks) for all
files in that directory.

If you know the name of one of the files, you should be able to
find it with the find(1) command.  cd to /media and try

    find . -name movie_name -print

If <movie_name> is excessively long, or you don't remember all of
it, use a wildcard like \* at one end or the other.  E.g., "Star
Trek\*" (w/o the quotes, natch) should find anything Star Trekish.

Another thing you might do is cd to / and run the following
command:

    du -hl --sync --output=source,itotal,iused,iavail

This will list all your filesystems and display the total number
of inodes, the number of inodes used, and the number if inodes
available.  You may not be running out of inodes, but it's good to
check, just in case.

Hope this helps.

--Dale

-- 
“Always do right -- this will gratify some and astonish the rest.”
    -- Mark Twain (1835-1910) 



More information about the PLUG mailing list