You are not logged in.

#1 2019-12-01 15:23:34

Registered: 2019-12-01
Posts: 3

Error device not found when finish installed

I try to install arch but when I finish it can't find the device. I need encrypted boot and use UEFI The commands are:

Partition 1 should be EFI System Partition of about 256MB (/dev/nvme0n1p1)
Partition 2 should be the boot partition of about 512MB (/dev/nvme0n1p2)
Partition 3 should be the root partition. Give it the rest of the free space (/dev/nvme0n1p3)

cryptdevice luksFormat -v -s 512 -h sha512 /dev/nvme0n1p3

cryptdevice open /dev/nvme0n1p3 cryptroot 

mkfs.vfat -n "EFI System Partition" /dev/nvme0n1p1
mkfs.ext4 -L boot /dev/nvme0n1p2
mkfs.ext 4 -L root /dev/mapper/cryptroot

mount /dev/mapper/cryptroot /mnt
cd /mnt
mkdir boot
mount /dev/nvme0n1p2 boot
mkdir boot/efi
mount /dev/nvme0n1p1 boot/efi
dd if=/dev/zero of=swap bs=1M count=16384 mkswap swap
swapon swap
chmod 0600 swap
pacstrap -i /mnt base base-devel efibootmgr grub linux-headers linux-lts linux-lts-headers linux-firmware os-prober networkmanager network-manager-applet wireless_tools dialog nano
genfstab -U /mnt > /mnt/etc/fstab
arch-chroot /mnt
nano /etc/locale.gen

HERE remove # (#en_US.UTF-8 -> en_US.UTF-8)

echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8 ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
hwclock --systohc --utc
echo HOSTNAME > /etc/hostname
nano /etc/hosts

SET localhost HOSTNAME
::1 localhost HOSTNAME
nano /etc/default/grub


nano /etc/mkinitcpio.conf

ADD "encrypt" after block in the HOOKS section mkinitcpio -p linux-lts

grub-install --boot-directory=/boot --efi-directory=/boot/efi /dev/nvme0n1p2
grub-mkconfig -o /boot/grub/grub.cfg
grub-mkconfig -o /boot/efi/EFI/arch/grub.cfg exit cd ..
umount -R /mnt/boot
umount -R /mnt
cryptsetup close cryptroot

When reboot appears:

ERROR DEVICE: UUID=XXXXXfeb77 not found. Skipping fsck
mount /new_root: can't find UUID=XXXXXfeb77 You are now being dropped into a emergency shell. sh can't access tty: job control turned off. 

The output lsblk-o +UUID is:

nvme0n1p1 68CE-1BE8
nvme0n1p2 XXXXae1c70
nvme0n1p3 XXXXc431ab
cryptroot XXXXfeb77

The output of /mnt/etc/fstab

/dev/mapper/cryptroot LABEL=root UUID=XXXXfeb77
/dev/nvme0n1p2 LABEL=boot UUID=XXXXae1c70
/dev/nvme0n1p1 LABEL=EFI System Partition UUID=68CE-1BE8

Last edited by piug (2019-12-02 00:57:02)


#2 2019-12-01 15:31:00

Forum Moderator
Registered: 2012-01-15
Posts: 3,703

Re: Error device not found when finish installed

Welcome to the forum. Please edit your post and use [ code ] tags when posting commands and output. … s_and_code

Moving to Newbie Corner.


#3 2019-12-03 22:32:25

Registered: 2019-12-01
Posts: 3

Re: Error device not found when finish installed


I hope someone tells me what happens at the installation.


#4 2019-12-04 09:00:53

From: Gosford, NSW Australia
Registered: 2016-08-23
Posts: 1

Re: Error device not found when finish installed

This info:
"Configuring the boot loader
In order to unlock the encrypted root partition at boot, the following kernel parameters need to be set by the boot loader:
cryptdevice=UUID=device-UUID:cryptroot root=/dev/mapper/cryptroot"

requires the /etc/default/grub file to be modified with the above for the line:

similar to the following: [THIS IS MY grub file, change the values as appropriate, similar, but I encrypt a lvm partition]

then re-run:
grub-mkconfig -o /boot/grub/grub.cfg


Board footer

Powered by FluxBB