Heyho, i have a tiny problem, i will use the rpi zero w as device to submit space on my nas as USB Stick, for test i used local file only.

I used this tutorial withouth the samba things https://www.raspberrypi.org/magpi/pi-zero-w-smart-usb-flash-drive/ and i added the option "removable=1"

the "Stick" works and i get access to files in this file but i always have the problem "its write protected" so i cant add files from windows explorer on it, not really good when u want is as Usb Stick

I use last raspian and did rpi-update



Try the following:

sudo modprobe g_mass_strorage file=/path/to/file removable=1 ro=0 stall=0

The important part is the ro flag which has to be set to 0.

  • strange, now its workingy thx, i was sure doing the same but in different param pos – StefanBD Feb 28 '18 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.