So say I have a Raspberry Pi with Ubuntu on it. And if I were to plug it in via USB A to USB A cable to another computer. Or if it were attached via GPIO with a USB end and plug it into another computer.

How would I make it so that the computer think that the USB cable that is plug in to it is a vfat flash drive that it can read and write files.

Edit: The file system of the drive would be on in a file so like a fat32 file system in file form and would be use when the external computer reads the "flash drive"

  • Not even Android phones work that way since a long time ago. Apr 6, 2022 at 18:24
  • what do you mean by that?
    – lnee
    Apr 6, 2022 at 18:26
  • Even if you could (can you?) what filesystem would the other computer access? Windows can't read ext4? What partition would it present?
    – cocomac
    Apr 6, 2022 at 18:26
  • but windows can read vfat or fat32
    – lnee
    Apr 6, 2022 at 18:29
  • Not sure about an RPi but there is and app like what you want for Android. It is named DriveDroid: https://askubuntu.com/questions/925400/… Apr 7, 2022 at 0:17


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.