16.04 - /usr on own partition + cryptsetup won't boot, initrd issue
System running:
lsb_release -d
Description: Ubuntu 16.04 LTS
Upgraded from a 15.10.
Beginning 16.04, system cannot boot. Initramd fails at setting up the encrypted /usr partition.
At the (initramfs) prompt the following command is accepted and succeeds at decrypting the partition:
cryptsetup --key-file /root/etc/
After entering this command and pressing <Ctrl>+<d> to exit the initramfs shell, system boot resumes and completes successfully.
/etc (in the initramd) does not have the crypttab file, which is present in the decrypted and mounted root filesystem in /root/etc.
The problem is present regardless that in /etc/initramfs-
I tried creating by hand a custom initramfs from the one generated by mkinitramfs, but the kernel fails boot (cannot find and mount root filesystem).
What can be done to have a fully automatic boot of an Ubuntu 16.04 where /usr is sitting on it's own, encrypted partition, like 15.10 did?
I paste the terminal output of the failed boot up to the initramfs prompt:
Begin: Running /scripts/
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Please unlock disk sda3_ubuntu_root:
[ 120.025413] NET: Registered protocol family 38
cryptsetup: sda3_ubuntu_root set up successfully
done.
Begin: Running /scripts/
Begin: Will now check root file system ... fsck from util-linux 2.27.1
[/sbin/fsck.ext4 (1) -- /dev/mapper/
Ubuntu_rootfs: clean, 44092/625056 files, 801590/2499604 blocks
done.
[ 126.996543] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: mounting /usr file system ... Begin: Waiting for /usr file system ... Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
Begin: Running /scripts/
done.
Gave up waiting for /usr device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=6b18125b-
BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) _
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alessandro Selli for more information if necessary.