Проблема при монтировании в торого шифрованного диска, пропи санного в /etc/fstab

Зиганшин Руслан <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <CAB_jnmgVn1fAspNRfoSOro6goqWaQrRMpQmnTbLU2RAN4Kgx5A@mail.gmail.com>
Конфигурация: sda - 1 раздел, шифрованный, в нём /home.
sdb - 3 раздела, /boot, /boot/EFI (efi), шифрованный, в нём lwm (в нём swap
и /)
Зашифрованы разными ключевыми фразами при новой установке Дебиан.

zigruslan@zigruslandebian:~$ sudo blkid
[sudo] пароль для zigruslan:
/dev/sda1: UUID="e0a85b90-cae6-48c2-ae00-60a34b84e748" TYPE="crypto_LUKS"
PARTUUID="0b80571b-c939-47e0-93c4-2927400eea9a"
/dev/sdb1: UUID="CAD1-9D6A" BLOCK_SIZE="512" TYPE="vfat"
PARTUUID="bd62eb27-e537-419f-8a47-86d9b7ad5d7d"
/dev/sdb2: UUID="4f24e17e-399e-4239-bec0-76cef50622cd" BLOCK_SIZE="4096"
TYPE="ext4" PARTUUID="33a9ef90-f191-4b77-92e8-96d4f8d26bc1"
/dev/sdb3: UUID="1a5e47be-7b3e-4474-ba21-9ef77503a533" TYPE="crypto_LUKS"
PARTUUID="73de1c60-264f-49f6-a4a8-b5db9918cb8c"
/dev/sdd1: LABEL_FATBOOT="USB DISK" LABEL="USB DISK" UUID="F791-32DA"
BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f73ea61f-01"
/dev/sdc1: LABEL_FATBOOT="USB DISK" LABEL="USB DISK" UUID="9102-120B"
BLOCK_SIZE="512" TYPE="vfat" PARTUUID="91ad864e-01"
/dev/mapper/sdb3_crypt: UUID="jUROJs-KpNS-R6KF-79Bn-yAs5-Qipe-jmj9sZ"
TYPE="LVM2_member"
/dev/mapper/rootandswap-swap: UUID="a3f02062-f16e-42bc-9022-a3df898436ed"
TYPE="swap"
/dev/mapper/rootandswap-root: UUID="5c20a6d8-0f1f-413d-8f68-dcf083a7b8ea"
BLOCK_SIZE="4096" TYPE="ext4"

Проблемный это #/dev/mapper/sda1_crypt /home, для корректной загрузки
закомментирован в fstab.

zigruslan@zigruslandebian:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/rootandswap-root /               ext4    errors=remount-ro 0
      1
# /boot was on /dev/sdb2 during installation
UUID=4f24e17e-399e-4239-bec0-76cef50622cd /boot           ext4    defaults
       0       2
# /boot/efi was on /dev/sdb1 during installation
UUID=CAD1-9D6A  /boot/efi       vfat    umask=0077      0       1
#/dev/mapper/sda1_crypt /home           ext4    defaults        0       2
/dev/mapper/rootandswap-swap none            swap    sw              0
      0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

zigruslan@zigruslandebian:~$ cat /etc/crypttab
sdb3_crypt UUID=1a5e47be-7b3e-4474-ba21-9ef77503a533 none luks,discard
sdb3_crypt UUID=1a5e47be-7b3e-4474-ba21-9ef77503a533 none luks,discard
sdb3_crypt UUID=1a5e47be-7b3e-4474-ba21-9ef77503a533 none luks,discard
sdb3_crypt UUID=1a5e47be-7b3e-4474-ba21-9ef77503a533 none luks,discard
sda1_crypt UUID=e0a85b90-cae6-48c2-ae00-60a34b84e748 none luks,discard
sdb3_crypt UUID=1a5e47be-7b3e-4474-ba21-9ef77503a533 none luks,discard

Когда раздел не закомментирован в //etc/fstab, результат при загрузке такой:
[ TIME ] Timed out waiting for device /dev/mapper/sda1_crypt.
...
You are in emergency mode. After logging in, type "journalctl -xb", to view
system logs,...
...
journalctl -xb:
...
dev-mapper-sda1_crypt.device: Job dev-mapper-sda1_crypt.device/start timed
out.
...

Что делать? Вручную, через cryptsetup и mount всё монтируется и читается.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.