diff --git a/Home.md b/Home.md index d62e14d..cb987d5 100644 --- a/Home.md +++ b/Home.md @@ -40,13 +40,18 @@ To print a list of devices, that are connected, run following: ## Mounting To mount MTP-based device to your local filesystem, simply run: ```bash - $ simple-mtpfs + $ simple-mtpfs mount_pount [options] ``` In case, you have more than one mtp-based device connected, you can specify, which device to mount. ```bash - $ simple-mtpfs --device # to mount Galaxy Nexus + $ simple-mtpfs --device 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 To unmount your mtp-based device, execute this: @@ -57,11 +62,20 @@ To unmount your mtp-based device, execute this: ## 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. ```bash - $ simple-mtpfs -o enable-move + $ simple-mtpfs mount_point -o enable-move [options] ``` ## 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: ```bash - $ simple-mtpfs -o tmp-dir= + $ TMPDIR= simple-mtpfs 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" ``` \ No newline at end of file