Get a list of the current drives that are mounted. It will be something like “/dev/disk2″. Notice the number at the end, this is the most important part. The current format of the usb drive does not matter as the dd command will erase any files on the disk.
If you are having issues with running a script because a process already has the port open, in this error example, it’s port 3000
Error: listen EADDRINUSE :::3000
We can create a bash script and execute it passing in the first parameter as the port.