Can't boot Arch Linux after installation with dm-crypt whole system encryption (BIOS)
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
So I'm installing a new Arch with the document here for a whole system encryption.
The first part I get confused is here which the document wrote:
Warning: GRUB does not support LUKS2. Do not use LUKS2 on partitions that GRUB needs to access.
But in the later part of the section, it told me to run the command cryptsetup luksFormat /dev/sda3
. But as I run it it ask for a password but doesn't it said GRUB doesn't support LUKS2?
Later I enter the password, go down through to grub installing which I run grub-mkconfig -o /boot/grub/grub.cfg
and it said filaed to connect lvmetad
, but since it's warning I ignored it.
Later I go through the process till the last part without getting any error.
But then I exit arch-chroot
and reboot but it can't boot, it skipped to next OS (which is Windows 10 in my case), why? Which part did I get wrong? How to solve it?
P.S. Here is a table of my disk with command lsblk
NAME SIZE TYPE MOUNTPOINT
sda 114.6G disk
sda1 4G part
sda2 4G part /mnt/boot/efi
sda3 16G part
cryptboot 16G crypt /mnt/boot
sda4 90.6G part
lvm 90.6G crypt
AALEvol-swap 8G lvm [SWAP]
AALEvol-root 82.6G lvm /mnt
arch-linux dm-crypt whole-drive-encryption
add a comment |Â
up vote
0
down vote
favorite
So I'm installing a new Arch with the document here for a whole system encryption.
The first part I get confused is here which the document wrote:
Warning: GRUB does not support LUKS2. Do not use LUKS2 on partitions that GRUB needs to access.
But in the later part of the section, it told me to run the command cryptsetup luksFormat /dev/sda3
. But as I run it it ask for a password but doesn't it said GRUB doesn't support LUKS2?
Later I enter the password, go down through to grub installing which I run grub-mkconfig -o /boot/grub/grub.cfg
and it said filaed to connect lvmetad
, but since it's warning I ignored it.
Later I go through the process till the last part without getting any error.
But then I exit arch-chroot
and reboot but it can't boot, it skipped to next OS (which is Windows 10 in my case), why? Which part did I get wrong? How to solve it?
P.S. Here is a table of my disk with command lsblk
NAME SIZE TYPE MOUNTPOINT
sda 114.6G disk
sda1 4G part
sda2 4G part /mnt/boot/efi
sda3 16G part
cryptboot 16G crypt /mnt/boot
sda4 90.6G part
lvm 90.6G crypt
AALEvol-swap 8G lvm [SWAP]
AALEvol-root 82.6G lvm /mnt
arch-linux dm-crypt whole-drive-encryption
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
And why do you have an ESP (/boot/efi
) is this is a BIOS install?
â jasonwryan
Feb 18 at 4:08
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I'm installing a new Arch with the document here for a whole system encryption.
The first part I get confused is here which the document wrote:
Warning: GRUB does not support LUKS2. Do not use LUKS2 on partitions that GRUB needs to access.
But in the later part of the section, it told me to run the command cryptsetup luksFormat /dev/sda3
. But as I run it it ask for a password but doesn't it said GRUB doesn't support LUKS2?
Later I enter the password, go down through to grub installing which I run grub-mkconfig -o /boot/grub/grub.cfg
and it said filaed to connect lvmetad
, but since it's warning I ignored it.
Later I go through the process till the last part without getting any error.
But then I exit arch-chroot
and reboot but it can't boot, it skipped to next OS (which is Windows 10 in my case), why? Which part did I get wrong? How to solve it?
P.S. Here is a table of my disk with command lsblk
NAME SIZE TYPE MOUNTPOINT
sda 114.6G disk
sda1 4G part
sda2 4G part /mnt/boot/efi
sda3 16G part
cryptboot 16G crypt /mnt/boot
sda4 90.6G part
lvm 90.6G crypt
AALEvol-swap 8G lvm [SWAP]
AALEvol-root 82.6G lvm /mnt
arch-linux dm-crypt whole-drive-encryption
So I'm installing a new Arch with the document here for a whole system encryption.
The first part I get confused is here which the document wrote:
Warning: GRUB does not support LUKS2. Do not use LUKS2 on partitions that GRUB needs to access.
But in the later part of the section, it told me to run the command cryptsetup luksFormat /dev/sda3
. But as I run it it ask for a password but doesn't it said GRUB doesn't support LUKS2?
Later I enter the password, go down through to grub installing which I run grub-mkconfig -o /boot/grub/grub.cfg
and it said filaed to connect lvmetad
, but since it's warning I ignored it.
Later I go through the process till the last part without getting any error.
But then I exit arch-chroot
and reboot but it can't boot, it skipped to next OS (which is Windows 10 in my case), why? Which part did I get wrong? How to solve it?
P.S. Here is a table of my disk with command lsblk
NAME SIZE TYPE MOUNTPOINT
sda 114.6G disk
sda1 4G part
sda2 4G part /mnt/boot/efi
sda3 16G part
cryptboot 16G crypt /mnt/boot
sda4 90.6G part
lvm 90.6G crypt
AALEvol-swap 8G lvm [SWAP]
AALEvol-root 82.6G lvm /mnt
arch-linux dm-crypt whole-drive-encryption
asked Feb 18 at 3:24
Andrew-at-TW
6818
6818
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
And why do you have an ESP (/boot/efi
) is this is a BIOS install?
â jasonwryan
Feb 18 at 4:08
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25
add a comment |Â
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
And why do you have an ESP (/boot/efi
) is this is a BIOS install?
â jasonwryan
Feb 18 at 4:08
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
And why do you have an ESP (
/boot/efi
) is this is a BIOS install?â jasonwryan
Feb 18 at 4:08
And why do you have an ESP (
/boot/efi
) is this is a BIOS install?â jasonwryan
Feb 18 at 4:08
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Create a partition on beginning of your Hard Disk Drive, it's size should be between 600 MB and 1GB, and in Linux setup mark that partition as /boot partition. You shouldn't encrypt the boot partition as none of your potentially sensitive data will be written to it.
If you want to wipe the entire Hard Disk Drive before re-partitioning, i suggest you use fdisk -l | more to list all your Hard Disk Drives and all partitions on them, then when you find the drive do
dd if=/dev/urandom of=/dev/sd(X) where X is your HDD letter.
Then create other partitions which will be encrypted: 1./SWAP, 2./ROOT and 3. /HOME (optional).
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
 |Â
