computer_science:linux:linux_mount_drive

Mounting a Drive in Linux

Make a folder to mount the drive to:

mkdir -p /mnt/data

Edit the fstab file

nano /etc/fstab

With your information

LABEL=storageprox /mnt/data ext4 defaults 0 2

Mount the new drive. If you get an error, comment out (#) the fstab entry

mount -a
  • computer_science/linux/linux_mount_drive.txt
  • Last modified: 2023/12/01 12:07
  • by 127.0.0.1