I am trying to recover data from my hard drive and then mount it, with the first part I have cleared up more or less, I will do it with ddrescue, with the second not so much ... I found a solution to mount, but I have some difficulties to understand it:
losetup -f # this will print the first available loop device ex:/dev/loop0
losetup /dev/loop0 /path/file.iso #associate loop0 with the specified file
mount /dev/loop0 /mnt/dir #It may be necessary specify the type (-t iso9660)
My problem is with last line:
mount /dev/loop0 /mnt/dir #It may be necessary specify the type (-t iso9660)
The question is with dir, what would it mean to say here, my iso image or the name that I would give it, or is it a file that the person does not say, I have to do it before, for example with sudo mkdir /mnt/dir
Please explain my mistake in easy words.
ls /mnt
shows there are no files or directories in/mnt
, you could use/mnt
. But, you can create/mnt/dir
or for example/mnt/recovery
instead if you like. Creating and using/mnt/dir
should not cause any problem. – sourcejedi Sep 30 '19 at 09:40