after plug in a 20TB USB removable hard disk to ubuntu 20.04 server, the desktop shows…
- User
after plug in a 20TB USB removable hard disk to ubuntu 20.04 server, the desktop shows nothing. How can i mount or use the drive
Assistant
When you plug in a USB removable hard disk to an Ubuntu 20.04 server, the desktop environment may not automatically display or mount the drive, especially if the server is running in a headless mode (without a graphical user interface). However, you can still access and mount the drive manually using the command line. Below are the steps to identify, mount, and use the drive:
Step 1: Identify the Drive
-
List all block devices: Run the following command to list all connected storage devices:
lsblkThis will display a list of all block devices, including your USB hard disk. Look for a device with a size of approximately 20TB (e.g.,
/dev/sdX, whereXis a letter likea,b, etc.). -
Check detailed information: To get more details about the connected drives, use:
sudo fdisk -lThis will show partition tables and help you confirm which device corresponds to your USB hard disk.
-
Inspect system logs: You can also check the system logs to see if the drive was detected:
dmesg | tailLook for entries related to USB storage or the specific device name (e.g.,
/dev/sdX).
Step 2: Create a Mount Point
Once you have identified the device (e.g.,
/dev/sdX1for the first partition), create a directory where the drive will be mounted:sudo mkdir /mnt/usb_driveYou can replace
/mnt/usb_drivewith any desired directory path.
Step 3: Mount the Drive
Use the
mountcommand to mount the drive. For example:sudo mount /dev/sdX1 /mnt/usb_driveReplace
/dev/sdX1with the correct device name and/mnt/usb_drivewith the mount point you created.
Step 4: Verify the Mount
To confirm that the drive has been mounted successfully, run:
df -hThis will display a list of mounted file systems. Look for your USB drive in the output.
Step 5: Access the Drive
You can now access the contents of the drive at the mount point:
cd /mnt/usb_drive ls
Step 6: Unmount the Drive (Optional)
When you're done using the drive, unmount it safely using:
sudo umount /mnt/usb_drive
Troubleshooting
-
Filesystem Compatibility: If the drive uses a filesystem that Ubuntu does not support by default (e.g., NTFS or exFAT), you may need to install additional packages:
- For NTFS:
sudo apt update sudo apt install ntfs-3g - For exFAT:
sudo apt update sudo apt install exfat-fuse exfat-utils
- For NTFS:
-
Permissions Issue: If you encounter permission issues when accessing the drive, you can change ownership or permissions:
sudo chown -R $USER:$USER /mnt/usb_drive -
Automatic Mounting: To make the drive mount automatically on boot, add an entry to
/etc/fstab. For example:/dev/sdX1 /mnt/usb_drive ext4 defaults 0 0Replace
ext4with the appropriate filesystem type (e.g.,ntfs,exfat, etc.).
Conclusion
By following these steps, you should be able to identify, mount, and use your 20TB USB removable hard disk on your Ubuntu 20.04 server. If you encounter any specific errors during the process, please provide the error messages for further assistance.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.