When my camera was mounted on /media
I could use the standard tools (df
) to see the disk usage of the card in my camera. However now the camera is mounted using gvfs, and df seems to ignore it. I've also tried pydf and discus to no avail.
The camera is definitely available through nautilus, and when I select the camera in nautlius, the status bar tells me the amount of disk free. I can also open the ~/.gvfs/
folder in nautilus and right click on the camera folder and get the disk usage in a graphical way.
But that is no use for a script. Are there command line tools that are the equivalent of df
for gvfs filesystems? Or even better, a way to make df
report on gvfs filesystems?
I did some poking around and discovered gvfs-info does what I need.
Interestingly, hitting Tab at the command line changed the above command into:
Which gave exactly the same information. I did a little experiment and found that plugging the camera into a different port gave a different address, but doing a
ls
of~/.gvfs/
would find the camera.