My openmediavault server's ssd disk died, and I replaced it with a new one (different brand, same capacity). Now I wanted to restore my last backup made with fsarchiver via the omv backup plugin, and I'm following this guide. After following the first 13 steps, I'm stuck with the last 2, where the critical things are done.
These were the partitions on my new ssd nvme disk before trying to restore (I had installed OMV on it):
Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 2048 486395903 486393856 231.9G 83 Linux
/dev/nvme0n1p2 486397950 488396799 1998850 976M 5 Extended
/dev/nvme0n1p5 486397952 488396799 1998848 976M 82 Linux swap / Solaris
After I ran the "restore grub and the partition table" step:
dd if=/mnt/array/Backup/omvbackup/backup-omv-30-ago-2021_03-00-01.grubparts of=/dev/nvme0n1
Now it looks like this:
Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 1 488397167 488397167 232.9G ee GPT
And when I try to restore the main partition:
fsarchiver restfs backup-omv-30-ago-2021_03-00-01.fsa id=0,dest=/dev/nvme0n1p1
I get the following error:
oper_restore.c#152,convert_argv_to_strdicos(): "/dev/nvme0n1p1" is not a valid block device
So I think I messed the partition table. Maybe the grubparts are not written to /dev/nvme0n1 but to other place? Before trying to restore the partition table I could see GRUB installed with:
dd bs=512 count=1 if=/dev/nvme0n1 2>/dev/null | strings
But I can't see that anymore.
Edit: sizes of the different backup files:
-rw-r--r-- 1 root users 818 *.blkid
-rw-r--r-- 1 root users 590 *.fdisk
-rw-r--r-- 1 root users 5226895118 *.fsa
-rw-r--r-- 1 root users 446 *.grub
-rw-r--r-- 1 root users 1408 *.grubparts
-rw-r--r-- 1 root users 1035 *.packages
grubparts
file? (In bytes.) Are there any other small files nearby?