User Tools

Site Tools


software:linux:grub

How to Rescue a Non-booting GRUB 2 on Linux

From: https://www.linux.com/learn/how-rescue-non-booting-grub-2-linux

ls
ls (hd0,2)/

grub> set root=(hd0,2)
grub> linux /boot/vmlinuz-3.16.7-48-desktop root=/dev/sda2
grub> initrd /boot/initrd-3.16.7-48-desktop
grub> boot

How do you know the correct partition? 
hd0,1 = /dev/sda1.
hd0,2 = /dev/sda2
hd1,1 = /dev/sdb1. 
hd3,2 = /dev/sdd2


opensuse info:
/boot/grub2/grub.conf
software/linux/grub.txt · Last modified: 2016/11/06 23:27 by superwizard