How to Mount a Drive in Linux: 2 Easy Methods (2024)

  • Categories
  • Computers and Electronics
  • Operating Systems
  • Linux

Download Article

Use the mount command or Ubuntu’s built-in Disk Utility to make disks available in Linux

Written byNicole Levine, MFA

Last Updated: July 31, 2024Fact Checked

Download Article

  • Using the Mount Command
  • |
  • Using Ubuntu Disks Utility
  • |
  • Tips

If you've connected a new SSD, HDD, or other external or internal disk type to your Linux system, you'll need to mount the drive to access its files. To mount a drive on Linux, you'll need to find the default name of the drive (e.g., /dev/sdc), create a directory for your mount point, and then use the "mount" command to mount that default drive name to the new directory. If you're using Ubuntu, you can also use the Disks utility to mount and unmount drives. Mounting a drive in Linux is simple, and this wikiHow will show you two ways to get the job done.

Things You Should Know

  • Use the command "lsblk -lf" to find the new drive's name (e.g., sdb or sdc).
  • Create a new directory for your new mount point. For example, sudo mkdir /media/myflashdrive.
  • To mount the drive to the directory, use the syntax mount /dev/<drivename> </new/directory>.

Method 1

Method 1 of 2:

Using the Mount Command

Download Article

  1. 1

    Open a Terminal window. If you want to mount an internal or external drive in Linux, you can do so easily from the command line. You can open a terminal on most Linux distributions by pressing Ctrl + Alt + T.

  2. 2

    Run the lsblk -lf command to find the path to the drive. When you run this command, you'll see an entry for each drive that's connected to your system—including any internal drives. Make note of the new drive's "NAME" column value (e.g., sdc or sdc1) and the file system type (e.g., ext4, vfat).

    • If the drive is already mounted, you will see a path under "MOUNTPOINTS." You can use cd to enter that directory to access the files on the drive.

    Advertisem*nt

  3. 3

    Create a new directory for the mount point. For example, use sudo mkdir /media/myflashdrive to create a directory called myflashdrive in /media.

  4. 4

    Use mount to mount the drive to the new directory. The syntax is mount /dev/drivename <new mount point>.

    • For example, if the drive is /dev/sdc1 and you want to mount the drive at /media/myflashdrive, use sudo mount /dev/sdc1 /media/myflashdrive.
  5. 5

    Mount the drive permanently (optional). If you don't want to have to mount the drive every time you sign into Linux, you can add an entry for it to /etc/fstab so it mounts automatically. This will be helpful if you've installed a new internal drive.[1] Don't do this for removable drives—if the drive isn't connected at boot time, your system will not boot at all.

    • Open /etc/fstab in a text editor like Vim or Nano.
    • Add a line to the file using this syntax:
      • /dev/sdc1 /media/myflashdrive ext4 defaults 0 0
      • Replace "ext4" with the file system type you found with lsblk -lf earlier.
      • Save and exit the file.
  6. 6

    Unmount a drive with umount. To unmount the drive, just run the command sudo umount /media/myflashdrive.

  7. Advertisem*nt

Method 2

Method 2 of 2:

Using Ubuntu Disks Utility

