2013-07-05

Slitaz -- MI2S / mtp

FUSE filesystem that supports reading and writing from any MTP device

1.
root@slitaz:~# tazpkg -gi mtpfs

root@slitaz:~# tazpkg info mtpfs

Tazpkg information
================================================================================
Package : mtpfs
Version : 0.9
Category : multimedia
Short desc : FUSE filesystem that supports reading and writing from any MTP device
Maintainer : keupont@no-log.org
Depends : libmtp libnjb libid3tag libmad fuse glib
Build deps : libnjb-dev libid3tag-dev libmtp-dev fuse fuse-dev glib-dev libmad-dev libusb-compat-dev
Web site : http://www.adebenham.com/mtpfs/
================================================================================


2.
root@slitaz:~# mtpfs /mnt/mtp

root@slitaz:~# ls -l /mnt/mtp

total 0
drwxrwxrwx 2 root root 0 Jan 1 1970 Android
drwxrwxrwx 2 root root 0 Jan 1 1970 DCIM
drwxrwxrwx 2 root root 0 Jan 1 1970 lost+found
drwxrwxrwx 2 root root 0 Jan 1 1970 miliao
drwxrwxrwx 2 root root 0 Jan 1 1970 MIUI
drwxrwxrwx 2 root root 0 Jan 1 1970 Notifications
drwxrwxrwx 2 root root 0 Jan 1 1970 Playlists
drwxrwxrwx 2 root root 0 Jan 1 1970 ramdump
drwxrwxrwx 2 root root 0 Jan 1 1970 TouchPalv5


3.
root@slitaz:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,barrier=1,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
mtpfs on /mnt/mtp type fuse.mtpfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0)


4.
root@slitaz:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 27.5G 21.0G 5.1G 81% /
tmpfs 1.6G 0 1.6G 0% /dev/shm
mtpfs 23.6G 164.8M 23.5G 1% /mnt/mtp


5.
root@slitaz:~# dmesg | tail -14
usb 2-3: new high speed USB device using ehci_hcd and address 3
scsi2 : usb-storage 2-3:1.1
scsi 2:0:0:0: Direct-Access Linux File-Stor Gadget 0000 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Write Protect is on
sd 2:0:0:0: [sdb] Mode Sense: 0f 00 80 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: unknown partition table
sd 2:0:0:0: [sdb] 23377 2048-byte logical blocks: (47.8 MB/45.6 MiB)
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
root@slitaz:~#


Ref:
ubuntu-automount-nexus7-mtp
http://bernaerts.dyndns.org/linux/247-ubuntu-automount-nexus7-mtp

Working MTP on Ubuntu for Galaxy Nexus, Nexus 7 and Acer A500
http://www.winters.org.nz/android-hints-tips-stuff/working-mtp-on-ubuntu