LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2003, 11:17 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I need help writing grub.conf


I have been trying to write a grub.conf that works. I have been looking at all kinds of examples on the web. Besides not being able to load linux, the screen is completely distored and black and white. Although, It will load windows.

If anyone has a grub.conf that loads windows and linux, could you post it for me.

It would be best if I could get anaconda to generate one specific to my setup

here is what I got

splashimage=(hd0,4)/grub/splash.xpm.gz
timeout=50
default=1
title Redhat 9
root (hd0,4)
kernel /vmlinuz-2.4.20-20.9 ro root=/dev/hda5 hdb=ide-scsi
initrd /initrd-2.4,20-20.9.img
title Windows XP
rootnoverify (hd0,1)
chainloader +1

This is my fdisk -l

Device Boot Start End Blocks Id System
/dev/hda1 1 1016 7680928+ b Win95 FAT32 (this is my windows recovery partition)
/dev/hda2 * 1017 6704 43001280 7 HPFS/NTFS
/dev/hda3 6793 6806 105840 83 Linux
/dev/hda4 6807 7943 8595720 f Win95 Ext'd (LBA)
/dev/hda5 6807 7805 7552408+ 83 Linux (main linux partition)
/dev/hda6 7806 7943 1043248+ 82 Linux swap

Last edited by shanenin; 09-05-2003 at 02:48 PM.
 
Old 09-04-2003, 11:55 PM   #2
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
[root@chopper root]# cat /etc/grub.conf
default=1
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.6.0-0.test3.1.31)
root (hd0,1)
kernel /boot/vmlinuz-2.6.0-0.test3.1.31 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.6.0-0.test3.1.31.img
title Red Hat Linux (2.4.20-19.9)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-19.9 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-19.9.img
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1


[root@chopper root]# fdisk -l

Disk /dev/hda: 40.9 GB, 40981118976 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1025 4982 31792635 7 HPFS/NTFS
/dev/hda2 * 1 1024 8225248+ 83 Linux

Partition table entries are not in disk order
 
  


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
nano -w /boot/grub/grub.conf Tbagz Linux - Newbie 2 10-31-2005 06:42 PM
grub refuses to read grub.conf 0pal_t0ad Linux - Newbie 2 03-27-2005 04:40 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 04:36 AM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

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

All times are GMT -5. The time now is 09:49 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