Download Article

  1. 1

    Open the Disks utility in Ubuntu. If you're running Ubuntu and want to use a graphical option to mount a drive, the Disks utility makes it easy. Just go to the Activities overview, type disks, and click Disks in the search results.[2]

  2. 2

    Select the new drive in the left panel. Details about the drive will appear.

  3. 3

    Click the Play button to mount the drive. If the drive is not mounted, you'll see a Play button (a sideways triangle). Clicking it will mount the drive.

    • If the drive is already mounted, you'll see a Stop button (a square).
  4. 4

    Click the gear icon and select Edit Mount Options…. This displays a window with several customization options.

  5. 5

    Choose your mounting preferences.

    • If you want this drive to mount automatically each time Ubuntu boots up, check the box next to "Mount at system startup." Keep in mind that you shouldn’t do this for a flash drive or SD card, as your system may not boot if the drive is not connected.
    • If you want to be able to access this drive in your file manager and other GUI apps, check the box next to "Show in user interface."
    • To change the mount point to something that's easier to remember and type, you can edit the mount point. Just make sure you're entering a directory that already exists (e.g., if you want to mount the drive at /mnt/media/mydrive, you will need to sudo mkdir /mnt/media/mydrive before entering that path.
    • Click OK when you're finished.
  6. 6

    To unmount a drive, select it, then click the Stop button. It's the square to the left of the gear button. This unmounts the drive.

  7. Advertisem*nt

Expert Q&A

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Tips

      • You can also permanently mount a drive in Linux using the UUID of the drive instead of the default mount point. Use the command sudo blkid to view each drive's UUID. Then, in /etc/fstab, use the syntax UUID<path to mount point><file system type> defaults 01.

        Thanks

        Helpful1Not Helpful0

      • The mount command and the Ubuntu Disks utility can both also mount ISO files.

        Thanks

        Helpful1Not Helpful0

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Name

      Please provide your name and last initial

      Submit

      Thanks for submitting a tip for review!

      Advertisem*nt

      You Might Also Like

      How toInstall Google Chrome Using Terminal on LinuxCan Linux Run .exe Files? How to Run Windows Software on Linux
      How toTake a Screenshot in LinuxHow to Tar a Directory and Subdirectories in LinuxHow toBecome Root in LinuxHow to Install and Use Wine on LinuxHow to Run an INSTALL.sh Script on Linux in 4 Easy StepsHow toAdd or Change the Default Gateway in LinuxHow toRun Files in LinuxFinding Linux Files: Complete Guide to Using Find CommandsEasy Debian Linux Installation TutorialHow toCheck the IP Address in LinuxHow toExecute .RUN Files in LinuxHow to Run Linus from a USB: Making a Bootable Stick and Installing

      Advertisem*nt

      About This Article

      How to Mount a Drive in Linux: 2 Easy Methods (31)

      Written by:

      Nicole Levine, MFA

      wikiHow Technology Writer

      This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 113,728 times.

      How helpful is this?

      Co-authors: 3

      Updated: July 31, 2024

      Views:113,728

      Categories: Linux

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 113,728 times.

      Is this article up to date?

      Advertisem*nt

      How to Mount a Drive in Linux: 2 Easy Methods (2024)

      FAQs

      How to Mount a Drive in Linux: 2 Easy Methods? ›

      To mount

      mount
      In computing, mount is a command in various operating systems. Before a user can access a file on a Unix-like machine, the file system on the device which contains the file needs to be mounted with the mount command. Frequently mount is used for SD card, USB storage, DVD and other removable storage devices.
      https://en.wikipedia.org › wiki › Mount_(Unix)
      a drive on Linux, you'll need to find the default name of the drive (e.g., /dev/sdc), create a directory for your mount point, and then use the "mount" command to mount that default drive name to the new directory. If you're using Ubuntu, you can also use the Disks utility to mount and unmount drives.

      How do I always mount a drive in Linux? ›

      On Linux instances, if you want to automatically mount exported file systems during an instance boot, you need to add the mount information in the /etc/fstab file. Log into the instance where you want the file system mounted. See Connecting to an Instance. Create a mount point, if one hasn't been created.

      How do I mount a storage path in Linux? ›

      Mount Volume
      1. Find the UUID of the storage device disk partition. ...
      2. Create a target folder to be the mount point of the storage device ( container-registry in this example) ...
      3. Mount the storage device partition /dev/sda1 at the mount point /mnt/container-registry. ...
      4. Verify that the storage device is mounted successfully.
      Jan 1, 2022

      How do I mount a USB drive in Linux command line? ›

      Type command “mkdir /media/usb-drive” to create a mount point named usb-drive. Of course, you can skip this step, if you want to mount the USB drive under an existing empty directory. Type command “mount /dev/sdb1 /media/usb-drive/” to mount the USB drive /dev/sdb1 under the directory usb-drive.

      How do I mount a drive? ›

      In the search box on the taskbar, enter Computer Management, and select Disk Management. Choose the partition or volume that has the folder you want to mount the drive. Go to Action > All Tasks > Change Drive Letter and Paths, then choose Add. Select Mount in the following empty NTFS folder option.

      Why do you mount drives in Linux? ›

      Mount points in Unix, Linux and macOS

      The mount command is used to make a device or file system accessible to the system, and then to connect its root directory to a mount point on the local file system.

      How to mount a network drive in Linux command-line? ›

      Mounting a Shared Folder on a Linux Computer
      1. Open a terminal with root privileges.
      2. Run the following command: mount <NAS Ethernet Interface IP>:/share/<Shared Folder Name> <Directory to Mount> Tip: ...
      3. Specify your NAS username and password.

      How do I mount a local directory in Linux? ›

      Mounting a File System on Linux, Red Hat, or CentOS
      1. Log into the instance where you want to mount the file system. ...
      2. Install the NFS client using this command: sudo yum install nfs-utils.
      3. Create a directory that will be used as the mount point. ...
      4. Mount the file system. ...
      5. View the mounted file system.
      Nov 21, 2023

      How to mount USB driver in Linux? ›

      How to mount usb drive in a linux system
      1. Step 1: Plug-in USB drive to your PC.
      2. Step 2 – Detecting USB Drive. After you plug in your USB device to your Linux system USB port, It will add new block device into /dev/ directory. ...
      3. Step 3 – Creating Mount Point. ...
      4. Step 4 – Delete a Directory in USB. ...
      5. Step 5 – Formatting the USB.
      Nov 1, 2023

      How to mount NTFS drives Linux? ›

      Mount NTFS Partition with Read-Only Permission
      1. Identify NTFS Partition. Before mounting an NTFS partition, identify it by using the parted command: sudo parted -l.
      2. Create Mount Point and Mount NTFS Partition. ...
      3. Update Package Repositories. ...
      4. Install Fuse and ntfs-3g. ...
      5. Mount NTFS Partition.
      Oct 8, 2020

      Top Articles
      The Benefits of Living in a Small Town - Parrys Estate Agents
      Types of Mergers and Acquisitions (M&amp;A) | Ansarada
      English Bulldog Puppies For Sale Under 1000 In Florida
      Katie Pavlich Bikini Photos
      Gamevault Agent
      Pieology Nutrition Calculator Mobile
      Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
      Hendersonville (Tennessee) – Travel guide at Wikivoyage
      Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
      Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
      Craigslist Dog Kennels For Sale
      Things To Do In Atlanta Tomorrow Night
      Non Sequitur
      Crossword Nexus Solver
      How To Cut Eelgrass Grounded
      Pac Man Deviantart
      Alexander Funeral Home Gallatin Obituaries
      Energy Healing Conference Utah
      Geometry Review Quiz 5 Answer Key
      Hobby Stores Near Me Now
      Icivics The Electoral Process Answer Key
      Allybearloves
      Bible Gateway passage: Revelation 3 - New Living Translation
      Yisd Home Access Center
      Pearson Correlation Coefficient
      Home
      Shadbase Get Out Of Jail
      Gina Wilson Angle Addition Postulate
      Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
      Walmart Pharmacy Near Me Open
      Marquette Gas Prices
      A Christmas Horse - Alison Senxation
      Ou Football Brainiacs
      Access a Shared Resource | Computing for Arts + Sciences
      Vera Bradley Factory Outlet Sunbury Products
      Pixel Combat Unblocked
      Movies - EPIC Theatres
      Cvs Sport Physicals
      Mercedes W204 Belt Diagram
      Mia Malkova Bio, Net Worth, Age & More - Magzica
      'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
      Teenbeautyfitness
      Where Can I Cash A Huntington National Bank Check
      Topos De Bolos Engraçados
      Sand Castle Parents Guide
      Gregory (Five Nights at Freddy's)
      Grand Valley State University Library Hours
      Hello – Cornerstone Chapel
      Stoughton Commuter Rail Schedule
      Nfsd Web Portal
      Selly Medaline
      Latest Posts
      Article information

      Author: Kareem Mueller DO

      Last Updated:

      Views: 6118

      Rating: 4.6 / 5 (46 voted)

      Reviews: 85% of readers found this page helpful

      Author information

      Name: Kareem Mueller DO

      Birthday: 1997-01-04

      Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

      Phone: +16704982844747

      Job: Corporate Administration Planner

      Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

      Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.