Raspberry Pi Zero作为读写大容量存储

问题描述

我正在尝试使用dwc2g_mass_storage(使用最后一个可用的Raspbian映像)将Raspberry Pi Zero设置为大容量存储。 我使用dd创建了数据存储文件,并使用mkdosfs使其成为FAT32 fs。 我找了很多东西。我花了一些时间来了解应该在/etc/modprobe.d/g_mass_storage.conf中传递选项 终于在ubuntu中看到了。我的问题是:它处于只读模式。

我尝试将ro选项设置为yn,而对行为没有任何影响。我更改了文件的权限(777),但没有任何改变。 这是我的/etc/modprobe.d/g_mass_storage.conf文件的当前内容:

options g_mass_storage file=/piusb.bin stall=0 removable=y ro=n

这是来自Ubuntu的dmesg的图片:

[Today and now]usb 1-1.2: new high-speed USB device number 28 using ehci-pci
[  +0,299994] usb 1-1.2: device descriptor read/64,error -71
[  +0,959969] usb 1-1.2: device descriptor read/64,187918] usb 1-1.2: new high-speed USB device number 29 using ehci-pci
[  +0,113925] usb 1-1.2: New USB device found,idVendor=0525,idProduct=a4a5
[  +0,000007] usb 1-1.2: New USB device strings: Mfr=3,Product=4,SerialNumber=0
[  +0,000004] usb 1-1.2: Product: Mass Storage Gadget
[  +0,000003] usb 1-1.2: Manufacturer: Linux 4.19.118+ with 20980000.usb
[  +0,001467] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  +0,000246] usb-storage 1-1.2:1.0: Quirks match for vid 0525 pid a4a5: 10000
[  +0,000283] scsi host9: usb-storage 1-1.2:1.0
[  +1,009528] scsi 9:0:0:0: Direct-Access     Linux    File-Stor Gadget 0419 PQ: 0 ANSI: 2
[  +0,001079] sd 9:0:0:0: Attached scsi generic sg5 type 0
[  +0,001699] sd 9:0:0:0: Power-on or device reset occurred
[  +0,001211] sd 9:0:0:0: [sde] 67108864 512-byte logical blocks: (34.4 GB/32.0 GiB)
[  +0,000672] sd 9:0:0:0: [sde] Write Protect is on
[  +0,000016] sd 9:0:0:0: [sde] Mode Sense: 0f 00 80 00
[  +0,000740] sd 9:0:0:0: [sde] Write cache: disabled,read cache: enabled,doesn't support DPO or FUA
[  +0,005478]  sde:
[  +0,002735] sd 9:0:0:0: [sde] Attached SCSI removable disk

如何进行读取/写入大容量存储?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...