I have installed Ubuntu 16.04 ony Lenovo 3g hhd, 4 g ram. It all went smoothly until it gets stuck on the boot process with "random crng init done". Help with this issue is greatly appreciated.
6 Answers
It's a kernel bug that can happen with different kernel.
"apt-get install rng-tools" run as root in a terminal should work.
- 51
This may happen after deleting the swap partition
Hanging before kernel: random: crng init done may happen after deleting a swap partition.
If a swap partition is deleted, the file /etc/initramfs-tools/conf.d/resume should be either completely empty or read RESUME=. Delete any UUID number. RESUME=NONE is not valid.
$ sudo nano /etc/initramfs-tools/conf.d/resume
The initial RAM filesystem requires updating for these changes to take effect:
$ sudo update-initramfs -u
- 5,719
- 1
- 54
- 59
At boot, the kernel waits for mouse movements to initialize the random number generator.
Kernel messages on boot:
sudo dmesg | less
The problem message:
kernel: random: crng init done
The solution:
sudo apt install haveged
sudo systemctl enable haveged
- 1,156
- 6
- 15
- 21
- 21
I faced the same issue, and the fixes suggested here did not work. It was a broken link to a swap partition on my USB. It can be fixed using update-initramfs -uk all
More details can be found at https://askubuntu.com/a/1084738/881810
For anyone searching for this in the future, I ran in to this issue when trying to install Ubuntu 20.04 on to an old HP TouchSmart TM2-1070us laptop with an Intel Core 2 Duo U7300 CPU.
Just trying to boot the live CD would have the system stall after "random crng init done". No amount of waiting would get past it.
I was really stumped for a while but accidentally found that the issue, in my case, was caused by having "Virtualization Technology" enabled in the BIOS. By default it is disabled. I have no idea why this causes it but as long as I leave it disabled, Ubuntu boots and installs fine.
- 11
This issue can also be caused by combining non-related btrfs partitions on 1 system and booting with a kernel and init-system that doesn't know about this.
I had a system with a disk for my data and another one for my OS. Both used btrfs and although the system worked fine, I couldn't boot from a USB-stick. After (physically) detaching the data-disk it booted fine from USB.
Depending on what you want to achieve and how much time you want to spend on it there are multiple solutions available if your are in a similar situation. From easy to hard:
- Don't boot from any other medium (ignoring the problem)
- Backup your data of the extra btrfs-partition, overwrite the partition with another type of filesystem (e.g. ext4) and place your data back on this new filesystem.
- Merge the 2 btrfs partitions into 1 filesystem. This can take a lot of work, and it's easy to make a mistake here. Double-check the newest version of the btrfs docs before you do this.
- 187