Hallo,
ich habe vor einigen Jahren ein Festplattenbackup eines Laptops mit DD erstellt. Das Backup habe ich gzip komprimiert und aufbewahrt. Jetzt habe ich das Backup versucht wieder einzubinden, allerdings bekomme ich den Fehler:
mount: /mnt/bak: can't read superblock on /dev/loop
Ich habe zuerst das img.gz file mit gunzip entpackt. Dann habe ich einen neuen Ordner names "bak" erstellt. Danach habe ich versucht, das file zu mounten:
sudo mount /pfad/zu/mein-image.img ./bak
und die obige Fehlermeldung erhalten.
Die Umgebung ist die Folgene: Das zu mountende Image liegt auf einer externen Festplatte, die an einem Mac angeschlossen ist. Auf dem Mac läuft eine Virtualbox mit Ubuntu Budgie. Der Ordner des images ist per Virtualbox shared folders in Ubuntu Budgie eingebunden. Ich gehe aktuell nicht davon aus, dass das Setup zu problemen geführt hat. (aber eventuell habt ihr bessere Vorschläge)
Als Anleitung hatte ich mir damals folgendes mit abgespeichert, allerdings komme ich gar nicht zu den relevanten schritten.
Mounting a compressed full disk image This requires you to use a package called kpartx. kpartx allows you to mount individual partitions in a full disk image. sudo apt-get install kpartx First, mount your squashed partition that contains the full disk image mkdir compressed_image sudo mount squash.img compressed_image Now you need to create devices for each of the partitions in the full disk image: sudo kpartx -a compressed_image/sda_backup.img This will create devices for the partitions in the full disk image at /dev/mapper/loopNpP where N is the number assigned for the loopback device, and P is the partition number. For example: /dev/mapper/loop0p1. Now you have a way to mount the individual partitions in the full disk image: mkdir fulldisk_part1 sudo mount /dev/mapper/loop0p1 fulldisk_part1
Vielen Dank für eure hilfe!