After connecting the disk to the server, let’s see a list of all the disks and find the name of the desired one:
sudo fdisk -l
I’ll give an example of mounting NTFS partition of a disk in Ubuntu (since I had a disk partitioned into two partitions, drive C and D, then they were found in the system as /dev/sdb1 and /dev/sdb2, both mounted to the created directories):
sudo mkdir /newhdd1 sudo mount -t ntfs /dev/sdb1 /newhdd1 sudo mkdir /newhdd2 sudo mount -t ntfs /dev/sdb2 /newhdd2
Since before this disk was used in the Windows system, I had a mount error:
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/sdb1’: The operation is not allowed
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the ‘ro’ mount option.
In this case, you can mount the partition in read-only mode:
sudo mount -t ntfs -o ro /dev/sdb1 /newhdd1
Either fix the partitions with the command:
sudo ntfsfix /dev/sdb1 sudo ntfsfix /dev/sdb2
And after that, mount with full access:
sudo mount -t ntfs /dev/sdb1 /newhdd1 sudo mount -t ntfs /dev/sdb2 /newhdd2
You can unmount it like this:
sudo umount -t ntfs /dev/sdb1 /newhdd1 sudo umount -t ntfs /dev/sdb2 /newhdd2