boot a system from command line when grub.cfg file is missing (debian)

(a) if you know where is the grub.cfg located then you can run like this

configfile /boot/grub/grub.cfg or configfile (hdX,Y)/boot/grub/grub.cfg

(b) if you dont know where is grub.cfg then follow the bellow steps:

(a) set root='(hdo0,msdos1)'
(b) linux /vmlinuz root=/dev/sda1
(c) initrd /initrd.img
(d) boot

Leave a Reply

Your email address will not be published. Required fields are marked *