Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2012
Device: Kindle
|
Accessing the reader: device comm problem
Hi Kovid,
Thanks again for the reply.
I've at least managed to take one step ahead: it looks as though some specific mounting options are required. Right now I'm trying to access a Sony e-reader.
Unfortunately the manual doesn't tell me which mounting options are required, usbmount mounts the device:
mount -tvfat -orw,nosuid,nodev,shortname=mixed,dmask=0077,utf8=1 ,showexec,flush,uhelper=udisks /dev/sdb /media/usb1
and its books are shown.
However, its 'cardA' doesn't show up.Why not?
When I manually mount the vfat filesystems (using the commands
mount -tvfat -orw,nosuid,nodev,shortname=mixed,dmask=0077,utf8=1 ,showexec,flush,uhelper=udisks /dev/sdb /media/usb1
and
mount -tvfat -orw,nosuid,nodev,shortname=mixed,dmask=0077,utf8=1 ,showexec,flush,uhelper=udisks /dev/sdd1 /media/usb0
calibre does show a device and card A icon, but no books are displayed anymore. Neither for device1 nor for cardA. What I do get is a comm. failure with the following message:
'ascii' codec can't encode character u'\xeb' in position 60: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/device.py", line 82, in run
self.result = self.func(*self.args, **self.kwargs)
File "/usr/lib/calibre/calibre/gui2/device.py", line 340, in _books
cardalist = self.device.books(oncard='carda')
File "/usr/lib/calibre/calibre/devices/prs505/driver.py", line 199, in books
bl = USBMS.books(self, oncard=oncard, end_session=end_session)
File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 209, in books
for path, dirs, files in os.walk(ebook_dir):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 294, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/lib/python2.7/os.py", line 284, in walk
if isdir(join(top, name)):
File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 60: ordinal not in range(128)
Unfortunately this doesn't help me much further in solving the problem: position 60 where? what is s in os.stat(s)? Where does it come from?
But at least I'm able to access the data now and epub files can be copied between the two devices. If I copy a book from usb0 to usb1, then umount usb0, the copied book nicely shows up in calibre's 'device' books. I wouldn't call that elegant, though, and I am still puzzled as to why calibre doesn't show the books when both devices are mounted...
So, maybe no longer at square 1, but not much farther than square 2. Any suggestions about how to proceed from here would be appreciated.
Cheers,
Frank.
|