Mount external hard drive linux

Mounting an external hard drive in Linux is a simple process that requires a few steps. Here is a step-by-step guide on how to mount an external hard drive in Linux:

mount external hard drive linux

Step 1: Connect the External Hard Drive

Connect the external hard drive to your Linux computer using a USB cable. Once you have connected the drive, wait for it to be detected by the system.

Step 2: Identify the Drive

Open a terminal window and type the following command:

Copy codesudo fdisk -l

This command will show you all the disks that are currently connected to your computer, including the external hard drive. Identify the external hard drive from the list of disks. You can identify the drive by its size and file system.

Step 3: Create a Mount Point

A mount point is a directory on your Linux system where the external hard drive will be mounted. You need to create a mount point before you can mount the external hard drive. You can create a mount point anywhere on your system, but it is recommended to create it in the /media directory. To create a mount point, open a terminal window and type the following command:

bashCopy codesudo mkdir /media/external

This command will create a directory named external in the /media directory. You can change the name of the directory to anything you want.

Step 4: Mount the Drive

Now that you have created a mount point, you can mount the external hard drive to that directory. To do so, open a terminal window and type the following command:

bashCopy codesudo mount /dev/sdb1 /media/external

In this command, /dev/sdb1 is the name of the external hard drive that you identified in Step 2. If your external hard drive has a different name, replace /dev/sdb1 with the name of your drive. /media/external is the mount point that you created in Step 3.

Step 5: Access the Drive

Once the external hard drive is mounted, you can access it by navigating to the mount point directory (/media/external in this case) using the file manager or the terminal. You can copy files to and from the external hard drive just like you would with any other storage device.

Step 6: Unmount the Drive

When you are done using the external hard drive, you should unmount it before disconnecting it from your computer. To unmount the drive, open a terminal window and type the following command:

bashCopy codesudo umount /media/external

This command will unmount the external hard drive from the mount point directory. You can now safely disconnect the drive from your computer.

In conclusion, mounting an external hard drive in Linux is a straightforward process that requires only a few steps. By following the steps outlined in this guide, you can mount an external hard drive to your Linux system and access the files stored on the drive. Remember to unmount the drive before disconnecting it from your computer to prevent data loss.

Mount external hard drive linux

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top