How to find the /dev node your USB flash drive is on

When you are told to use dd to write an image onto your USB flash drive, you
generally want to be sure you have the _right_ device, and don't
accidentally burn a 1MB image over the top of the first 1MB of your 1TB of
baby videos, for instance. That would be _bad_.

Approach OneCheck dmesg output

If you just now plugged in the USB flash drive, you should be able to look at
recent dmesg output and find the device.

If you know the /media/disk is your flash drive, and you see /dev/sdc1 or
/dev/sdc on that line, for example, then you know your flash drive is
/dev/sdc.

Approach ThreeWatch the /dev node come online

The very best way is to start without the drive plugged in, look at your
devices, and then plug it in and look again, to see what changed.

USB devices come up as SCSI devices on Linux (/dev/sd?). So do this:

$ ls /dev/sd?

You probably see something like this:

/dev/sda /dev/sdb /dev/sdc

Now insert the USB flash drive, wait about 10 seconds, and run the command
again until you see a change, like:

/dev/sda /dev/sdb /dev/sdc /dev/sdd

Unless your kid sister is behind the computer playing with the printer
cables you can be pretty secure in knowing that your flash drive is on
/dev/sdd in this case. You can always double-check with the methods above.