Updated Home (markdown)

Peter Hatina 2013-10-18 05:29:29 -07:00
parent fe0510e765
commit b2f7a929ea
1 changed files with 18 additions and 4 deletions

22
Home.md

@ -40,13 +40,18 @@ To print a list of devices, that are connected, run following:
## Mounting ## Mounting
To mount MTP-based device to your local filesystem, simply run: To mount MTP-based device to your local filesystem, simply run:
```bash ```bash
$ simple-mtpfs <mount_pount> $ simple-mtpfs mount_pount [options]
``` ```
In case, you have more than one mtp-based device connected, you can specify, which device to mount. In case, you have more than one mtp-based device connected, you can specify, which device to mount.
```bash ```bash
$ simple-mtpfs --device <device_number> <mount_point> # to mount Galaxy Nexus $ simple-mtpfs --device <device_number> mount_point [options]
``` ```
Or use special character file present in the /dev directory:
```bash
$ simple-mtpfs /dev/libmtp-2-1.5.6 mount_point [options]
```
Where ```/dev/libmtp-2-1.5.6``` is symbolic link to ```/dev/bus/usb/xxx/yyy```.
## Unmounting ## Unmounting
To unmount your mtp-based device, execute this: To unmount your mtp-based device, execute this:
@ -57,11 +62,20 @@ To unmount your mtp-based device, execute this:
## Move-operation ## Move-operation
Due to MTP protocol logic, there can not be a full move-operation executed. By default, you can not move any file/folder in the mtp-based device storage. You can enable software emulation of this operation by passing a mount parameter ``-o enable-move``. Move emulation means, that the content is first copied to temporary location, removed on the device and then copied back (moved, renamed). Following example shows, how to mount with move-operation enabled. Due to MTP protocol logic, there can not be a full move-operation executed. By default, you can not move any file/folder in the mtp-based device storage. You can enable software emulation of this operation by passing a mount parameter ``-o enable-move``. Move emulation means, that the content is first copied to temporary location, removed on the device and then copied back (moved, renamed). Following example shows, how to mount with move-operation enabled.
```bash ```bash
$ simple-mtpfs <mount_point> -o enable-move $ simple-mtpfs <source> mount_point -o enable-move [options]
``` ```
## Temporary directory ## Temporary directory
Again, due to MTP protocol logic, true read/write operations can be performed on files, that are temporarily copied on a local filesystem. By default, all the temporary files are stored in /tmp/simple-mtpfs-XXXXXX, where XXXXXX is a random string for each mount different. You can specify your desired temporary directory for SIMPLE-MTPFS by running: Again, due to MTP protocol logic, true read/write operations can be performed on files, that are temporarily copied on a local filesystem. By default, all the temporary files are stored in /tmp/simple-mtpfs-XXXXXX, where XXXXXX is a random string for each mount different. You can specify your desired temporary directory for SIMPLE-MTPFS by running:
```bash ```bash
$ simple-mtpfs <mount_point> -o tmp-dir=<path> $ TMPDIR=<path> simple-mtpfs <source> mount_point [options]
```
# Configuration
## Udev Rule
It is possible to create a custom symlink for your MTP-based device. This is especially good, when automounting a device.
**NOTE:** This example is done for Samsung Galaxy Nexus phone.
```
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685c", SYMLINK="nexus"
``` ```