Disclaimer: Don’t trust gmail storage disk. Is possibile to lose all store data or get your account blocked (if you copy too much data, eg 100mb). Use it only to have fun or testing. If you wanna do backup, don’t store sensible data (is Google..remember) or be sure to have another backup.
GmailFS is a virtual filesystem (developed by Richard Jones) that permit you to mount your gmail box as an external hard drive. Is usefull for small backups similar to NFS.
Let’s start to install and configure GmailFS. I suppose here that you have a gmail address (if not, go here).
Packages need to be installed:
- python 2.3
- libgmail (you can found here packaged by Ville SkyttĂ)
- fuse python bind (watch my (temporary) repository)
- gmailfs (watch my (temporary) repository)
After downloaded and installed all my packets, if your pc don’t crash, we can go ahead and configure gmailfs.
Add a line about gmailfs to your
/etc/fstab as explain in the official project site:
usr/local/bin/gmailfs.py /path/of/mount/point gmailfs noauto,user 0 0
If you want to access to your storage gmail disk with root user, you have to modify the configuration file
/etc/gmailfs.conf adding username, password and disk name (disk name must be something difficult to guess to avoid someone can mess up your email).
To mount, simply use (as root):
If something go wrong, you can find log files in
~/gmailfs.log. Remember also if you need to use proxy configuration, you need appropriate ssl packages (eg. pythong-openssl) to use it.
To mount partition as normal user, you need to create a file similar to
/etc/gmailfs.conf in your home and call it
After that, you have to modify permission of mount point:
chown root:fuse /mnt/path/of/mount/point
chmod 775 /mnt/path/of/mount/point
Now you need to add your user to
fuse group (I used administrator panel of GNOME). After that exit and log-in again, you should be able to mount fuse partition, using:
For information, correction, error and so on….use comments
Update 01/10/2007@00:29 I have problems to unmount device from normal users. I get this error “unmount: /mnt/backup mount disagrees with the fstab”.
This, because when mtab is written, is different from fstab. I try to modify manually mtab but mtab change when a new partition is added, so is better to use root to unmount.