View previous topic :: View next topic |
Author |
Message |
davjay n00b
Joined: 13 Jul 2002 Posts: 4 Location: Stockholm
|
Posted: Sat Jul 13, 2002 10:42 pm Post subject: Grub and DISK BOOT FAILURE... |
|
|
Hi!
Anyone get this problem?
Boot from CD works great and setting everything up and compiling and all... but when I run Grub and do it exactly as is says
root (hd0,0)
setup (hd0)
I have one IDE and one SCSI drive and I'm installing like this
/dev/hda1 /boot
/dev/hda2 /
swap on sda1
When running Grub I don't get any errors or anything... after rebooting I keep getting DISK BOOT FAILURE. It's like Grub doesn't write to the boot partition.
The system is a dual PPro on a Tyan Titan Pro ATX, Adaptec card, 1 SCSI disk, 1 SCSI CD, 1 IDE 12Gb, 3Com NIC
I've searched the groups for an answer to this and via google... bur well can't find anything appropriate... If anyone has a clue I'd be grateful.
Thanx!
/Dave |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sat Jul 13, 2002 10:50 pm Post subject: |
|
|
It sounds like you are doing things properly. Is there a chance that your BIOS isn't setup to boot from the hard disk? _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
davjay n00b
Joined: 13 Jul 2002 Posts: 4 Location: Stockholm
|
Posted: Sat Jul 13, 2002 10:54 pm Post subject: |
|
|
Hmmm well as I recall it booted properly with NT4 but that was a whie ago and I might a switched in a new disk also...
Maybe I should just try with some other disk lying around... :-/ _________________ Wile E. Coyote, Super Genius |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sat Jul 13, 2002 10:58 pm Post subject: |
|
|
Also, I have found that grub is a bit weird on the whole (hd0,0) thing. My HDD is /dev/hde and in grub it is still (hd0,0)... _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Jul 13, 2002 11:28 pm Post subject: |
|
|
Aruspex wrote: | Also, I have found that grub is a bit weird on the whole (hd0,0) thing. My HDD is /dev/hde and in grub it is still (hd0,0)... | Grub acknowledges only hard disks. The first hard disk Grub sees is (hd0), regardless of the controller it is located on. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Guest
|
Posted: Sun Jul 14, 2002 5:39 am Post subject: |
|
|
Do a search for grub and scsi. There was apost in the last couple of days
about grub, scsi, chroot. problems. |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sun Jul 14, 2002 5:43 am Post subject: |
|
|
Do a search for grub and scsi. There was apost in the last couple of days
about grub, scsi, chroot. problems. Once they exited chroot grub would install crrectly. |
|
Back to top |
|
|
davjay n00b
Joined: 13 Jul 2002 Posts: 4 Location: Stockholm
|
Posted: Sun Jul 14, 2002 8:56 am Post subject: |
|
|
Well well sometimes being tired is not very good... it seems that I'd forgotten to set the bootable flag in fdisk. Found when I got up this morning...
Thanks for the help!
/Dave _________________ Wile E. Coyote, Super Genius |
|
Back to top |
|
|
Guest
|
Posted: Thu Aug 01, 2002 5:56 pm Post subject: Same Errors |
|
|
I am getting the same error on boot.
here's my info.
First off, I've installed to a quite old harddrive, its a 2gig and probably about 10 years old :S so maybe thats the source of my problems, but i'll continue anyway.
fdisk
Code: |
Disk /dev/hda: 128 heads, 63 sectors, 620 cylinders
Units = cylinders of 8064 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 26 104800* 83 Linux
/dev/hda2 27 92 266112 82 Linux Swap
/dev/hda3 93 620 2128896 83 Linux
|
grub
Code: |
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
|
menu.lst
Code: |
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3
|
/etc/fstab
Code: |
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / xfs noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
|
Your help is appreciated!
:lazydesert |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 01, 2002 6:32 pm Post subject: Re: Same Errors |
|
|
Anonymous wrote: | /etc/fstab
Code: |
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / xfs noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
|
| /dev/BOOT (and ROOT, SWAP) were only examples. The instructions indicate to change them, perhaps it is a little deceiving.
/dev/BOOT should be /dev/hda1
/dev/ROOT to /dev/hda3
/dev/SWAP to /dev/hda2 _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Thu Aug 01, 2002 6:35 pm Post subject: |
|
|
oops, yeah, i have that changed. i must not have updated that section of my post (i thought i did :\ ) and i have exactly what you suggested.
any other ideas ? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 01, 2002 6:39 pm Post subject: |
|
|
Did you mount /boot before copying the bzImage file to it? If not, that could be it. You should be able to boot from the install CD and mount /boot to check.
For minimizing corruption potential, /boot is not mounted by default. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Thu Aug 01, 2002 6:46 pm Post subject: |
|
|
i dont think it is.
i must have forgotten a step.
could you please post instruction on how to remedy?
thanks! |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Aug 01, 2002 6:53 pm Post subject: |
|
|
See if this thread helps with an explanation. If it does, and you've booted & mounted /, then follow the steps under the install doc for copying the bzImage file. See code listing 25 for more info. You should be able to do this (if you already did the two make lines) Code: | # mv /boot/bzImage /boot/bzImage.orig [if bzImage already exists]
# cp /usr/src/linux/arch/i386/boot/bzImage /boot
| Again, be sure /boot is mounted. You should see a grub directory if it is. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Fri Aug 02, 2002 7:16 am Post subject: |
|
|
kanuslupus wrote: | See if this thread helps with an explanation. If it does, and you've booted & mounted /, then follow the steps under the install doc for copying the bzImage file. See code listing 25 for more info. You should be able to do this (if you already did the two make lines) Code: | # mv /boot/bzImage /boot/bzImage.orig [if bzImage already exists]
# cp /usr/src/linux/arch/i386/boot/bzImage /boot
| Again, be sure /boot is mounted. You should see a grub directory if it is. |
alright, thanks for you help, i must have gone wrong in this step because bzImage wasnt in /boot..
BUT
it still doesnt boot.
bzImage is in /boot
grub is in /boot
menu.lst
Code: |
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3
|
thanks! |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Fri Aug 02, 2002 8:16 am Post subject: |
|
|
hahahaha! yippie!!
found the problem...
drive jumpers!
had the drive set to master while it was the only drive on the cable.
switched to single and kaplah! boot!
i get two !! symbols when i boot though
loading module tulip.. failed
bringing up eth0.. failed
both related.. i thought tulip was a module. . .
i'll have to look into the problem .. a little research on the board.
feel free to post here if you have suggestions!! thanks to everyone!! |
|
Back to top |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Fri Aug 02, 2002 8:34 am Post subject: |
|
|
Did u enable it as a module whe u made ur kernel? |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Fri Aug 02, 2002 8:54 am Post subject: |
|
|
in the process right now of recompiling the kernel
added tulip support as built-in, not as a module
removed the tulip entry in /etc/modules.autoload
was this a correct thing to do ?
or should it be a module and keep the entry ? |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Fri Aug 02, 2002 9:04 am Post subject: |
|
|
eth0 is working now!
i feel so good about everything! wow, .. 4am, i should go to bed.
on task for tomorrow --> x and gnome2
thanks! |
|
Back to top |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Fri Aug 02, 2002 9:18 am Post subject: |
|
|
lazydesert wrote: |
in the process right now of recompiling the kernel
added tulip support as built-in, not as a module
removed the tulip entry in /etc/modules.autoload
was this a correct thing to do ?
or should it be a module and keep the entry ? |
Yeah that works fine. BTW, if ur still awake u should start X before u sleep because its long. |
|
Back to top |
|
|
lazydesert n00b
Joined: 01 Aug 2002 Posts: 20
|
Posted: Fri Aug 02, 2002 9:32 am Post subject: |
|
|
decided against gnome2 .. gonna go with fluxbox
thanks for the advice,
started it moments ago. |
|
Back to top |
|
|
|