KB 227031 - Adding a Secondary Drive to Linux

KB 227031 - Adding a Secondary Drive to Linux


In Windows, A secondary drive will simply show, up as Local Disk (D:), after initiation. This guide will cover how to achieve the same in any Linux Installation.

Create a mount folder

Usually, external drives are mounted inside the /mnt or /media folder. to create a folder or mount point, you can run:

sudo mkdir /mnt/salman

Mount the drive manually

Fist you need to find the drive you are looking to mount:

Run:

sudo fdisk -l

Or:

lsblk

to get a list of disks or block devices in the system, identify your drive and not down its path (usually /dev/sdX)

Now, you can run the following command to mount the drive:

sudo mount /dev/sdX /mnt/salman

this mounts the drive at the folder we created earlier, now you can access the drive until you shut down or remove the drive. to unmount you can use the umount command instead.

Auto-mount the drive at boot

Find the UUID of the partition

To get the UUID of desired partition, run:

sudo blkid

This would show a list of partitions with their labels and UUID. 

You can identify a partition by its Label. Or use lsblk to identify the partition by its size. Note down the UUID of desired partition.

Create an fstab entry

Open the fstab file in your preferred text editor:

sudo nano /etc/fstab

Add this line to the end:

UUID=<your_uuid> /mnt/salman ext4 defaults 0 0

Note: Make sure to replace the data with the right value for your situation. the elements are:

<UUID or Label>  <Mount point>  <File system type>  <Mount options>  <fs_freq>  <fs_passno>


    • Recent Articles

    • KB-630208 | How to use Find and Locate to search for files in Linux

      Purpose To provide Linux administrators and Field Engineers with guidance on using the find and locate utilities to efficiently search for files and directories within a Linux filesystem based on criteria such as name, type, size, timestamps, ...
    • KB-630164 | How to use rsync to Synchronize Files

      Purpose To provide a clear and practical procedure for using the rsync utility to synchronize files and directories between local systems and remote hosts, including push and pull operations, while preserving file attributes and optimizing data ...
    • KB-630107 | How to create a Linux swap file

      Purpose To provide Field Engineers and Linux administrators with a standardized procedure for creating, configuring, and validating a Linux swap file. This procedure helps ensure sufficient virtual memory is available when physical RAM is exhausted ...
    • MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims

      MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims MSI's standard warranty does not cover physical or accidental damage to an All-in-One (AIO) PC. If the damage is determined to be caused by external factors rather than a ...
    • KB 134833 - Troubleshooting NVSM Alert NV-CPU-XX – Unrecoverable CPU Internal Error

      Purpose This document provides a general troubleshooting procedure for the NVIDIA System Management (NVSM) alert NV-CPU-XX, which indicates that a CPU has reported an internal error. The article outlines how to verify whether the alert represents an ...
    • Popular Articles

    • CP Plus Camera and NVR Configuration

      NVR Configuration The CP Plus Pro Series of NVRs have been meticulously designed for providing you with upgraded performance and higher recording quality in your IP video surveillance solution. The robust processor that has been inculcated in this ...
    • KB 775235 - Kerberos Authentication – Overview

      What is Kerberos? Kerberos is a secure authentication method used in our Active Directory (AD) environment (mbuzztech.com). It allows users to: Access multiple systems without re-entering passwords (Single Sign-On – SSO) Log in once Where We Use It ...
    • How to Remove and Reinstall NVIDIA Drivers on Ubuntu

      This article provides step by step guide to completely remove existing NVIDIA drivers and reinstall specific version of the NVIDIA driver on the Ubuntu system Prerequisites Administrative (sudo) access to the Ubuntu system. Internet access to ...
    • KB 692001 - Personal Computers and Servers - Classification and Point of Contact

      We can classify the computers that MBUZZ handles based on their form-factor as below: Tower Workstations, Desktops, Gaming PCs and SFF (Small form factor) PCs fall under this category. These are computers people would use on a desk and rarely move. ...
    • KB 298031 - M.2 SSD Tier List

      The sequential read and write speeds, which are usually the most advertised number, are not a proper benchmark of real-world performance or the quality of an SSD. This article categorizes and tiers SSDs based on factors like the type of NAND flash, ...