![]() |
#1 | |||
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Nov 2010
Device: Andoid
|
Device Mounted as MTP file system does not allow writing to folders
I have an Asus Transformer, which uses the MTP protocol. Although it might be possible in theory to connect it as an ordinary USB device, I mount this on my computer to create an accessible folder called /media/mtp.
I created /media/mtp/Books to act as the repository for my calibre library. I used the "connect to folder" option to transfer books. This transfer consistently fails. The error report is: Quote:
Quote:
After this erorr, books are on the device but Calibre fails to recognize them. When I attempt re-connect to the device, I get a similar error: Quote:
The work-around would be to either figure out how to make the device appear as a USB device, or to create a local "shadow" folder that shadows the device's books folder and sync that shadow folder to the device. However, perhaps there's some setting, tweak, or bug that causes this problem. Any suggestions? |
|||
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Nov 2010
Device: Andoid
|
I should also mention that I cannot get the user defined USB device to recognize the MTP device.
I used the Preferences' tool to detect the USB driver information that is present by the device when it is plugged in. Regardless, the user defined USB device expects a block-style interface, and MTP is not a block device. So -- even if on Linux you see a USB interface to your MTP device, that just means the device is present. It does not mean that you're able to use it to connect to your MTP device. |
![]() |
![]() |
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,154
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That calls that are failing are standard calls to open files in write mode, without those working there's no way calibre will work with the folder.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,154
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you really want to use a MTP based device with calibre, the correct way is to write a calibre device driver based on libopenmtp. This is something that has been on my TODO list for a long time, but then so have about 300 hundred other things
![]() |
![]() |
![]() |
![]() |
#5 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
You have a few alternative methods for getting books to your device. Something like the Dropbox app and keep your library in dropbox. Calibre content server and grab your books via wireless. Other form of cloud storage where you can export your books to.
|
![]() |
![]() |
![]() |
#6 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Nov 2010
Device: Andoid
|
Oddly enough, a search for my current problem brought me back here.
1. Just for the record, I thought I'd try to use Calibre to create a local folder, and then sync or copy that folder over to the tablet computer. This fails with the MTP file system -none of the epubs show up. I suspect, from cryptic comments in the file system man page, that the epub file extension is not recognized during copy and therefore never appears correctly on the MTP device. PNG files do appear as expected, by way of contrast. 2. My thanks to everyone for responding -- I also thought about the MTP library, given that more and more tablets use MTP, but I too don't have time for it at the moment. I guess I'll need to Dropbox, set up a local server, etc, or possibly just use old-fashioned "sneakernet" in the meantime. |
![]() |
![]() |
![]() |
#7 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Nov 2010
Device: Andoid
|
MTP File system does not support normal directory creation
I think I've stumble across the problem with MTP filesystems mounted via mtpfs. The ordinary directory ("folder") creation does not work as expected.
"cp -r ~/foo/calibre/* /media/mtp/calibre", which attempts transfer the calibre library below "foo" to the mtpfs-mounted Asus device, fails. The files seem to have been copies, and you can even umount and mount to see them again in the Linux filesystem; but after umount they are not in the Asus system in any place that I can find. I suspect something very off in the directory metadata. But if I copy only the files and not the directory structure, the files copy normally and can be seen on the device itself. I suspect this is the correct solution, or possibly a solution that separately copies the directory structure and the files. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,154
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MTP, like most everything that comes out of Microsoft is an utter and complete disaster. Just read the README from the libmtp project (particularly the sections on dual mode devices and It's not our bug): http://libmtp.git.sourceforge.net/gi...README;hb=HEAD
It will tell you that among other problems, MTP devices dont really support folders. I despair of ever making something user friendly out of this mess. |
![]() |
![]() |
![]() |
Tags |
asus tablet, mtp filesystem |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Testers Wanted: Cherokee has its own writing system with a different unicode range .. | Waya | ePub | 1 | 10-22-2011 05:05 AM |
Mounted Device Conflicts with Toolbar Settings | LaneLester | Calibre | 4 | 08-11-2011 04:42 PM |
folders' structure in the device | Brandobras | Calibre | 13 | 09-11-2010 02:15 PM |
Conflict between Calibre and mounted TrueCrypt device volume | acidzebra | Calibre | 4 | 08-13-2009 03:11 PM |
how to clean more disk space in root file system to upgrade system | chinaet | iRex | 1 | 12-18-2006 03:54 PM |