For the future, I recommend that you study
https://forums.mageia.org/en/viewtopic.php?f=41&t=5957this thread and implement the backup system it describes. This will keep your data safe, in a fashion that is independent of the size of the disk on which that data resides, and restores are dead simple.
To deal with your current situation, you need to open those images you created with dd. Exactly HOW you open them depends on exactly how you took them. It would be helpful if you could provide that information (the exact dd command you used).
Assuming, for the moment, that you took those images as partition images, then the following should work.
Attach the drive containing the dd image, then mount it to some mountpoint:
- Code: Select all
mount -o loop -t ext4 /path/to/myddimage.iso /path/to/mymountpoint
This, of course, presumes that the filesystem on the dd image is ext4. Modify as necessary.
If this worked, then you can cd into mymountpoint and directly access all the files that are there.
Now, IF you took this information as a complete disk image, the problem is somewhat more complicated. In this event, proceed as follows:
First, find the partition in the image you wish to mount:
- Code: Select all
parted myddimage.iso unit b print
Then assign it to a loop device:
- Code: Select all
losetup -o<starting byte of partition from previous command> /dev/loopN myddimage.iso
where the N in loopN is a number from 1 to 8 (typically) representing an unused loop device that you intend to use for this.
Then, mount the partition:
- Code: Select all
mount /dev/loopN /path/to/mymountpoint
You may now cd into mymountpoint and see your data.
Later, unmount this guy like this:
- Code: Select all
umount mymountpoint
losetup -d /dev/loopN