Quote:
Originally Posted by Royalblue
Sync Works like a charm. Thanks.
My Question: Is there a way to mount the virtual sd as drive when plugged in to pc. (Instead of the real sd card.)
|
Synchronized files can be found from the drive that is normally mounted when you connect the eReader to computer. The files are in .grive-sync/sd folder.
If you really want to mount virtual SD as a drive, I think it's not possible, but I'm not 100% sure. When user clicks "connect to computer" in eReader the firmware executes "/usr/local/Kobo/udev/usb" script. It uses this code to create the drives:
Code:
if [ -e /dev/mmcblk1p1 ]; then
LUNS=/dev/mmcblk0p3,/dev/mmcblk1p1
else
LUNS=/dev/mmcblk0p3
fi
...
/sbin/insmod /drivers/$PLATFORM/usb/gadget/g_file_storage.ko file=$LUNS stall=1 removable=1 $PARAMS
You notice that LUNS variable holds only devices, but virtual SD is not a device. It's just a bind mount from .grive-sync/sd to /mnt/sd. It looks like g_file_storage.ko file-parameter can be either a disk partition or a file image (
http://linlog.blogspot.fi/2011/02/us...age-gadget.html).