Quote:
Originally posted by oubipaws
I am trying to boot my hdb1 drive and here is my grub file but it says 'not found'
|
What do you mean by trying to boot my hdb1 drive?
Do you mean that you are trying to boot a kernel located on the first partition of your 2nd IDE disk?
You should make your file a little tidier to see what you are doing.
Remember that each "title" line starts a new stanza/section.
# 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
#boot=/dev/hda
#-----------------------------------
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
#------------------------------------
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
#------------------------------------
title Dux Linux Stable (2-4-21)
root (hd0,0)
kernel /bzImage root=/dev/hdb1
#------------------------------------
title Dux Linux Unstable (2-6test1)
root (hd0,0)
kernel /bzImage2 root=/dev/hdb1
#-------------------------------------
In each of the sections you have the line root(hd0,0).
That is a reference line used by grub for the location of its files and the location of the / specified on the kernel line.
Remember always that grub starts numbering from 0.
So root(hd0,0) means hd0 - disk 1, 0 - partition 1.
Assuming you have not SCSI disks, that means (hd0,0) references hda1.
So for each section you are saying look for kernel /image on hda1.
If your Dux Linux kernel images bzImage and bzImage2 are located
on partition 1 of disk 2, then you need to change the root specification to
root(hd1,0)
for each of the sections for Dux Linux kernel images.
To give another example -
If by preference you had a seperate boot partition on your 2nd ide disk,
eg your had /dev/hdb1 /
and /dev/hdb2 /boot
/dev/hdb3 /usr
etc etc
and your vmlinuz images were on /boot
then you would need to say
root(hd1,1)
kernel image=bzImage root=/dev/hdb2
Remember this and you will not go wrong in future --
0) grubs starts counting from 0
1) The root command specifies where grub looks for the kernel image to boot.
2) The kernel image needs to have the parameter root to identify the root file system to mount.