You are not logged in.

#1 2017-06-24 18:37:01

daankata
Member
Registered: 2017-05-21
Posts: 47

[SOLVED]Cannot install GRUB on USB

Hello!
I have installed so far LVM on LUKS on /dev/sda1 (MBR), and a unencrypted ext2 boot partition (400MiB) on my USB flash drive at /dev/sdc1. I have mounted the flash drive to /mnt/boot as the following "mount /dev/sdc1 /mnt/boot". But when trying to install GRUB to the USB it shows this:

# grub-install --target=i386-pc --recheck --boot-directory=/mnt/boot /dev/sda1
Installing for i386-pc platform.
      WARNING: Failed to connect to lvmetad. Falling back to device scannning.
      WARNING: Failed to connect to lvmetad. Falling back to device scannning.
grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=y' in file '/etc/default/grub'.

Any ideas? Thank you! smile

Last edited by daankata (2017-06-25 19:32:36)

Offline

#2 2017-06-24 19:12:32

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 102
Website

Re: [SOLVED]Cannot install GRUB on USB

Hi,

if you want grub on the USB drive, you should install grub on the USB drive /dev/sdc (not on a partition). You tried to install it to /dev/sda1 ...

More info here: https://wiki.archlinux.org/index.php/GR … on_methods

Offline

Board footer

Powered by FluxBB