Jump to content

Stuck in initramfs prompt, how can I fix the boot config?


Recommended Posts

Posted

I have an Armbian installation on the NVMe drive and I'm trying to switch back to boot from SD card. In `armbian-config` I messed up the boot settings by leaving the root fs type unchanged, (SD card is in fat32 but NVMe partition is ext4). Now the board boots into initramfs prompt.

 

Here's what I've already tried based on search and ChatGPT:

  1. Mount the NVMe partition to `/mnt` then chroot to it, this did work but the `/boot` partition was not mounted inside of the chroot so I can't fix boot env.
  2. I also tried `switch_root` but it's not available in the initramfs prompt.
  3. Update `/proc/cmdline` to change the root fs back to the Armbian partition, but `echo ... > /proc/cmdline` doesn't really do anything.

 

Any ideas?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines