美文网首页
Best way to fix grub problem

Best way to fix grub problem

作者: yingshaoxo | 来源:发表于2018-03-04 23:10 被阅读16次

Try the following

grub rescue > ls

grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition 

grub rescue > set root=(hd0,msdos2) 

grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed 

grub rescue > insmod normal # if this produced an error, reset root and prefix to something else .. 

grub rescue > normal

Run the following after you successfully boot

sudo update-grub 

sudo grub-install /dev/sdX 
# where /dev/sdX is your boot drive.

If you have to copy a whole linux system, you could use Clonezilla

相关文章

网友评论

      本文标题:Best way to fix grub problem

      本文链接:https://www.haomeiwen.com/subject/fkfcfftx.html