We have moved to a new Sailfish OS Forum. Please start new discussions there.
9

[Suggestion] usb storage mode ... for exporting filesystem images

asked 2014-10-08 17:42:49 +0200

mleiner gravatar image

First: I'm not talking about exporting internal filesystems by usb storage mode. MTP is fine for that.

But I'd love to export .iso-Files and usb-filesystem images via usb storage mode. It'd be nice to be able to have a copy of sysrescuecd at hand without carrying around another usb key or cdrom/dvd.

AFAIK it seems that the required kernel modules aren't provided (anymore?).

edit retag flag offensive close delete

Comments

I like the sysrescuecd idea. Noted. :-)

dthierbach ( 2014-10-08 18:30:59 +0200 )edit

This is a good idea, for instance to view photos or videos on a TV with USB input, by exporting a specific subpart of the file structure as RO usb mass storage. Very nice, thanks and thanks @Philippe De Swert for the solution ! I'll look at it.

Damien Caliste ( 2014-10-09 13:10:17 +0200 )edit

2 Answers

Sort by » oldest newest most voted
7

answered 2014-10-08 18:12:16 +0200

Philippe De Swert gravatar image

updated 2014-10-09 12:02:58 +0200

Yoiu can easily do that yourself. See the usb-moded documentation https://github.com/nemomobile/usb-moded/blob/master/docs/usb_moded-doc.txt. All the bits and pieces are there. Jolla uses the android gadget, so look at the config files with android in the name to get an idea of how to do things. Feel free to ask more questions, I'll try to answer them as good as I can.

Also check the answer here to have a better idea of what is possible for example: https://together.jolla.com/question/10002/alternative-to-mtp-usb-mass-storage/

edit flag offensive delete publish link more

Comments

1

that is great, It should be possible to write an app that lets you select an ISO to export, so that when you could boot a PC from that ISO! Nice

dsilveira ( 2014-10-08 19:14:09 +0200 )edit
1

@dsilveira: If you would do it like that, it is best to use a symlink in the usb-moded configuration (when installed) and then change what it points to. Otherwise it will require reboots/usb-moded restarts

Philippe De Swert ( 2014-10-08 20:33:15 +0200 )edit
2

answered 2014-12-01 03:54:05 +0200

mleiner gravatar image

I've been playing around a little with the idea and also found ISOdrive in warehouse which gets me near the results.

Unfortunately, the included f_mass_storage emulation is too old and does not support setting /sys/class/android_usb/android0/f_mass_storage/lun/cdrom to 1.

Can the kernel be updated to include that feature? :)

Background: Without that sysfs node, we will export the .iso as a removable usb stick, not actually a cdrom drive. This works with some, but not with all .iso files. (hybrid mode only)

edit flag offensive delete publish link more

Comments

Jolla Phone kernel source is available, so this might be just a matter of recompiling. :-)

smoku ( 2014-12-01 11:30:54 +0200 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2014-10-08 17:42:49 +0200

Seen: 593 times

Last updated: Dec 01 '14