Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.