Upon USB insert, record unique identifer sting, format drive to FAT32 and copy a file. Bash or Pytho
- by samsixty
Hello,
This is what I want to do,
insert USB flash drive.
mount it.
record uniquie identifer string to a file.
format the drive to FAT32.
copy a text file to the drive.
unmount it.
remove the drive.
30 times
The situation is this, I have bought 30 usb drives. I need to format each one to ensure they are clean, I need the unique string from each device. I need to put the same txt file on each one.
I am not great at writing scripts but can read and follow bash and python.
Any pointers would be appreciated.