LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2004, 12:30 PM   #1
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Rep: Reputation: Disabled
Quick question: Adding operating systems to Grub.


Code:
title Fedora Core (2.6.7-1.494.2.2)
	root (hd0,0)
	kernel /vmlinuz-2.6.7-1.494.2.2 ro root=LABEL=/ rhgb quiet
	initrd /initrd-2.6.7-1.494.2.2.img
title Windows XP Professional
	rootnoverify (hd0,2)
	chainloader +1
That is my grub.conf as it stands now. I fitted a second hard drive (mostly for swap space) and installed Suse 9.1 on it. How do I go about adding Suse to my current grub.conf?

Would this suffice:

Code:
title Suse 9.1
      rootnoverify (hd1, 0)
Or am I doing it completely wrong, newb and all that I am?
 
Old 08-21-2004, 12:38 PM   #2
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
to grub.conf (also menu.lst) you need to add the kernel you're booting and where it is.
"root" or "rootnoverify" tell grub in which filesys to look, but it's not enough, "kernel" specifies the actual kernel image file to be booted. YO also need to add an option for the kernel itself (i think) like "root=/dev/hd??.

If I were you I'd practice a little with grub, by typing "c", and so enter interatcive mode. TYpe "help" and experiment with some of the commands.
Interactive mode additionally requires you to type "boot" after you identify the kernel (not necessary with grub.conf.
 
Old 08-21-2004, 01:11 PM   #3
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
boot into fedora (or any other linux for that matter) and become root

type in the following (it's written so you can copy/paste)

/sbin/fdisk -l #this is an L, not a pipe

this should bring up a list of your harddrives and partitions.

Identify the partition which your debian kernel resides on and boot it with standard parameters..

from grub conf:

Code:
title debian gnu-linux
      root (hd1,0) #you put the partition you found here
      kernel /vmlinuz-2.6.7.-something  root=LABEL=/ options #insert kernel image name here
      initrd  /initrd-2.6.7.-something #insert the appropriate thing here
as you can see linuxes have very alike inserts into grub.conf
 
Old 08-21-2004, 01:48 PM   #4
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Original Poster
Rep: Reputation: Disabled
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          13      104391   83  Linux
/dev/hda2   *          14        2296    18338197+  83  Linux
/dev/hda3            2551        8453    47415847+  17  Hidden HPFS/NTFS
/dev/hda4            2297        2550     2040255    f  W95 Ext'd (LBA)
/dev/hda5            2297        2550     2040223+  82  Linux swap
 
Partition table entries are not in disk order
 
Disk /dev/hdb: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1         131     1052226   82  Linux swap
/dev/hdb2             132       10010    79353067+  83  Linux
So, so far this is correct, lest I be misaken:

Code:
title Suse 9.1 Personal
	root (hd1,1)
	kernel /vmlinuz-<?> ro root=LABEL=/ rhgb quiet
	initrd /initrd-<?>
What are vmlinuz and initrd and how do I determine how they apply to Ssue?

And I'm sorry for doing it like this, but its better to solving it in a way that leaves me understanding what I'm doing rather than just copying a solution off the web that teaaches me nothing.
 
Old 08-21-2004, 03:21 PM   #5
AdamCo
Member
 
Registered: Aug 2004
Distribution: Suse 10
Posts: 126

Rep: Reputation: 15
sorry, read wrong.

Last edited by AdamCo; 08-21-2004 at 03:27 PM.
 
Old 08-21-2004, 06:42 PM   #6
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
yes, vmlinuz is a typical kernel image name. It's usually in the /boot directory of your linux filesystem.

GRUB also supports tab autocompletion, so once you press c and go into interactive mode, you:

1. identify the root partition, looks like "root= (hd1,1)" in your case.

Grub will report how it feels about this filesystem.

2. type "kernel=/boot/" and press <tab> twice. Grub will give you the list of files in /boot. In many cases there is a symbolic link from vmlinuz to your real kernel image, though I know zero about SuSe, so you'll have to check it.

3. add the the appropriate option, could be "root=/dev/hdb2" in your case.

4. type "boot"

If you're lucky this should boot you straight in.

If not, I would seriously advise you to try booting in GRUB's interactive mode first. After you're successful that way, you can go ahead and set up grub.conf properly.
 
  


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
GRUB and Multiple operating systems jughead Linux - Software 2 11-21-2005 04:36 PM
Adding a Module - quick question mdg Slackware 2 10-16-2004 08:48 AM
Pricetags on Operating-Systems... Megamieuwsel General 17 10-29-2003 07:33 AM
Quick Question about Adding Users ?? RyanMc Linux - General 4 12-18-2002 02:05 PM
Two Operating Systems PEDRO Linux - Software 1 01-28-2001 11:34 AM


All times are GMT -5. The time now is 09:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration