1

I want to get the location in /dev of a USB device connected to my machine.

Does anyone know how?

Zanna
  • 70,465

1 Answers1

4

If you want to known the drive name in the /dev/ folder, I normally

  • disconnect USB
  • in a terminal, type dmesg -w
  • insert USB

And the kernel will show some messages including the name of your device. Other options are

lsblk
sudo blkid
sudo fdisk -l

And you may want to check this to mount it. How to access a usb flash drive from the terminal?

Katu
  • 3,593
  • 26
  • 42
  • Microcontrollers and FPGA don't mount like USB flash drives, so the last line is sort of irrelevant to the question, but the answer overall is proper, hence +1 – Sergiy Kolodyazhnyy Mar 20 '19 at 05:09