Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    Where do you mount /, /boot, etc to? I think that was the question - and it's certainly mine, stuck as I am in a very similar situation. Commented Nov 19, 2022 at 14:23
  • @Diagon, you can mount the /, /boot etc. in any directory in the initramfs. Then, you can go inside that directory to find all your files and make necessary fixes. Commented Jan 8, 2023 at 20:35
  • 1
    @SadmanSakib / thanks, but once mounted, is there a way to then continue the boot sequence? Commented Mar 23, 2023 at 5:22
  • @Diagon, the way to continue boot sequence depends on the issue. In my case, my default grub menu had to be corrected. So, I opened grub.cfg with vim, made changes and rebooted the computer. Commented Mar 25, 2023 at 13:53
  • 1
    @Diagon On a Ubuntu 22.04, I had to mount on /root. But when the problem is not too deep, you just need to setup cryptsetup/lvm/etc. and exit from the initramfs prompt (with Ctrl+D or exit) so that the init scripts can find the devices of /etc/fstab and pick up from there. As a memento, here are a few of the commands I used : cryptsetup open /dev/sda5 mycrypt ; lvm lvs ; mount -t auto /dev/ubuntu-vg/root /root ; mount -t auto /dev/sda1 /root/boot ; mount -t proc none /root/proc ; mount -t sysfs none /root/sysfs Commented Jul 29, 2023 at 10:52