Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
63
rated 0 times [  63] [ 0]  / answers: 1 / hits: 258384  / 2 Years ago, wed, january 12, 2022, 11:26:55

I have a USB-stick (used as an installation medium). Now I need to install a driver from a restricted folder on that device). But how do I get the device path to my USB-stick (e.g. /dev/sda3 so I can mount it using the mount command?



I have read the answer to https://unix.stackexchange.com/questions/18925/how-to-mount-a-device-in-linux-beginners-confusion but fdisk -l shows nothing to me.


More From » usb

 Answers
4

First plug in your USB-Stick.

Then type:



lsblk


Your output should look something like this



NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 74,5G 0 part /
├─sda2 8:2 0 390,2G 0 part /home
├─sda3 8:3 0 1K 0 part
└─sda5 8:5 0 1G 0 part [SWAP]


Now you can use the size to determine which one is your usb stick . To mount it somewhere in your home folder for example just type:



mkdir ~/UsbStick
sudo mount /dev/PATH_TO_YOUR_STICK ~/UsbStick


obviously replacing PATH_TO_YOUR_STICK with the right /dev/sdX path and ~/UsbStick with the directory you created using the mkdir command


[#30612] Thursday, January 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bathtusain

Total Points: 380
Total Questions: 124
Total Answers: 111

Location: Trinidad and Tobago
Member since Sat, Apr 9, 2022
2 Years ago
;