1

When not specifying linux /vmlinuz root=/dev/sdb1 correctly in the grub shell, I get dropped to the initramfs shell. Instead of rebooting, I would like to continue boot process from there.

As explained here, I want to do:

mount /dev/sdb1 /root
exit

Unfortunately, the mount command gives me an file or directory not found message. This is in spite the fact that both stat /dev/sdb and stat /root give proper output.

This really leaves me puzzled. How can an existing file not be found?

The system is a Debian Stretch which I debootstrap'd onto an USB drive. The screen you see is what comes when booting using that USB drives.

Existing files don't get found

Multisync
  • 474

1 Answers1

0

If your initrd uses dracut then you have to create a symlink /dev/root to the device to be mounted (but not to do the mount). In your case:

ln -s /dev/sdb1 /dev/root
Hauke Laging
  • 90,279
  • Didn't you mean ln -s /dev/sdb1 /dev/root? I tried it, and after typing exit to leave initramfs shell and continue booting, I get dropped into initramfs shell again. I added some infos regarding the OS (Debian Stretch) -- while dracut is in the package repository, I don't know if Debian is using dracut by default. – Multisync Sep 22 '17 at 08:45
  • @Multisync Sorry, was a bit too tired it seems. – Hauke Laging Sep 22 '17 at 17:04