LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2008, 09:55 PM   #1
a_m0d
Member
 
Registered: Apr 2007
Location: Perth, WA, Australia
Distribution: Fedora 8, Fedora 10
Posts: 49

Rep: Reputation: 15
Question 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)
kernel /boot/boot/vmlinuz-2.6.25.14-69.fc8 ro root=LABEL=/ rhgb quiet
initrd /boot/boot/initrd-2.6.25.14-69.fc8.img
instead of
Code:
root (hd0,4)
kernel /vmlinuz-2.6.25.14-69.fc8 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.25.14-69.fc8.img
Any suggestions as to why this might be?
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
 
Old 10-12-2008, 10:25 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
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)
Then your updates to the conf should be found.
 
Old 10-12-2008, 10:31 PM   #3
a_m0d
Member
 
Registered: Apr 2007
Location: Perth, WA, Australia
Distribution: Fedora 8, Fedora 10
Posts: 49

Original Poster
Rep: Reputation: 15
Do you mean that if I have GRUB installed on /dev/sda5 I run
Code:
root (hd0,5)
Mint did stuff up the MBR, and I had to run grub-install to be able to even get to the GRUB prompt again.
Now the only problem is that I seem to have stuffed up the relative paths or something.
 
Old 10-13-2008, 12:22 AM   #4
a_m0d
Member
 
Registered: Apr 2007
Location: Perth, WA, Australia
Distribution: Fedora 8, Fedora 10
Posts: 49

Original Poster
Rep: Reputation: 15
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
this gives an answer like (hd0,4)
Then I ran the following code:
Code:
root (hd0,4)
setup
Then I rebooted the computer (this can be done by typing reboot at the grub prompt) and it all worked.
Once again, thanks a lot syg00.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: ln and relative paths tortle Programming 8 05-10-2010 05:50 AM
Absolute and relative paths Gins Linux - General 6 11-08-2008 08:48 PM
periods in relative paths? kuplo Linux - Newbie 2 01-10-2006 05:19 AM
relative/absolute paths in Java djgerbavore Programming 2 10-26-2004 08:01 PM
program that generates relative paths? TheMaXX Linux - Software 1 10-21-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration