restore backup after usb pendrive failure

  • hi there,

    i have a big issue: couple of years ago i installed omv on qnap dual drive nas, the os and boot where on a usb pendrive, i enabled caching and backup, the two hard drives are in raid mirroring.

    couple of days ago the nas stopped responding, very soon i found out that the usb pendrive is dead.

    luckily i have a backup on cloud, not so recent because it comes from the end of june but better than nothing.

    so, i have another 32gb usb pendrive, now i have to restore. i found this guide here and immediately i got confused, because i do not have the files listed.

    my backup consists of this stuff


    Code
    -rwxrwxrwx 1 user user  543 Jun 29 22:00 backup-omv-2023-06-30_00-00-01.blkid
    -rwxrwxrwx 1 user user  28G Jun 29 22:58 backup-omv-2023-06-30_00-00-01.dd
    -rwxrwxrwx 1 user user  13G Jun 29 22:58 backup-omv-2023-06-30_00-00-01.dd.gz
    -rwxrwxrwx 1 user user  531 Jun 29 22:00 backup-omv-2023-06-30_00-00-01.fdisk
    -rwxrwxrwx 1 user user  446 Jun 29 22:00 backup-omv-2023-06-30_00-00-01.grub
    -rwxrwxrwx 1 user user  512 Jun 29 22:00 backup-omv-2023-06-30_00-00-01.grubparts
    -rwxrwxrwx 1 user user  929 Jun 29 22:00 backup-omv-2023-06-30_00-00-01.packages

    the .dd file is the unzipped version of the .gz file.


    now... i am very scared that i am going to screw up the content of the hard drives, so i need someone to help me step by step.

    pliiiiiiiiiiiiiiiiiz :*


    thanks in advance

    • Offizieller Beitrag

    Disconnect the data drives, so that you don't install on them by mistake.

    Then do a fresh install.

    Then use this process to restore your backup to the root partition.

  • thank you for the quick reply!


    i already tried to disconnect the hard drives, restored the openmediavault iso files on the usb pendrive with


    Code
    dd bs=4M if=/home/user/Downloads/openmediavault_6.5.0-amd64.iso of=/dev/sdc status=progress oflag=sync 


    booted the pendrive and tried to install. at some point i got this where it complained that the partition had been updated and the kernel was unaware of it and suggested to reboot, after reboot the drive did not work anymore and i found myself with a blinking cursor.

    • Offizieller Beitrag

    i think i understood the issue.. i need a second usb drive to install openmediavault to, it can-t be installed on the same one

    Correct.


    omv6:new_user_guide [omv-extras.org]


    openmediavault 6.x documentation — openmediavault 6.x.y documentation

  • Still swamped!


    I managed to install OMV from iso image on the new USB pendrive and it worked fine.


    Then, according to the instructions you pointed me


    Zitat
    Figure out what your OS drive root partiton is. Don't get this wrong! - example: /dev/sda1Restore the files - example gunzip -c /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.dd.gz | dd of=/dev/sda1 bs=1M status=progressreboot


    so from this


    and the fact the USB drive is 32GB I thought the root partition is sdc1, so i launched


    Code
    dd if=./dd\ backup/backup-omv-2023-06-30_00-00-01.dd of=/dev/sdc1 status=progress oflag=sync bs=4M


    then put back the drive in the usb port of the nas... I am stuck on a screen with GRUB written on it and a blinking cursor... what am i doing wrong?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!