TROUBLESHOOTING: Boot Fall Into BusyBox (initramfs)

# after downloading and install (clone) the image disk onto your hard drive (/dev/sda),
# falling into BusyBox (initramfs) during boot is easy to fix
# boot using gparted live and open terminal with sudo permission

# create mount directory

  1. root@debian:~# mkdir /mnt/temp

# sudo fdsik -l /dev/sda may help your to identify root and boot partition
# mount root partition

  1. root@debian:~# mount /dev/sda3 /mnt/temp

# mount boot partition

  1. root@debian:~# mount /dev/sda4 /mnt/temp/boot

# bind all others

  1. root@debian:~# mount --bind /dev /mnt/temp/dev
  1. root@debian:~# mount --bind /dev/pts /mnt/temp/dev/pts
  1. root@debian:~# mount --bind /proc /mnt/temp/proc
  1. root@debian:~# mount --bind /sys /mnt/temp/sys

# chroot mounted partition

  1. root@debian:~# chroot /mnt/temp

# update initramfs

  1. root@debian:/# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.0-7-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip

# update grub

  1. root@debian:/# update-grub
Generating grub configuration file ...
Found background image: mdl_splash.png
Found linux image: /boot/vmlinuz-6.1.0-7-amd64
Found initrd image: /boot/initrd.img-6.1.0-7-amd64
Found linux image: /boot/vmlinuz-6.1.0-3-amd64
Found initrd image: /boot/initrd.img-6.1.0-3-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
  1. root@debian:/# exit
  1. root@debian:/# sudo reboot

# optional: as soon as you boot normally repeat the last 2 commands to update initramfs and grub

# also, if cannot boot, use the gparted live option to boot local system and reinstall grub

  1. root@debian:/# sudo grub-install /dev/sda

# that’s it!