You are not logged in.

#1 2019-01-23 07:04:51

arifcatalyst
Member
Registered: 2018-05-29
Posts: 57

Timed out waiting for device using btrfs LUKS

After fresh installation using btrfs file system + LUKS. I can't boot in system with dropping in emergency shell.

I checked my FSTAB, it's good.

Here's the fstab file- [https://termbin.com/mc5f]

Here's the grub file - [https://termbin.com/pqlr]

This is my partition setup - [https://termbin.com/ot69]

Offline

#2 2019-01-23 12:30:58

arifcatalyst
Member
Registered: 2018-05-29
Posts: 57

Re: Timed out waiting for device using btrfs LUKS

Ok, I got this to boot but swap is disabled.

journalctl -b | grep swap                                                               [141]
Jan 23 10:45:45 arif kernel: zswap: loaded using pool lzo/zbud
Jan 23 10:45:45 arif systemd[1]: Found device Samsung_SSD_850_PRO_256GB cryptswap.
Jan 23 10:45:45 arif systemd[1]: Activating swap Swap Partition...
Jan 23 10:45:45 arif swapon[412]: swapon: /dev/sda2: read swap header failed
Jan 23 10:45:45 arif systemd[1]: dev-sda2.swap: Swap process exited, code=exited, status=255/EXCEPTION
Jan 23 10:45:45 arif systemd[1]: dev-sda2.swap: Failed with result 'exit-code'.
Jan 23 10:45:45 arif systemd[1]: Failed to activate swap Swap Partition.

Last edited by arifcatalyst (2019-01-23 12:31:43)

Offline

#3 2019-01-23 12:50:10

agrewal
Member
Registered: 2018-11-23
Posts: 20

Re: Timed out waiting for device using btrfs LUKS

Did you format the partition with mkswap?

Offline

#4 2019-01-23 13:32:38

arifcatalyst
Member
Registered: 2018-05-29
Posts: 57

Re: Timed out waiting for device using btrfs LUKS

This is my partition scheme- I want an encrypted swap-

This is what I did-

sgdisk --clear \
         --new=1:0:+550MiB --typecode=1:ef00 --change-name=1:EFI \
         --new=2:0:+8GiB   --typecode=2:8200 --change-name=2:cryptswap \
         --new=3:0:0       --typecode=3:8300 --change-name=3:cryptsystem \
           $DRIVE
# cryptsetup open --type plain --key-file /dev/urandom /dev/disk/by-partlabel/cryptswap swap
# mkswap -L swap /dev/mapper/swap
# swapon -L swap

Offline

#5 2019-01-24 14:30:10

agrewal
Member
Registered: 2018-11-23
Posts: 20

Re: Timed out waiting for device using btrfs LUKS

Does it work when you do it manually?


arifcatalyst wrote:
Jan 23 10:45:45 arif swapon[412]: swapon: /dev/sda2: read swap header failed

Shouldn't it say swapon /dev/mapper/swap? It looks like it's trying to swap on the container.

Offline

Board footer

Powered by FluxBB