Hello,
I made a DD backup of my system running on a usb stick using the Openmediavault-Backup plugin.
Unfortunately I fail to restore the created backup to a second usb stick.
Similar to this this thread I successfully created and restored backups of the entire block device using the following method.
To backup:
dd if=/dev/sdb of=/mnt/backupcopy.iso bs=4MB
To restore:
dd if=/mnt/backupcopy.iso of=/dev/sdc bs=4MB
From what I understand the mbr and partition table are stored in the .grubparts backup file and can be restored with
dd if=backup-omv-09-Aug-2019_15-46-32.grubparts of=/dev/sdg bs=512 count=1
creating the mbr and partition table.
After running the above command, sudo fdisk -l /dev/sdg displays the following output:
GPT PMBR size mismatch (30031871 != 62517247) will be corrected by write.
Disk /dev/sdg: 29,83 GiB, 32008830976 bytes, 62517248 sectors
Disk model: USB Flash Drive
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: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdg1 1 62517247 62517247 29,8G ee GPT
Alles anzeigen
Which is different from my original system drive:
Disk /dev/sdb: 14.3 GiB, 15376318464 bytes, 30031872 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: 18B9940C-C079-429C-A4D0-DD4718044D06
Device Start End Sectors Size Type
/dev/sdb1 34 1050815 1050782 513.1M EFI System
/dev/sdb2 1050816 13982456 12931641 6.2G Linux filesystem
/dev/sdb3 13982457 30031838 16049382 7.7G Linux swap
Alles anzeigen
I tried to restore the system backup using
gunzip -c backup-omv-09-Aug-2019_15-46-32.dd.gz | sudo dd of=dev/sdg1 bs=1M
which crashes with the error
dd: failed to open 'dev/sdg1': No such file or directory
I would be grateful for any advice on how to restore the backup properly
Edit:
I am using OMV4.
Editing the thread label and tags results in the following error:
The server encountered an unresolvable problem, please try again later.
Exception ID: 93d04f09014b98263e88391a166c94ddd535d4c7