Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#71
no, i need multi partitions export in mass storage mode
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#72
Originally Posted by coderus View Post
no, i need multi partitions export in mass storage mode
Did you just try putting the other partition in the /etc/usb-moded/usb-moded.ini?

This feature shows as experimental in the kernel config.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#73
no, i just checked lsmod, there is no g_ether_multi module.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#74
Originally Posted by coderus View Post
no, i need multi partitions export in mass storage mode
Isnt that what you found here ?
http://talk.maemo.org/showthread.php?t=89420
 

The Following User Says Thank You to For This Useful Post:
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#75
It looks like you don't need g_ether_multi. This is for doing both networking and storage at the same time, and is experimental (at least in this kernel).

You don't need it anyway if you want multiple partitions. Just use a comma separated list of devices/files to export. I found that if you use a backing file, then it will be mounted loop.

I created two dd'd images and mkfs.vfat on them. Then added them to the /etc/usbmoded/usb-moded.ini file and it works.


Nokia N9 multiple file storage USB by brander snaxe, on Flickr

Code:
[mountpoints]
mount = /home/user/MyDocs/fs.fat.img,/home/user/MyDocs/fs.fat2.img
#mount = /dev/mmcblk0p1

#you can add more filesystems to the mount option, by making it a comma-seperated list.

[sync]
nofua = 1

[altmount]
mount = /home/user/alt
#mount = /home/user/MyDocs

[cdrom]
path =
timeout =
I was perusing the source here: https://gitorious.org/meego-middlewa...oded-modules.c

I'm sure that this is newer than what's in Harmattan, but provided some hints, nonetheless.

Last edited by jackburton; 2013-08-28 at 13:58.
 

The Following User Says Thank You to jackburton For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#76
hmm, thanks, i'll check it
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#77
Originally Posted by jackburton View Post
It looks like you don't need g_ether_multi.
http://talk.maemo.org/showthread.php?t=91158 - what about this?

My file looks like that. But Windows mounts only one partition.

Code:
[mountpoints]
mount = /dev/mmcblk0p1, /dev/mmcblk0p4

[sync]
nofua = 1

[altmount]
mount = /home/uset/MyDocs, /home/user/BackupMenu
#mount = /home/user/MyDocs

[cdrom]
path = /usr/share/aceso/aceso.iso
timeout = 1
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#78
Originally Posted by Ancelad View Post
http://talk.maemo.org/showthread.php?t=91158 - what about this?

My file looks like that. But Windows mounts only one partition.
  • What does diskmgmt.msc in Windows show?
  • What does fdisk -l show in Linux?

My hunch is that Windows is expecting to see a partition table, rather than raw partition information.
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#79
Originally Posted by jackburton View Post
  • What does diskmgmt.msc in Windows show?
  • What does fdisk -l show in Linux?

My hunch is that Windows is expecting to see a partition table, rather than raw partition information.
My fault - I'm using default openmode-kernel without modules. I'll flash your kernel

BTW - Linux mounts both of them.
 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#80
Originally Posted by Ancelad View Post
My fault - I'm using default openmode-kernel without modules. I'll flash your kernel

BTW - Linux mounts both of them.
Making the changes to /etc/usb-moded/usb-moded.ini should work on the stock kernel as well. I did not enable anything special for this in my config.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:37.