Grub Repair

  • Recently there was a large set of updates which I installed in the shell. During that process a screen was presented saying I needed to select which drives I wanted to install Grub on and the list showed every drive in my system, 13 of them. I thought I selected the correct two drives to place Grub on, but it didn't work. My OMV 7 was bootable but when I attempt to boot my OMV6 install via the system BBS popup it boots OMV7.


    I tried installing Grub to the two OMV disks like this:


    Code
    grub-install /dev/sdn
    grub-install /dev/sdm

    But when I rebooted and selected the OMV6 disk, it booted OMV7.


    Does anyone know what the shell command is that presents the table of all disks and allows selecting which disks to put grub on?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Official Post

    grub is on the disks but grub might be booting from the wrong grub.cfg and/or the grub config is wrong. I would guess you need to boot to omv6 and run update-grub.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Somehow and I don't know how the filesystem UUIDs on both disks are the same and also all thru both grub.cfg files.


    I know when I changed this on my OMV6 disk after cloning it to update the clone to OMV7, but I may have restored the OMV6 disk from a backup that had the unchanged UUID.


    Simple enough to fix.


    Thanks for your help.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!