lsblk
Step-by-step guide to mount and explore contents from a USB device listed via lsblk
lsblk
Output
You ran lsblk
and saw:
sdb 8:16 1 7.6G 0 disk
├─sdb1 8:17 1 200M 0 part
└─sdb2 8:18 1 7.4G 0 part
This shows your USB drive is /dev/sdb
with two partitions: /dev/sdb1
and /dev/sdb2
.
In terminal, create folders where the partitions will be mounted:
sudo mkdir -p /mnt/usb1
sudo mkdir -p /mnt/usb2
Now mount each partition to the corresponding directory:
sudo mount /dev/sdb1 /mnt/usb1
sudo mount /dev/sdb2 /mnt/usb2
Note: If the filesystem is not recognized (e.g., NTFS), you may need to install appropriate drivers like ntfs-3g
.
To explore the files:
ls /mnt/usb1
ls /mnt/usb2
To copy files to your home folder:
cp -r /mnt/usb1 ~/usb1_files
cp -r /mnt/usb2 ~/usb2_files
Always unmount to avoid corrupting data:
sudo umount /mnt/usb1
sudo umount /mnt/usb2
If using a desktop environment (like GNOME or KDE), inserting a USB will auto-mount it. You can then browse it via your file manager under /media
or /run/media
.