![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2005
Beans: 48
|
Reinstalling GRUB
I reinstalled Windows yesterday, and it formatted my MBR, meaning: no more GRUB. How can I reinstall it? I searched the fora, but I didn't really understand the answers.
|
|
|
|
|
|
#2 | ||
|
SADFL's Commando
![]() |
Re: Reinstalling GRUB
Quote:
Fixed it.
__________________
Quote:
|
||
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2005
Beans: 48
|
Re: Reinstalling GRUB
Tnx for your help,
already tried that tho. It gives me an error about "/target not accessible". Not that I gave a target yet... |
|
|
|
|
|
#4 |
|
Cloned
![]() |
Re: Reinstalling GRUB
what I do when that happens is use the System Rescue CD, though the Ubuntu livecd and many others will allow this, and do the following in a terminal after booting up the CD:
mkdir /ubuntu mount /dev/hda2 /ubuntu #you should substitute hda2 for the partition your base system is installed on. If you have a separate /boot partition, you'll then need to mount /dev/hda1 /ubuntu/boot #but again, only if you have a boot partition chroot /ubuntu /bin/bash #now you're inside your ubuntu system grub #this will bring up the grub shell (inside the grub shell, do the following) root (hd0,0) #hd0,0 corresponds to hda1. hd1,1 would be hdb2. They're weird. whatever comes in the parentheses should be the partition your boot files are on, whether it be the main ubuntu partition, or your /boot partition, if you have one. setup (hd0) #this installs grub to the hard drive quit #this should get you back to the command line. If not, try exit, I can't remember which now at the command line, hit ctrl+d to log out of the ubuntu system and back to the livecd system. If you have a /boot partition, type umount /ubuntu/boot the following will then unmount the root partition umount /ubuntu now you can reboot, and hopefully be back to the lovely grubbiness.
__________________
This is where my nickname comes from! faq | search | wiki Twitter: @panickedthumb |
|
|
|
|
|
#5 | |
|
Just Give Me the Beans!
![]() Join Date: Jun 2005
Beans: 48
|
Re: Reinstalling GRUB
Quote:
It's with the "root hd(0,0)" where I have problems. What do I type here when I want to use the MBR? Imho, this should be made way more easy. :/ |
|
|
|
|
|
|
#6 | |
|
Guest
Beans: n/a
|
Re: Reinstalling GRUB
I kept this from another thread somewhere.
Quote:
|
|
|
|
|
#7 | ||
|
First Cup of Ubuntu
![]() Join Date: Aug 2005
Location: Netherlands
Beans: 11
|
Re: Reinstalling GRUB
Quote:
get linux running with a rescue of live disk mount all your partitions.
instead if this grub-install you might consider this: from "info grub-install" Quote:
grub-install is to be found in /sbin (then again in fedora that is, I don't know about ubuntu, I am planning on switching, but i'll take some work in backing up stuff) Last edited by idokus; August 8th, 2005 at 02:08 PM.. |
||
|
|
|
|
|
#8 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2005
Beans: 19
|
Re: Reinstalling GRUB
Same problem here, been searching/posting for a bit now and tried all the solutions here. So far nothing seems to work for me.
I have 2 SATA drives though so some of these methods might not work. Not too sure. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|