When you plug in a USB removable hard disk into an Ubuntu 20.04 server and it doesn't automatically mount or show up on the desktop, you can manually mount it using the following steps:
Step 1: Identify the Disk
First, you need to identify the disk and its partitions. You can do this using the lsblk or fdisk command.
sudo lsblk
or
sudo fdisk -l
Look for your 20TB disk in the output. It will typically show up as something like /dev/sdb, /dev/sdc, etc.
Step 2: Create a Mount Point
Create a directory where you want to mount the disk. For example:
sudo mkdir /mnt/usbdisk
Step 3: Mount the Disk
Assuming your disk is identified as /dev/sdb1 (replace with your actual device name), you can mount it using the following command:
sudo mount /dev/sdb1 /mnt/usbdisk
If the disk has multiple partitions, you’ll need to mount each partition separately. For example, if it has partitions /dev/sdb1 and /dev/sdb2, you would create separate mount points and mount them accordingly.
Step 4: Verify the Mount
You can verify that the disk is mounted by using the df -h command:
df -h
You should see your USB disk listed with its mount point.
Step 5: Automatic Mounting (Optional)
If you want the disk to mount automatically at boot, you’ll need to add an entry to the /etc/fstab file.
First, find the UUID of the disk:
sudo blkid /dev/sdb1
This will output something like:
/dev/sdb1: UUID="your-uuid-here" TYPE="ntfs" PARTUUID="some-partuuid"
Then, edit the /etc/fstab file:
sudo nano /etc/fstab
Add the following line at the end of the file (replace your-uuid-here with the actual UUID and /mnt/usbdisk with your mount point):
UUID=your-uuid-here /mnt/usbdisk ntfs defaults 0 2
Save and exit the editor. Now, the disk should mount automatically at boot.
Troubleshooting
If you encounter permission issues, you may need to adjust the permissions of the mount point:
sudo chown -R $USER:$USER /mnt/usbdisk
This will give your user ownership of the mounted directory.
That’s it! You should now be able to use your 20TB USB removable hard disk on your Ubuntu 20.04 server.