Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

Troubleshooting • Re: Raspberry Pi Model 4 as USB Storage Device

$
0
0
Now I followed below mentioned steps with PenDrive connected to RPi Model 4 with 64 Bit BookWorm. Macbook is able to detect Pendrive through RPi and able to transfer files though MAC and see the same in RPi simultaneously. However in Win 11, it does not detect in my Computers however in Disk Management is shows it as Unallocated Volume.

How should get Win 11 detect my Pendrive through RPi ?

Code:

Install 64 bit BookWorm lite (Without Desktop) Raspbian OS on 8GB MSDsudo apt updatesudo apt upgradeConnect USB External Drive to the Raspberry PiCreate Partition for in USB External PendriveFormat USB External Pendrive:mkfs.vfat /dev/sda1Mount USB External PendriveEnable the USB Gadget Module:Edit the config.txt file to enable the USB gadget module:sudo nano vi /boot/firmware/config.txtdtoverlay=dwc2Edit the cmdline.txt file and add the below mentioned line after rootwait:sudo nano boot/firmware/cmdline.txtmodules-load=dwc2,g_mass_storage g_mass_storage.file=/dev/sda1 stall=0sudo reboot
@Linux1 : How do you connect the Macbook to Raspberry Pi ? I mean which cable are you using
Macbook----------------USB-A To USB-A-------- Raspberry Pi ?
or
Macbook----------------USB-C To USB-A-------- Raspberry Pi ?

Actually, In my case, DUT is getting power off, So your input is very valuable here, below is the topology

DUT----------------USB-A To USB-A-------- Raspberry Pi

Statistics: Posted by godeye — Wed Feb 21, 2024 10:14 am



Viewing all articles
Browse latest Browse all 5251

Trending Articles