GmailFS installing and configuration (Fedora 7)

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
– fuse
– 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/ /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):
mount /mnt/path/of/mount/point

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 .gmailf (~/.gmailfs).
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:

mount /mnt/path/of/mount/point

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.


3 thoughts on “GmailFS installing and configuration (Fedora 7)

  1. Hi,
    I’ve installed it on Linpus lite. I have the same problem with unmounting.
    I also have problems with directory listing…

    [user@localhost ~]$ touch /mnt/gmail/test1
    [user@localhost ~]$ ls -la /mnt/gmail/
    total 5
    drwxr-xr-x 3 user user 1 2008-10-21 21:02 .
    drwxr-xr-x 19 root root 4096 2008-10-20 23:10 ..
    [user@localhost ~]$ ls -la /mnt/gmail/test1
    -rw-rw-r– 1 user user 0 2008-10-21 21:29 /mnt/gmail/test1

    The files are there, but I can’t list them unless I know their name.
    Or is this a feature?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s