LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-24-2004, 06:20 AM   #1
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Rep: Reputation: 15
Menu.lst, SuSE & Fedora


All,

I am currently booting SuSE & XP just fine. I also can boot Fedora, but only from CD.

If you are successfully booting SuSE & Fedora, and using SuSE as the boot OS, could you please post your menu.lst file. I'd like add Fedora to my menu.lst, but I don't know what to put down.

Thanks,

Herkdrvr
 
Old 10-24-2004, 06:30 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I use Slackware, but I don't think there should be much differenence in the menu.lst with Suse. Below is a part of my menu.lst.

lba32
prompt
default 0
color red/black light-blue/black
timeout 10
title Slackware
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1 vga=788 ro
title FedoraCore
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdb1 ro rhgb
initrd /boot/initrd.img

make sure, you point to the right hard drive partition, kernel and initrd image.
 
Old 10-25-2004, 04:04 AM   #3
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Redazz,

Thanks for the reply. I tried adjusting my menu.lst, but it gives me an "Error 15, file not found." Here's what I did.

I know for a fact that Fedora lives on /dev/hda2. I booted Fedora from the CD as root, and then went into the boot directory. I found two vmlinuz files and two initrd files, the only difference being the suffix ".smp" at the end of them.

Here's how I chose to adjust my menu.lst file:

title Fedora Core
root (hd2,0)
kernel /boot/vmlinuz-2.6.8-1.541 root=/dev/hda2 ro rhgb
initrd /boot/initrd-2.6.8-1.541.img

What am I missing here?

Thanks again!

Herk
 
Old 10-25-2004, 04:13 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
If / is on hda2, then this is hd0,1 (not hd2,0).

The first digit is the adapter, the second the partition (both starting from 0)
 
Old 10-25-2004, 04:54 AM   #5
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Abisk,

Thank you so much for your reply. I think that Windows XP is on hd0,1. Here is an exerpt of my menu.lst file:

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux
kernel (hd1,1)/boot/vmlinuz root=/dev/sdb2 vga=0x31a splash=silent . desktop resume=/dev/sdb1 showopts
initrd (hd1,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd0,1)
chainloader +1


What I'd like to do is point it correctly to Fedora, which I know is on /dev/hda2. I just don't know what specifically to add to my menu.lst file.

Any additional help you can provide will be appreciated.

Regards,

Herk
 
Old 10-25-2004, 05:02 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Maybe this link will help you to match the drive:

http://portal.suse.com/sdb/en/2002/0..._overview.html

The output of fdisk -l will show all recognized drives/partitions.

Also, the file /boot/grub/device.map shows you how disks are adressed.

If you show me this way, on which partition you have FC2, we could figure it out together.

With the information you provided so far, I still claim that hd0,1 is hda2 !
 
Old 10-25-2004, 05:44 AM   #7
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Abisko,

Here is the contents of my /boot/grub/device.map:

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/hda
(fd0) /dev/fd0

Also, here's what I got when I opened my partitioner. I'll show the Device and type along with mount if appropriate:

/dev/hda WD400BB-75CLB0
/dev/hda1 Linux Native
/dev/hda2 Linux Native
/dev/hda3 Linux Swap
/dev/sda ST3120026AS
/dev/sda1 Dell Utility
/dev/sda2 HPFS/NTFS Mount: /windows/D
/dev/sda3 Win 95 Fat LBA Mount: /windows/E
/dev/sdb WDC WD360GD-00FN
/dev/sdb1 Linux swap Mount: swap
/dev/sdb2 Linux native Mount: /

Hopefully this will give you the information you need to help address my problem. Once again, THANK YOU so much!

Regards,

Herk
 
Old 10-25-2004, 05:56 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
OK, we are down to two possibilities:

I appologize, you were right with hd2 (I was almost sure that IDE devices are recognized first). And I guess it's SuSE on sdb2.

Fedora is either on hd2,0 (hda1) or hd2,1 (hda2). So try hd2,1 (as you said it's on hda2).
 
Old 10-25-2004, 06:03 AM   #9
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Okay, I'll try that. I'll let you know how it goes. Probably in about 8 hours--I'm really tired.

Have a great day, and I'll let you know the results.

Thank you for your time and expertise.

With much appreciation,

Herk
 
Old 10-25-2004, 06:04 AM   #10
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Oh, I almost forgot, should I include the numbers after "vmlinuz" as it's shown in my file system, or just the word "vmlinuz"?

Herk
 
Old 10-25-2004, 06:12 AM   #11
herkdrvr
Member
 
Registered: Aug 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Well, I couldn't wait to try the new syntax. I unfortunately got the same error. Here's what it said:

hd2,1 file type is ext2fs, partition type 0x83

kernel /boot/vmlinuz-2.6.8-1.541 root=/dev/hda2 ro rhgb

Error 15: File not found

There's got to be something small, yet crucial, that I am skipping.

Any thoughts? Thanks again.

Herk
 
Old 10-25-2004, 06:29 AM   #12
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I don't know if suse and fedore use slightly different grub-versions.

As you might have seen, suse doesn't use the root-option, instead they write the hdd directly in the path.
I suggest to have a try on this entry:

title Fedora Core
kernel (hd2,1)/boot/vmlinuz-2.6.8-1.541 root=/dev/hda2 ro rhgb
initrd (hd2,1)/boot/initrd-2.6.8-1.541.img

Be sure that the filenames match the existing files. If you find links like 'vmlinuz' and 'initrd' in the boot directory, you can use these also, but check the link target first.
 
Old 10-25-2004, 08:45 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
hda2 is equivalent to hd0,1 on grub. You should put in the full kernel name in menu.lst, but what I tend to do is to create a symlink to the kernel that I want to use, as vmlinuz, so that if I upgrade, it I don't have to fiddle about with grub settings. you would create the symlink from your /boot directory as follows,

ln -s vmlinuz-version vmlinuz

do the same for the corresponding initrd-version image because Fedora uses the initrd image.

Last edited by reddazz; 10-25-2004 at 10:21 AM.
 
Old 10-25-2004, 09:18 AM   #14
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Originally posted by reddazz
hda2 is equivalent to hd0,1 on grub.
That was my first guess, too, but not in this case. It seems that a S-ATA controller comes first. In the device.map, this place has been taken by sda and since there is a sdb too, hda comes in third place.
 
Old 10-25-2004, 10:20 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I see, I have never used S-ATA, so I assumed it was the same as normal IDE. Thanks for the info coz I am gonna build a S-ATA based pc soon and I probably would have run into problems without this info.
 
  


Reply



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
please post your menu.lst from fc3 kahn Fedora 12 08-25-2005 07:08 AM
GRUB menu.lst for Fedora and Mandrake Dual boot the_padre Linux - Newbie 3 03-15-2005 01:21 AM
need grub menu.lst example pk108 Mandriva 4 12-11-2004 06:45 PM
Need help adjusting my menu.lst file herkdrvr Linux - General 1 10-15-2004 07:01 AM
grub.conf vs menu.lst linmix Linux - Software 2 08-26-2004 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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