If we reinstall windows on a Windows/Ubuntu dual boot system, we can not use Linux, until the Grub (GRand Universal Bootloader) is restored.
To restore grub, Insert the live CD/DVD of Ubuntu and restart the system to start a live session.
For Ubuntu versions 9.10 and above:
Then open a terminal from Applications --> Accessories --> Terminal and enter the following command.
You will see something like this:
Select the drive in which root partition "/" is installed.. (Let us say /dev/sda5)
Then in terminal
still in the terminal, type:
And then, to reinstall the grub by entering:
Of course you need to replace “/dev/sda5″ and “/dev/sda” with what you found in the fdisk output.
If you get BIOS warnings try:
If everything is fine type in the following into terminal:
For Ubuntu versions 9.04 and lower:
We need to open terminal from
Applications --> Accessories --> Terminal and enter the command.
Next,
Take note of what it returns (something like (hd0,1).)
Now enter
Replace a and b with what you got back before. For example, if "find /boot/grub/stage1" gives "(hd0,3)", you will run "root (hd0,3)"
Now run:
Code:
This is fine if you want to write GRUB to the MBR. If you want to write it to your Linux root partition, then you want the number after the comma, such as "(hd0,3)".
If everything is fine type in the following into terminal:
Enjoy...
Please give your valuable comment for further improvement...
To restore grub, Insert the live CD/DVD of Ubuntu and restart the system to start a live session.
For Ubuntu versions 9.10 and above:
Then open a terminal from Applications --> Accessories --> Terminal and enter the following command.
Code:
sudo fdisk -l
Select the drive in which root partition "/" is installed.. (Let us say /dev/sda5)
Then in terminal
still in the terminal, type:
Code:
sudo mkdir /media/sda5 sudo mount /dev/sda5 /media/sda5
Code:
sudo grub-install --root-directory=/media/sda5 /dev/sda
If you get BIOS warnings try:
sudo grub-install --root-directory=/media/sda5 /dev/sda --recheck
If everything is fine type in the following into terminal:
Code:
sudo reboot
For Ubuntu versions 9.04 and lower:
We need to open terminal from
Applications --> Accessories --> Terminal and enter the command.
Code:
sudo grub
Code:
find /boot/grub/stage1
Now enter
Code:
root (hda,b)
Now run:
Code:
setup (hd0)
If everything is fine type in the following into terminal:
Code:
sudo reboot
Please give your valuable comment for further improvement...
Though the technical glitch scared a lot of people. It was just a publicity stunt to make the event even more interesting. The intention was good the question is. Is it necessary to make a fuss just before the big event? I don't think so.jogos online 2019
ReplyDeletefriv jogos 4 school online
jogos friv gratis 2019
abcya club unblocked
Thank you for posting this blog.
ReplyDeleteWe are one of the Best Online Store for printer Parts and Accessories in India at Minimum Rate.
Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you helped me. apple service provider berlin
ReplyDelete