Mootorola Xoom: File Sharing in Gentoo

by Will on 10/04/2011

Okay…. This has to be a fairly new thing because it took a lot to get the file system to mount in Linux and allow me to navigate. There were a few things needed before all of this worked; to include manually building/emerging an ebuild. Hopefully this will help streamline the support for the few Xoom + Gentoo users out there.

You will need this ebuild and file so that you can build mtpfs.

mtpfs.tar.gz (This is the ebuild)
mtpfs-0.9.tar.gz (Copy this file to /usr/portage/distfiles)

First, I had to make sure that the device was detected. It has to be in debug mode.

simply plug in the usb cable and run mtp-detect and you should get a ton of crap like the following:

If there are any errors, then I would make sure that you have mtp support built properly.

Now, your make.conf needs /usr/local/portage as one of your PORTDIR_OVERLAYS, then add your ebuild to /usr/local/portage/sys-fs/mtpfs.

Next, you will need to build it manually. THIS IS NOT THE RECOMMENDED WAY OF BUILDING ANYTHING ELSE. ;( People don’t hate me for this)

# cd /usr/local/portage/sys-fs/mtpfs
# ebuild mtpfs-0.9.ebuild manifest
# ebuild mtpfs-0.9.ebuild unpack
# mv /var/tmp/portage/sys-fs/mtpfs-0.9/work/mtpfs-0.9.orig /var/tmp/portage/sys-fs/mtpfs-0.9/work/mtpfs-0.9
# ebuild mtpfs-0.9.ebuild prepare
# ebuild mtpfs-0.9.ebuild configure
# ebuild mtpfs-0.9.ebuild compile
# ebuild mtpfs-0.9.ebuild install
# ebuild mtpfs-0.9.ebuild postinst
# ebuild mtpfs-0.9.ebuild qmerge
# ebuild mtpfs-0.9.ebuild clean

Once you have that completed, then make your mount point, and run the following to mount your Xoom:

# mtpfs -o allow_other /mnt/xoom

Everything should work perfectly.

will@thebytes.net
  • Will

    It appears that there is no difference in Xfce or KDE, this is still the only way I can get this to work.