:: krowemoh

Thursday | 26 DEC 2024
Posts Links Other About Now

previous
next

Mounting a USB stick

2023-11-26
linux

I always forget how to mount a usb so I'm documenting it here:

List out all the storage devices:

lsblk

This will return something similar to the following. A usb will appear as sd{n}.

nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   100M  0 part /efi
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0   250G  0 part 
├─nvme0n1p4 259:4    0   509M  0 part 
└─nvme0n1p5 259:5    0   200G  0 part /

Once you find the usb device, we can mount it:

mount /dev/sd{n} /mnt/media