How to fix boot into initramfs prompt and "mount: can't read '/etc/fstab': No such file or directory" and "No init found"?

Pro Backup

Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu linux-image-3.11.0-18-generic as kernel, and extlinux-update to generate bootloader configuration.

The result after reboot (still inside a KVM based virtual machine) is an (initramfs) prompt and these messages:

mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
The filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.

BusyBox is v1.20.2.

Regression:

  • the file system has been checked with fsck.ext4

Check for root existence

(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory

Root boot argument

(initramfs) cat /proc/cmdline
initrd=/boot/initrd.img-3.11.0-18-generic ro quiet BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic

Check loaded modules

(initramfs) cat /proc/modules
e1000 145368 0 - Live 0xffffffffa0000000

/boot folder content

$ sudo ls -l boot
-rw------- 1 root root 3296162 Feb 18 22:37 System.map-3.11.0-18-generic
-rw-r--r-- 1 root root 1007681 Feb 18 22:37 abi-3.11.0-18-generic
-rw-r--r-- 1 root root  163258 Feb 18 22:37 config-3.11.0-18-generic
drwxr-xr-x 2 root root    4096 Mar 17 20:13 extlinux
-rw-r--r-- 1 root root 4995000 Mar 16 23:35 initrd.img-3.11.0-18-generic
-rw------- 1 root root 5634192 Feb 18 22:37 vmlinuz-3.11.0-18-generic

How to make this system boot to the expected default bash prompt?

Alex

Modify your kernel boot parameter by setting the root=/dev/sdaX option. sdaX would be your / or root partition. Upon booting the next time, you will see that your initramfs tries to mount the partition before trying to access /etc/fstab and mounting the file systems.

See question "Does initramfs use /etc/fstab?" for more details.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to boot into initramfs?

LUKS initramfs boot problem: "/dev/mapper/ubuntu-root does not exist." How can I fix it using a backup?

How do I force Ubuntu to boot into initramfs?

Ubuntu16.04 suddenly boots to a text-only (initramfs) prompt, restoring superblock doesn't fix it

How to fix access DOM in a loop using prompt

How to fix generic dialog in validation prompt

how to fix this prompt anaconda error msg

How to fix diacritic issue on command prompt?

How to fix corrupted Boot loader

Boot drops to a (initramfs) prompts busybox

Boot problems with empty fstab in initramfs

how to populate /sys in a initramfs?

How to boot into root btrfs file system with minimal initramfs without udev hook?

How to fix my terminal prompt being out by a character?

how to fix this "Unable to trigger default handler prompt prior to runtime permissions"

oh-my-zsh's prompt is slow: how to fix this

How do I fix my colour bash prompt wrapping?

How do I fix my prompt in emacs shell-mode?

How to fix java.lang.NoClassDefFoundError in Command Prompt?

How to fix Keberos Authentication prompt while running Java application

How to fix Windows 10 Command Prompt from waiting for input

How to fix RestTemplate NullPointerException in spring boot?

How fix "ConditionalOnProperty are exclusive" in Spring boot?

How to Fix Error Custom Anotation in Spring Boot?

How to fix the error about PageRequest in Spring Boot?

How to force fix file systems during boot

How to fix slow boot issue in RAID?

How to fix Bluetooth related errors on boot

How to fix stuck boot after upgrade to 19.10?