Grub 2 Recovery:-
Boot from live CD or DVD which support grub2.(BOSS 4 DVD or Ubuntu 9.10 CD
or above. DVD will take more time than CD thats why I suggest to boot from
CD).
Open terminal.Run fdisk -l to check the partition from which you want to
recover grub 2.
Here I assume that you want to recover it form /dev/sda1.
Then run the following commands:-
$sudo mkdir /media/sda1
$sudo mount /dev/sda1 /media/sda1
$sudo mount --bind /dev /media/sda1/dev
$sudo mount --bind /proc /media/sda1/proc
Then chroot into that partition by
$sudo chroot /media/sda1
Then re-install the grub by
#grub-install /dev/sda
The output should be like this:-
Installation finished. No error reported.
If you get error then try
#grub-install --recheck /dev/sda
After successful installation exit from chroot unmount the file systems you
mounted and reboot.
#exit
$sudo umount /media/sda1/proc
$sudo umount /media/sda1/dev
$sudo umount /media/sda1
$sudo reboot
Subscribe to:
Post Comments (Atom)
Linux Kernel Compilation
Step 1: Install Required Packages Install additional packages before building a kernel. To do so, run this command: sudo apt-get install gi...
-
Step:1 sudo apt-get install python-pip Step:2 pip install -U selenium for python3 and more install Step:1 sudo apt-get...
-
This process will common for all HP Printers like HP LJ P 1007, P1020,P1020 plus,1022,3050 MFP, M 5035 MFP,P 2015N and Configuring the HP ...
-
Global Parameters [global] Anything in here applies to Samba as a global setting. There is some configuration info here ...
No comments:
Post a Comment