Pi Zero as USB Mass storage / SMB - Raspberry Pi Forums


i have seen many posts using pi 0 usb gadget. looking bit.. more exotic. possible have pi 0 w usb gadget (for mass storage) , mount smb/cifs/nfs share inside of storage space. meaning... can make pi 0 usb redirect nas? need access few smb shares on nas. these not change, can configured once , never changed on pi zero. need pc in question see usb mass storage , not network drive.

few things before respond.

1. yes... need usb mass storage , not smb share pc.
2. no, purposes don't want access nas on ethernet / ethernet on usb
3. save me buying $300 qnap usb pc capabilities

forever grateful can confirm work , point me in right direction.

presmike

warning: entirely theoretical.

i've been thinking this.

understand it, usb mass storage gadget driver can use either file (e.g. /foo/bar) or block device (e.g. /dev/sda1) backing store. way can think of want find way of bridging share(s) 1 of these before passing gadget driver. not i've followed up.

also, driver expclitly warns against having write access both usb host (via gadget driver) , locally running linux due risk of corruption of backing store. goes on state safe way have accessable both sides (local linux , pc host) mount read on both ends.

ongoing project requring write access both sides (though not simultaneously) using block device backing store, settingup gadget "removable" using combination of hardware switch, mount , sysfs ensure store can accessed 1 side @ time. guess aproach won't suitable needs though.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'