When installing OpenMediaVault via a USB stick you may run into an error. During the installation you are prompted to select the correct drive to install to (in my case /dev/sdb). Towards the end of the install, setup will attempt to install the bootloader to the installation media, which fails.
To fix this issue we need to chroot to the new installation, install the bootloader, then unmount. This is done at the end of the installation, just before rebooting.
- After the error, continue the installation so it can complete.
- When the message appears to restart the computer, press Alt+F2 to switch to a new console. Press enter to activate it.
- Type the following commands to mount the new OpenMediaVault installation and chroot to it:
mount /dev/sda1 /mnt/ mount -t proc none /mnt/proc mount -o bind /dev /mnt/dev mount -t sysfs sys /mnt/sys chroot /mnt/ /bin/bash
- Enter the following command to install the GRUB bootloader. Be sure to select the correct drive when prompted (in my case it was /dev/sda):
- Exit the chroot and unmount:
exit umount /mnt/sys umount /mnt/dev umount /mnt/proc umount /mnt
- Switch back to the install screen by pressing Alt+F1. Press enter to reboot. Remove the USB stick.
OpenMediaVault should now boot!