View Single Post
Posts: 124 | Thanked: 105 times | Joined on Jul 2010
#30
Originally Posted by Estel View Post
@nman
Thanks for checking with root. As for not choosing "mass storage mode" you're of course right - yet, even if one choose to, it *still* works after executing
Code:
osso-usb-mass-storage-mode-enable.sh /dev/[encrypted-device]
MyDocs get just "replaced" on desktop by encrypted volume.
Hmm not on my device - I get error "already mounted" if I try that.

Originally Posted by Estel View Post
By the way, do you have any idea, how to properly modify osso-usb-mass-storage-enable.sh, to mount lun0 as read-only?
Try adding "ro=1" to the line "/sbin/modprobe g_file_storage stall=0 luns=2" This would affect both LUNS tho.

Originally Posted by Estel View Post
@NIN101
Unless good enough reason (with technical rationale) is provided, I'm not going to re-use Nokia way "because they know better". Anyway, on my device, vanilla osso-usb-mass-storage-enable.sh already set MMC for simultaneous access (that is, don't unmount it), I'm using it like that from the very beginning, and haven't run into *any* single issue.
It's not just Nokia way.... read warning on page below
(other good info on that site too)

http://www.linux-usb.org/gadget/file_storage.html
 

The Following User Says Thank You to nman For This Useful Post: