Skip to content
TrySitePrice

Ubuntu: Mount The Drive From Command Line

Best/Tutorial

To mount a drive from the command line in Ubuntu, you can use the mount command. The basic syntax is:

mount   DEVICE MOUNTPOINT

Where DEVICE is the name of the device you want to mount, and MOUNTPOINT is the location where you want to mount the device.

For example, to mount a device located at /dev/sdb1 to the /mnt directory, you would run the following command:

sudo mount /dev/sdb1 /mnt

Note that you need to run this command as the root user or with sudo in order to have the necessary permissions to mount a device.

If the file system on the device is not recognized by Ubuntu, you may need to specify the file system type using the -t option. For example, to mount a device formatted with the ext4 file system:

sudo mount -t ext4 /dev/sdb1 /mnt

You can also use the df command to see a list of mounted file systems and their corresponding mount points.