Ask Your Question
2

problem reinstalling grub2 fedora 21

asked 2015-01-02 04:35:51 -0600

yasharne gravatar image

Hi, for some reason I had to reinstall my windows and now grub2 is not working and i go directly to windows.

I tried solution here, but now when i restart my computer, i get message no such device...grub resue>

how can i fix this?

thanks

edit retag flag offensive close merge delete

Comments

2

Boot from you pendrive live or dvd live, open a terminal.

 su

 grub2-mkconfig -o /boot/grub2/grub.cfg

 grub2-install /dev/sda
davidva gravatar imagedavidva ( 2015-01-04 10:11:04 -0600 )edit

Fantastic. My grub was corrupt so I just put in second command and did a hard reboot and booted into new kernel

SFC gravatar imageSFC ( 2015-07-01 20:08:58 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2015-01-04 12:22:52 -0600

fast_rizwaan gravatar image

boot from live-cd and open terminal, find your linux ROOT (/) partition your using "disks" utility (gnome/fedora workstation)

# /dev/sda6 is the linux ROOT (/) which is to be mounted (the ROOT partition)
sudo mount /dev/sda6 /mnt ; # replace /dev/sda6 with your linux root partition say /dev/sda5

sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt
# sudo grub2-mkconfig -o /boot/grub/grub.cfg ; #if needed
sudo grub2-install /dev/sda ;#taking sda as the sata disk

reboot

edit flag offensive delete link more
0

answered 2015-01-04 04:24:34 -0600

b10n1k gravatar image
edit flag offensive delete link more
0

answered 2015-01-03 08:41:28 -0600

deusdara gravatar image

Hi

Could you try that guide?

GRUB 2 recovery

http://www.dedoimedo.com/computers/grub-2.html#mozTocId842078

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-02 04:35:51 -0600

Seen: 12,611 times

Last updated: Jan 04 '15