On Wed, 25 Oct 2017 15:04:18 -0700, in message 20171025150418.059d1ba7@Devil-Bonobo, John Jason Jordan wrote:
> On Wed, 25 Oct 2017 14:07:59 -0700 > Dale Snell <[email protected]> dijo: > > >> 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. > > Ah, that helps. I was wondering about those numbers, because 436 files > would be a couple of terabytes. > > >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. Actually, you need the double quotes in the example given, since the file name has a space in it. Or you can escape the space with a backslash: Star\ Trek\* *sigh* I need more caffeine. > When I ran the rsync command at a time when the Synology was unplugged > rsync added a lot of files to wherever it put them, and they were all > in alphabetical order. Rsync got through the As before failing. That > is 164 movies, where each is a folder with the name of the movie, and > inside is the movie, usuallly as an MKV file. So all I need to do is > pick a movie file that starts with an A and it should work. I tried > several such movies, from /, from /media, and from /media/jjj, but all > I got was 'no such file or directory.' Ah, okay. You'll have to unplug the Synology in order to find those movies. They're in whatever filesystem the Synology mounts in. Say you have a directory "/mnt/storage/". If you do an "ls /mnt/storage", nothing will show up. When you mount your new filesystem (say, the Synology) on /mnt/storage, doing the "ls /mnt/storage" will report whatever is in the new filesystem. If you create files in /mnt/storage/ _before_ mounting the Synology, and _then_ mount the Synology, you won't see those files, just the Synology's. One thing I learned to do in a previous life, when I helped administer a Sun III, was to mark unmounted filesystems. Use mkdir as usual to create the mountpoint directory (mkdir blorfl), then immediately do a "touch blorfl/not_mounted". When you do a directory listing of blorfl, it should show "not_mounted" only. If there are other files there, you've got a problem. > > >Another thing you might do is cd to / and run the following > >command: > > > > du -hl --sync --output=source,itotal,iused,iavail > > du -hl --sync --output=source,itotal,iused,iavail > du: unrecognized option '--sync' > du: unrecognized option '--output=source,itotal,iused,iavail' > > Not sure what went wrong here. Simple. I have the bad habit of mumbling at the keyboard. The command should be df, not du. A graphical tool you may be interested in is filelight. It scans very quickly, and makes it fairly obvious where your disk space is going. The downside is that it's a KDE program. If you don't have any other KDE programs installed (I have a bunch of games), you may not want to install it; it'll probably drag in a bunch of stuff you won't otherwise need. Another tool you might want is logwatch. Easy to install, doesn't take up much room. Runs in the early AM, and sends you an email telling you the status of your system. Very nice little utility. Sorry for the screw-up. --Dale -- Be comforted, that in the face of all aridity and disillusionment, And despite the changing fortunes of time, There is always a big future in computer maintenance. --National Lampoon, “Deteriorata” (excerpt) _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
