Problem with GRUB config and relative paths
Hi guys,
I have a problem with GRUB. I have a dual boot F8 / Vista on my computer, and I have a seperate partition for /boot. Recently I tried to install LinuxMint on some of the free space on my hard drive, and it stuffed up the boot partition a bit. Thankfully I had backed up the boot partition, because I was worried about this happening, so I copied all the files back onto it again, but now it doesn't seem to work anymore. When I boot, it drops me straight to a grub prompt, and I have to type in all the commands manually. I have examined all the files on the boot partition, and they all look alright. The problem is that when I type in the commands manually, I have to type: Code:
root (hd0,4) Code:
root (hd0,4) The top set of commands does actually boot linux up, but if I enter this into the grub.conf file, it still doesn't work. Thanks in advance |
Sounds like Mint over-wrote the MBR - this points to the partition that contains the grub stage file (et al). Have you trashed that Mint partition - the grub prompt usually means the stage files can't be found ???.
From the grub prompt run the "root" command pointing to your restored /boot partition, then update the MBR with Code:
setup (hd0) |
Do you mean that if I have GRUB installed on /dev/sda5 I run
Code:
root (hd0,5) Now the only problem is that I seem to have stuffed up the relative paths or something. |
Solved!
Scratch that last post - I worked it out, and now the boot works.
Thanks for your help. For anyone who is interested, these are the steps that I took to fix this problem: First of all I checked which partition I had /boot on (all these commands were run at the grub prompt when I booted): Code:
find /grub/grub.conf Then I ran the following code: Code:
root (hd0,4) Once again, thanks a lot syg00. |
All times are GMT -5. The time now is 06:29 AM. |