To restore selected files from a secondary backup hard disk, you will need to connect the hard disk to your computer and mount it.
Connect the hard disk to your computer using a suitable interface, such as USB or SATA.
Determine the device name of the hard disk by running the lsblk
command. This will list all the block devices on your system, including the hard disk.
Create a mount point for the hard disk by running the following command:
sudo mkdir /mnt/backup
/dev/sda1
with the device name of the hard disk:sudo mount /dev/sda1 /mnt/backup
cd /mnt/backup
Use the ls
command to list the contents of the hard disk and locate the files you want to restore.
Copy the files you want to restore to the desired location on your system using the cp
command. For example, to restore a file file1.txt
to the current directory, you can use the following command:
cp file1.txt .
sudo umount /mnt/backup
Keep in mind that you will need to have appropriate permissions to access the files on the hard disk and to copy them to the desired location.