Dear all,
Dear auanasgheps ,
I bought two identical SanDisk 128 GB SSD for my OVM system now. I wanted to use the OMV backup plugin to create a backup of SSD1 and to restore it on SSD2. I used the option fsarchiver because it was recommended in the following link. I wanted to see, if I can restore an existing backup to a blank new drive but the drive, I got was not able to boot-up the system. The BIOS did not recognize the device as bootable. (Hint: My Intel N100 system supports UEFI.)
Link: [How-To] Restore OMV system backup made with openmediavault-backup plugin
Some steps described in the descriptions are not valid in the current version of OMV 7 anymore. So, I slightly adapted my procedure as follows:
Code
# Go to directory, where the backup is stored:
cd <path_to>/omvbackup
# Unmount partitions of the target SSD (if necessary):
sudo umount /dev/sdX1
# Delete existing partition table:
sudo wipefs -a /dev/sdb
# (I have a "virgin" disk now.)
# Restore old partition table to the new disk:
sudo sfdisk /dev/sdX < backup-omv-2024-09-07_10-30-35_2.sfdisk
# Restore system drive:
dd if=backup-omv-2024-09-07_10-30-35.grubparts of=/dev/sdX bs=512
# Unpack UEFI partition:
zstd -d backup-omv-2024-09-07_10-30-35.espdd.zst
# Restore UEFI partition:
dd if=backup-omv-2024-09-07_10-30-35.espdd of=/dev/sdX1 bs=512
# Restore system partition:
fsarchiver restfs backup-omv-2024-09-07_10-30-35.fsa id=0,dest=/dev/sdX2 -v
# Optional: If you want to mount both disks in one system, they should not have the same UUID. You can change it to a random new ID as follows:
sudo e2fsck -f /dev/sdb2
sudo tune2fs -U random /dev/sdb2
# Check the UUID of all disk:
lsblk -f
# Delete unpacked file:
rm backup-omv-2024-09-07_10-30-35.espdd
Display More
Weniger anzeigen
These are the steps I have done. No step caused any error message. I just wonder why I don't need to restore any data on partition sdX3.
When I now reboot the system it does not start. Does anybody have any idea what went wrong?
Thank you and regards,
Mic.