
# 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
root@debian:~# mkdir /mnt/temp
# sudo fdsik -l /dev/sda may help your to identify root and boot partition
# mount root partition
root@debian:~# mount /dev/sda3 /mnt/temp
# mount boot partition
root@debian:~# mount /dev/sda4 /mnt/temp/boot
# bind all others
root@debian:~# mount --bind /dev /mnt/temp/dev
root@debian:~# mount --bind /dev/pts /mnt/temp/dev/pts
root@debian:~# mount --bind /proc /mnt/temp/proc
root@debian:~# mount --bind /sys /mnt/temp/sys
# chroot mounted partition
root@debian:~# chroot /mnt/temp
# update initramfs
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
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
root@debian:/# exit
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
root@debian:/# sudo grub-install /dev/sda
# that’s it!