one does not mount a dlrive in linux. One has to mount a partition on a logical drive.
This is a drive
/dev/sda
This is a partition
/dev/sda1
Notice the number ‘1’?
In order to get your copy of the files, you need to mount the correct partition.
First, fire up your terminal and do:
sudo fdisk -l
It will give you something like this:
luke@Mercury ~> sudo fdisk -l
[sudo] password for luke:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EF92B1B8-B518-DD45-9AB7-7FAF66333590
Device Start End Sectors Size Type
/dev/sda1 2048 1953507327 1953505280 931.5G Solaris /usr & Apple ZFS
/dev/sda9 1953507328 1953523711 16384 8M Solaris reserved 1
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 2AC4424E-359F-47C6-8B3E-D24B60C8E7CB
Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Microsoft basic data
Disk /dev/sdc: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AFDF09F6-9A56-4597-9D5E-A01634644C23
Device Start End Sectors Size Type
/dev/sdc1 2048 616447 614400 300M Windows recovery environment
/dev/sdc2 616448 821247 204800 100M EFI System
/dev/sdc3 821248 1083391 262144 128M Microsoft reserved
/dev/sdc4 1083392 500117503 499034112 238G Microsoft basic data
Disk /dev/sdd: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9B0B74DE-95AB-4FDF-94C8-8C3544CBF14D
Device Start End Sectors Size Type
/dev/sdd1 2048 1050623 1048576 512M EFI System
/dev/sdd2 1050624 500117503 499066880 238G Linux filesystem
Disk /dev/sde: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 00ADCEC9-F510-498D-BEC0-C5666A963A80
Notice that for me, its on /dev/sdc4
. The other one on /dev/sdb1
is just a mass storage for all my games; ignore it.
Once we’ve found the partition we need then we need to mount it to a location. We do that with:
sudo mount /dev/sdxy /media/hdd
Where x
is the drive letter, and y
is the partition number. /media/hdd
is the directory we are mounting it to.
Once its mounted, then we can copy the data.
cp -r /media/hdd/* /home/$USER/hdd
if it says that you don’t have permissions and it fails, just type
sudo !!
Which will re-do your last command as root, after you give the password.
Lastly, there will be a ~/hdd
directory in your user’s home directory with all your files.