boot loader problem
boot loader problem
i installed slack 9.1 and had it load into MBR .. i then insalled fc1 to dual boot the 2 but i screwed up and also had fc1 load to mbr so now i can't boot slack. any suggestions to fix it without relaoding either one?
Chris
Chris
Put this in your /boot/grub/menu.lst
This assumes slackware is installed on the second partition of the first hard disk.
The 2nd partition is called (0,1) to grub. ie First disk (0), second partition(1).
You should observer it starts counting at 0.
Code: Select all
title Slackware 9.1
root (hd0,1)
kernel /boot/vmlinuz-ide-2.4.22 ro root=/dev/hda2
The 2nd partition is called (0,1) to grub. ie First disk (0), second partition(1).
You should observer it starts counting at 0.
-
- guru
- Posts: 562
- Joined: Thu Jan 09, 2003 8:25 pm
I dont think you need to have "root (hd0,0)" if you put "root=/dev/sda3" or whatever partition slackware is installed on.... at least i dont have it on any of mine.
so it would be just
(i believe i saw you were using scsi in an earlier post.. ergo the sda3)
so it would be just
Code: Select all
title Slackware 9.1
kernel /boot/vmlinuz-ide-2.4.22 ro root=/dev/sda3
thanks for the advice. I added the follwing line to my grub.conf
kernal /boot/vmlinuz-raid-2.4.22 ro root=/dev/sda1
my drives are on a scsi raid 5 which is why i used raid in the command instead of ide because I had to use the raid.s image in slack to run also the slack partition is the first one one the drive. now when i boot i still get the following error message
rootnoverify (hd0,0)
chainloader +1
Error 13: Invalid or unsupported executable format
Press any key to continue
any ideas?
thank again
chris
kernal /boot/vmlinuz-raid-2.4.22 ro root=/dev/sda1
my drives are on a scsi raid 5 which is why i used raid in the command instead of ide because I had to use the raid.s image in slack to run also the slack partition is the first one one the drive. now when i boot i still get the following error message
rootnoverify (hd0,0)
chainloader +1
Error 13: Invalid or unsupported executable format
Press any key to continue
any ideas?
thank again
chris
-
- guru
- Posts: 562
- Joined: Thu Jan 09, 2003 8:25 pm
oh.... well... errr...
first i must ask; is there in fact a /boot/vmlinuz-raid-2.4.22 in FC1?
If there isnt you may have to (in Fedora) mount /dev/sda1 (Slackware Partition?) and then copy the kernel from the Slackware partitions boot directory and copy it to Fedora's /boot
I know i had to do the opposite (copy Fedora's kernel to my Slackware /boot" when i made them dual boot.
first i must ask; is there in fact a /boot/vmlinuz-raid-2.4.22 in FC1?
If there isnt you may have to (in Fedora) mount /dev/sda1 (Slackware Partition?) and then copy the kernel from the Slackware partitions boot directory and copy it to Fedora's /boot
I know i had to do the opposite (copy Fedora's kernel to my Slackware /boot" when i made them dual boot.
here is my grub.conf file and my fstab
# 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,2)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,2)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title Slackware 9.1
rootnoverify (hd0,0)
chainloader +1
kernal /boot/vmlinuz-ide-2.4.22 ro root=/dev/sda1
here is my fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda1 /mnt/slack
/dev/sda2 swap swap defaults 0 0
/dev/sda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
after posting this now i see where my error concerning the mount is i didn't fill in all of the needed values. but my original problem remains i still get same error when trying to boot slackware. i have copied the vmlinuz-ide-2.4.22 file to my fc boot partition .
any suggestions?
chris
# 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,2)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,2)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title Slackware 9.1
rootnoverify (hd0,0)
chainloader +1
kernal /boot/vmlinuz-ide-2.4.22 ro root=/dev/sda1
here is my fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda1 /mnt/slack
/dev/sda2 swap swap defaults 0 0
/dev/sda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
after posting this now i see where my error concerning the mount is i didn't fill in all of the needed values. but my original problem remains i still get same error when trying to boot slackware. i have copied the vmlinuz-ide-2.4.22 file to my fc boot partition .
any suggestions?
chris