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 01-08-2005, 12:54 PM   #1
ndegrace
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Rep: Reputation: 0
grub.conf question


Hi,

I accidently destroyed my grub.conf file (don't ask me...) and I can't recreate it. I'm no grub expert and I barely remember its content. Is there a way to regenerate it?

Thanks a lot,
Nathalie.
 
Old 01-08-2005, 01:24 PM   #2
blinux1
Member
 
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
what distro do you use? Because when I have a problem like that in Mandrake 9, but I don't want to loose any harddrive information (of course) I reinstall mandrake using the upgrade selection--and this automatically goes through the reinstallation of grub or lilo (recognizing your partitions and such).
 
Old 01-08-2005, 01:30 PM   #3
ndegrace
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I'm using GNU Grub 0.94 on Linux Fedora Core 2
 
Old 01-09-2005, 08:44 AM   #4
ndegrace
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I've tried updating my current installation... didn't work.

I've tried installing version 1.0.5... got a compilation error.

Here is what I think my file looked like...

boot=/dev/hda
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
default=0
timeout=10
title Fedora Core 2 (2.6.5-1.358)
root (hd0,0)
kernel /boot/vmlinuz ro root=LABEL=/
initrd /boot/initrd-2.6.5-1.358.img

vmlinuz is pointing to the right image file. But I'm not sure about the (hd,partition) parameter...?

Here's what I get when I do a df

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 12246940 4243560 7381264 37% /
/dev/hda1 101086 8075 87792 9% /boot
none 156968 0 156968 0% /dev/shm

Is it ok tu use (hd0,0)?
Thanks.
 
Old 01-09-2005, 10:31 AM   #5
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Yes but if /boot is on a separate partition it should be left out from the kernel and image paths. I have a configuration similar to yours, here's an excerpt of my grub.conf including comments:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

title Fedora Core (2.6.9-1.681_FC3) Multi-user Graphics mode
root (hd0,0)
kernel /vmlinuz-2.6.9-1.681_FC3 5 root=LABEL=/
initrd /initrd-2.6.9-1.681_FC3.img
 
Old 01-09-2005, 03:51 PM   #6
ndegrace
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Problem solved!

You were right!

#boot=/dev/hda
splashimage=(hd0,0)/grub/splash.xpm.gz
default=0
#fallback=1
timeout=10
title Fedora Core 2 (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz ro root=LABEL=/
initrd /initrd-2.6.5-1.358.img

Thank you for your time and advice.
 
  


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
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
Question on grub.conf and Cdrom boot jimmmac Linux - Software 3 11-19-2003 06:17 AM
quick grub.conf question dot hog Linux - Newbie 1 10-17-2003 04:19 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM
grub.conf simple question rusium Linux - Hardware 4 05-10-2003 11:41 PM

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

All times are GMT -5. The time now is 02:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration