![]() |
2013-07-04
, 20:24
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#2
|
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2013-07-04
, 20:33
|
Posts: 23 |
Thanked: 23 times |
Joined on Jul 2012
|
#3
|
![]() |
2013-07-04
, 21:02
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#4
|
![]() |
2013-07-05
, 11:25
|
Posts: 46 |
Thanked: 285 times |
Joined on Dec 2005
|
#5
|
On the N9, is there a way to get the system (usb-moded ?) to export the partition read-only.
I suspect usb-moded doesn't support this, but would there be other ways ? Any ideas ?
The Following 4 Users Say Thank You to Philippe For This Useful Post: | ||
![]() |
2013-07-05
, 19:12
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#6
|
usb_moded does support thatIt uses /etc/modprobe.d/meego.conf for module loading parameters (standard linux module loading behaviour).
So find in there the options line for g_file_storage and add ro=1
sed -i s/g_file_storage/'g_file_storage ro=1'/ /etc/modprobe.d/meego.conf
sed -i s/'g_file_storage ro=1'/g_file_storage/ /etc/modprobe.d/meego.conf
![]() |
2013-07-05
, 19:20
|
Posts: 23 |
Thanked: 23 times |
Joined on Jul 2012
|
#7
|
![]() |
2013-07-05
, 19:47
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#8
|
![]() |
2013-07-05
, 20:41
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#9
|
![]() |
2013-07-09
, 11:34
|
Posts: 46 |
Thanked: 285 times |
Joined on Dec 2005
|
#10
|
Hey Philippe,
big Thank You.
That works!
This is really "standard linux behaviour"? (seems I need to lear a lot more coming/staying from/on maemo)
The Following User Says Thank You to Philippe For This Useful Post: | ||
![]() |
Tags |
harmattan, mydocs, partition, read-only, usb-moded |
|
In the old days, USB-sticks had a physical read-only switch to accomplish exactly this ...
I suspect usb-moded doesn't support this, but would there be other ways ? Any ideas ?