Friday | 20 SEP 2024
[ previous ]
[ next ]

Mounting a USB stick

Title:
Date: 2023-11-26
Tags:  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