show 5 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Create a partition on beginning of your Hard Disk Drive, it's size should be between 600 MB and 1GB, and in Linux setup mark that partition as /boot partition. You shouldn't encrypt the boot partition as none of your potentially sensitive data will be written to it.
If you want to wipe the entire Hard Disk Drive before re-partitioning, i suggest you use fdisk -l | more to list all your Hard Disk Drives and all partitions on them, then when you find the drive do
dd if=/dev/urandom of=/dev/sd(X) where X is your HDD letter.
Then create other partitions which will be encrypted: 1./SWAP, 2./ROOT and 3. /HOME (optional).
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
 |Â
show 5 more comments
up vote
0
down vote
accepted
Create a partition on beginning of your Hard Disk Drive, it's size should be between 600 MB and 1GB, and in Linux setup mark that partition as /boot partition. You shouldn't encrypt the boot partition as none of your potentially sensitive data will be written to it.
If you want to wipe the entire Hard Disk Drive before re-partitioning, i suggest you use fdisk -l | more to list all your Hard Disk Drives and all partitions on them, then when you find the drive do
dd if=/dev/urandom of=/dev/sd(X) where X is your HDD letter.
Then create other partitions which will be encrypted: 1./SWAP, 2./ROOT and 3. /HOME (optional).
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
 |Â
show 5 more comments
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Create a partition on beginning of your Hard Disk Drive, it's size should be between 600 MB and 1GB, and in Linux setup mark that partition as /boot partition. You shouldn't encrypt the boot partition as none of your potentially sensitive data will be written to it.
If you want to wipe the entire Hard Disk Drive before re-partitioning, i suggest you use fdisk -l | more to list all your Hard Disk Drives and all partitions on them, then when you find the drive do
dd if=/dev/urandom of=/dev/sd(X) where X is your HDD letter.
Then create other partitions which will be encrypted: 1./SWAP, 2./ROOT and 3. /HOME (optional).
Create a partition on beginning of your Hard Disk Drive, it's size should be between 600 MB and 1GB, and in Linux setup mark that partition as /boot partition. You shouldn't encrypt the boot partition as none of your potentially sensitive data will be written to it.
If you want to wipe the entire Hard Disk Drive before re-partitioning, i suggest you use fdisk -l | more to list all your Hard Disk Drives and all partitions on them, then when you find the drive do
dd if=/dev/urandom of=/dev/sd(X) where X is your HDD letter.
Then create other partitions which will be encrypted: 1./SWAP, 2./ROOT and 3. /HOME (optional).
answered Feb 18 at 3:42
Fido-X
1225
1225
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
 |Â
show 5 more comments
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
I think mine sda1 is use as boot (unencrypted) according to the documentation (/Dev/sdaW) but don't know why it isn't used in the documentation?
â Andrew-at-TW
Feb 18 at 3:47
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Because people can but don't have to install Linux on /dev/sda1 (first HDD and first partition on it). It can be installed on any HDD and any partition.
â Fido-X
Feb 18 at 3:55
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Use fdisk -l | more to list all partitions, don't play around with "I think", you must be certain or you'll mess something up -- in computer world everything should be accurate.
â Fido-X
Feb 18 at 3:58
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
Here is the partition list
â Andrew-at-TW
Feb 18 at 4:03
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
But if you look back at the document preparing boot section it said create luks container at sda3 which should be mount at /boot/efi?
â Andrew-at-TW
Feb 18 at 4:05
 |Â
show 5 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424899%2fcant-boot-arch-linux-after-installation-with-dm-crypt-whole-system-encryption%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Did you add an entry for Arch in your grub config as per the wiki? Post the config.
â jasonwryan
Feb 18 at 3:33
And why do you have an ESP (
/boot/efi
) is this is a BIOS install?â jasonwryan
Feb 18 at 4:08
@jasonwryan First the document said it can run on UEFI and second in truly running on UEFI and third I install grub with x86_64-efi
â Andrew-at-TW
Feb 18 at 4:10
Of course Grub can work with UEFI: but your question title explicitly mentions BIOS (MBR).
â jasonwryan
Feb 18 at 5:11
@jasonwryan I'm just specifying way sine there is many section in the document
â Andrew-at-TW
Feb 18 at 7:25