To find out the device name assigned to a USB drive or USB stick, you can use lsblk command, which shows information about all available block devices.
The lsblk command gathers information about existing block devices from sysfs filesystem, and show them in a tree-like format. This command is useful to find out how different block devices (and partitions within each device) are mounted on Linux.
All you have to do is to run lsblk from the command line.
A USB drive is typically mounted under /media/XXXXX. Thus, look for "/media" in the mountpoint. The corresponding device name appears in the left most column. In this case, a USB drive is mapped to /dev/sdd. There are three partitions created in it (/dev/sdd1, /dev/sdd2, /dev/sdd5).
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.