You are not logged in.

#1 2015-02-07 14:00:53

mamr
Member
Registered: 2008-08-16
Posts: 63

[SOLVED] grub-install error: cryptodisk

I have the same problem found in this thread. But since I don't know if I'm allowed to add my problem there, I created this new thread.

I have a BTRFS setup on my laptop. Since I read that Grub doesn't need a separate /boot partition anymore I wanted to switch to a simpler layout using only one partition (/dev/sda1) and BTRFS subvolumes for the rest. I tried to test the setup in VirtualBox first. This is what I did:

1. I created /dev/sda1 spanning the whole disk using fdisk.
2. I encrypted /dev/sda1 using cryptsetup, opened it (/dev/mapper/volume) and mounted it to /mnt.
3. I created the subvolumes @ and @home and mounted them to /mnt/root and /mnt/root/home respectively.
4. I followed the rest of Beginner's Guide (although I'm a long-time Arch user this is still the best document concerning installation IMHO) and substituted /mnt with /mnt/root where necessary.
5. After chrooting into the new system and configuring the initial ramdisk, I installed grub with pacman and tried this command: grub-install --target=i386-pc --recheck /dev/sda

I always get the error "grub-install:error: attempt to install to encrypted disk without cryptodisk enabled. Set 'GRUB_ENABLE_CRYPTODISK=1' in file '/etc/default/grub'"

The option is not available in /etc/default/grub. Although i tried it with or without adding this option, it doesn't work.

Does anyone know a solution? Is my desired setup even possible?

Last edited by mamr (2015-02-07 20:08:49)

Offline

#2 2015-02-07 14:52:40

leni1
Member
From: Kampala, Uganda
Registered: 2015-02-06
Posts: 4

Re: [SOLVED] grub-install error: cryptodisk

Hi mamr. Try out Pavan's blog post here. I think it may help with the problems you're facing


Quotes:
All These Things I've Done - The Killers

My aim in life: How to be a hacker

Offline

#3 2015-02-07 20:08:35

mamr
Member
Registered: 2008-08-16
Posts: 63

Re: [SOLVED] grub-install error: cryptodisk

That did the trick. Thanks!

Offline

Board footer

Powered by FluxBB