When I boot into my computer It usually boots into my grub menu, but when i did the last two times it said MBR Error and booted straight into my SDA1. This started happening after i did a heavy defragmenting by Distrix Ultimate Defrag. Does anyone know how i can get my grub back?Thankz
Announcement
Collapse
No announcement yet.
MBR booting problems
Collapse
This topic is closed.
X
X
-
Re: MBR booting problems
From a Live Kubuntu CD, you simply need to reinstall GRUB (using the GRUB files in your Kubuntu root partition and installing them into the MBR of the first-boot drive which is called hd0):
How To GRUB Methods - Toolkit
http://kubuntuforums.net/forums/inde...opic=3081671.0
Probably this:
Start the Live Kubuntu CD session.
Open Konsole.
sudo grub
and press Enter to get a GRUB prompt:
grub>
grub> find /boot/grub/stage1
That will return some output, like (hdx,y); put that in what follows here:
grub> root (hdx,y)
grub> setup (hd0)
grub> quit
$exit
Exit out of the Live CD, and re-boot the PC to test it.
(You may still have to edit the boot menu, /boot/grub/menu.lst), but maybe not.)
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
-
Re: MBR booting problems
OK so i booted into the LiveCD and i opened a command prompt...
sudo grub
then i tried saying root (sda3) but i got Error 23
all my partitions are called sda (1(Windows),2(Swap),3(Kubuntu))
it didnt recognize it...
oh and when i boot I get MBR Error 3 if that means anythingKubuntu 8.04 <br />Dual-Boot w/ XP<br />Intel Core 2 Duo E6500<br />nVidia 8400GS 256mb<br />2GB DDR2<br />Ubuntu User #21847<br />Linux User #467409
- Top
- Bottom
Comment
-
Re: MBR booting problems
You might have corrupt data in the MBR. And, if so, it might be fixable simply by reinstalling the GRUB code. Which is what my post above does., You should try to reinstall GRUB following exactly the steps in my post above, starting with the find command. For example, GRUB will not understand "root (sda3)."
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Re: MBR booting problems
That's not good news. It suggests that your GRUB is gone, and that suggests that perhaps other files in your Kubuntu might be gone/damaged. You might try Super Grub Disk live CD and see if you can use it to re-install your GRUB files. However, there seems to be something goofy here: even though your MBR might be damaged, your files located in Kubuntu OS should still be OK, but they may not be OK. (=> reinstall Kubuntu? I don't know for sure ...)
(btw, I'm headed out of town for a day or more -- you might do a bump to get some of the other boot-jocks to jump in with fresh ideas.)An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Re: MBR booting problems
thanks Qqmike.
I think im gunna just reinstall my OS.. dont have anything majorly important on there anywayz... thanks tho...Kubuntu 8.04 <br />Dual-Boot w/ XP<br />Intel Core 2 Duo E6500<br />nVidia 8400GS 256mb<br />2GB DDR2<br />Ubuntu User #21847<br />Linux User #467409
- Top
- Bottom
Comment
-
Re: MBR booting problems
Oops. I was going to suggest booting to your LiveCD again, opening a konsole, and then runningCode:fdisk -l
However, since you are going to reinstall anyway. Go for it. Just watch your defragger the next time you run it and immediately check to see if a Linux partition was accidentally compromised. I'm not saying it was, but the coincidence is just too much to ignore.The next brick house on the left
Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11| Kubuntu 24.04 | 6.8.0-31-generic
- Top
- Bottom
Comment
-
Re: MBR booting problems
Ya my disks were all in order and how i wanted them so I just went ahead and reinstalled
Kubuntu 8.04 <br />Dual-Boot w/ XP<br />Intel Core 2 Duo E6500<br />nVidia 8400GS 256mb<br />2GB DDR2<br />Ubuntu User #21847<br />Linux User #467409
- Top
- Bottom
Comment
-
Re: MBR booting problems
Well that's good!!
Just for kicks and grins, when you get a chance see if grub can find anything this time.
Code:Open Konsole. sudo grub and press Enter to get a GRUB prompt: grub> grub> find /boot/grub/stage1
The next brick house on the left
Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11| Kubuntu 24.04 | 6.8.0-31-generic
- Top
- Bottom
Comment
-
Re: MBR booting problems
lol i dont know why is says this but this is what i gotCode:(hd0,2)
Kubuntu 8.04 <br />Dual-Boot w/ XP<br />Intel Core 2 Duo E6500<br />nVidia 8400GS 256mb<br />2GB DDR2<br />Ubuntu User #21847<br />Linux User #467409
- Top
- Bottom
Comment
-
Re: MBR booting problems
So, looks like you got Kubuntu on the third partition of the hard drive hd0 = sda.
Another curious thing to know would be a picture of what's on your hard drive:
Open Konsole
sudo fdisk -lu
(btw, linuxlvr: Linux enumerates hard drives as sda, sdb, sdc, etc., and partitions with numbers starting with partition 1; so sda3 is the third partition on the hard drive sda, the "first" hard drive, which is what jglen490 told you. However, GRUB enumerates things differently: it counts drives and partitions starting from zero; the hard drives are hd0, hd1, hd2, etc., and the partitions are partition 0, partition 1, partition 2, etc. So, in GRUB (hd0,2) is the first hard drive hd0, the third partition, partition 2. The command fdisk -lu will give you the drive(s) and partitions in Linux notation, which is what you are used to.)
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
Comment