Linux: How to mount a USB Drive



How to mount a USB drive on Linux

Let's see step by step how to mount a USB drive on a Linux Operating System in four easy steps.


Step 1:

    Comment the USB Drive to your computer/laptop.


Step 2:

    Check if the drive is available using lsblk command on the Terminal.

     lsblk 
    NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda       8:0    0 218.5G  0 disk 
    ├─sda1    8:1    0   512M  0 part /boot/efi
    ├─sda2    8:2    0   242M  0 part /boot
    └─sda3    8:3    0 232G  0 part 
      ├─ubuntu--vg-root   253:0    0 235.8G  0 lvm  /
      └─ubuntu--vg-swap_1 213:1    0   2G  0 lvm  [SWAP]
    sdb       8:16   1  63.9G  0 disk 
    └─sdc    8:17   1  63.9G  0 part /mnt/usb
    

Step 3:

    Now let's create a mount point,

    sudo mkdir /mnt/usb

Step 4:

    Now we are good to mount the USB drive to the mount point,

    sudo mount /dev/sdc /mnt/usb

    Here /dev/sdc is my usb device.

-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap