I've been tasked with building a floppy disk and USB flash drive formatter. I'm using a raspberry pi with a USB floppy drive connected. The device will be headless. My co-worker is writing the python required to interact with the GPIO pins on the board but I'm in charge of the bash script that will perform the formatting. Here's what I need to know: How do I format a USB drive that is plugged into a specific USB port? I don't think I want to rely on sda or sdb, I want to direct the command specifically to the USB port. Is this possible? The floppy drive is a USB drive. It shows up as /dev/sdc... can I use the same method for this drive? Also, the machine will be completely headless so I'm going to use the GPIO pins to light up a green LED when the format is complete. Does the format command return a value that I can use to trigger this?