Linux - SoftwareThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have RedHat 7.3 installed on my 1st hard drive (master), and I installed OpenBSD 3.0 on my second hard drive (slave) and I need to know how to edit my grub.conf file in order to boot OpenBSD. I added an OpenBSD section that I found on the internet (see below), but what I have entered does not work. OpenBSD is installed in the default formation (wd1a is root). I'm guessing I need to know where my OpenBSD kernel is located, but how do I do that from Linux?
# 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
title Red Hat Linux (2.4.18-5)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda2 hdc=ide-scsi hdd=ide-scsi
title Red Hat Linux (2.4.18-3)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda2 hdc=ide-scsi hdd=ide-scsi
title OpenBSD 3.0
In your first post, what does ' wd1a ' stand for? Is your second drive primary slave or secondary slave? There is a file /boot/grub/device.map that lists names that grub gives to the drives. Example:
Could you post a copy of it? It doesn't give names to cdrom drives, because it doesn't consider them bootable.
There is one problem with using this file. If you added the drive after grub was installed, the drive won't be listed. You can add it yourself if you can figure out what it would be named. Or you could run grub-install --recheck.
You might be able to figure out what it calls your drive and you can replace it in the ' root ' line. If you do figure it out, run fdisk -l /dev/hd?? and see what the partitions are. Then you can figure out which partition to use with the drive name.
Let's say you find that the drive is hd2 and the partition that looks most likely to be the OpenBSD partition is the first partition. Then this is what you would use: (hd2,0). I hope this helps.
I ran grub-install --recheck and it caused device.map to read:
by adding the line (hd1) /dev/hdb. I tried to run fdisk, but I got a command not found message. Does RedHat have another utility that it uses?
Also, after I ran grub-install --recheck, it caused my computer to hang at "GRUB Loading stage2..." after I restarted. I had to use the RedHat install cd to upgrade the boot loader configurartion. Was there a step after grub-install that I missed?
Altering grub.conf to read (hd1,0) on the OpenBSD root line did't allow me to boot OpenBSD
I don't know why your computer hung after running ' grub-install --recheck ' and then rebooting. I told someone else to use it and they had no problem. Maybe you might have to give the location where you want grub installed. I don't have the ' --recheck ' option for my grub. I have an old version of grub.
Running fdisk gave you only hdb1 and hdb4? Try hdb4.
hdb4 = (hd1,3)
You have to subtract 1 ( one ) from the partition number for grub.