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"