Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub booting ... did I forget something?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Tue May 24, 2005 4:42 am    Post subject: Grub booting ... did I forget something? Reply with quote

The error is "Disk boot failure, insert system disk and press enter" on startup.

Alright, I've searched the forums pretty extensively and I in fact found a lot of things that I needed to fix, but I still get the error after doing so. What I HAVE done is... (I am using exactly the configuration in the handbook, manually configured kernel)

- marked /dev/hda1 as bootable
- created a grub.conf that referenced (hd0,0) and the boot image
- installed grub using install-grub and copied over the image and System.map (using 2.6.11 r9 in the name, not r3 as in the handbook)
- ensured that my hard drive is in the BIOS's boot order
- ensured that my computer boots from the Gentoo CD successfully
- verified my /etc/fstab against the example in the handbook

What I have not tried is...

- checking my ATA chain or other hardware work. Someone mentioned something about that but I don't know how to do it or what to look for.
- fdisk mentioned something about my hard drive having too many cylinders for some legacy programs -- didn't really understand it, but since my BIOS recognizes it so swimmingly, I figured it wasn't an issue.

Is there anything else I might be missing? I can provide /etc/fstab, grub.conf, etc., if anyone thinks it might be useful.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Tue May 24, 2005 5:03 am    Post subject: Reply with quote

Either you didn't install grub to the MBR, or you have a device with no boot record higher in the order.
I'd be betting on a (non-system) floppy in the drive, or no boot-loader (the floppy is handled differently by the BIOS).
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Tue May 24, 2005 5:27 am    Post subject: Reply with quote

syg00 wrote:
Either you didn't install grub to the MBR, or you have a device with no boot record higher in the order.
I'd be betting on a (non-system) floppy in the drive, or no boot-loader (the floppy is handled differently by the BIOS).


Ooh, funny you should mention that. Don't have my floppy drive plugged in (lost the cable). Grub always complained that it couldn't find the IRQ for the floppy drive, but I ignored it. I'll try plugging the floppy drive in and reloading grub on the MBR.

EDIT: Disabling the floppy completely in the BIOS didn't work. Does it matter that the device listing displayed above the "disk boot failure" error does NOT show my hard drive as the Primary Master Disk? It shows the CD-ROM as the secondary master disk. In the BIOS it recognizes my hard drive when I set Primary Master to "Auto," so I don't know what the problem could be.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
devilrick
n00b
n00b


Joined: 21 Feb 2005
Posts: 61
Location: The oh so great South East of England

PostPosted: Tue May 24, 2005 8:12 am    Post subject: Reply with quote

It shouldn't matter where your drive is in IDE bus terms, what is important is that it is listed at the top of the list (or just below cd-rom if you like) in your bios boot options. Depending on the bios that will mean having either IDE drive or a speciific IDE drive listed. If there is just the option for IDE hard drive and that is at the top of the list the error is most likely with grub. If you have options of which ide device specifically is in the boot order make sure you have the right one listed.
_________________
Today is good, for I am a part of it.
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Tue May 24, 2005 6:58 pm    Post subject: Reply with quote

There is an option for my specific IDE hard drive (Quantum Fireball blah blah) and it was just below CD-ROM. I moved it to the top of the list to no avail. This means the error is most certainly with grub. I did a manual kernel build using almost exclusively the default settings. I copied over the image and System.map, wrote the following conf file, and executed grub-install:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r9 root=/dev/hda3
video=vesafb:mtrr,ywrap,1024x768-32@75
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Tue May 24, 2005 9:01 pm    Post subject: Reply with quote

Another thing I didn't think of ... boot virus protection has been enabled. I disabed it and recreated the MBR. Still doesn't work.

Right now I am rearranging the devices on my IDE chain to see if any of that will do the trick.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
Scarlet Pimpernel
n00b
n00b


Joined: 24 May 2005
Posts: 25
Location: Toronto

PostPosted: Tue May 24, 2005 9:14 pm    Post subject: Reply with quote

Go into your BIOS and make sure you are trying to boot off the right drive.
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Tue May 24, 2005 10:04 pm    Post subject: Reply with quote

This is a BIOS message, not a message issued from the loader code in the MBR. The BIOS is not recognising the (whole) MBR as valid. I think it checks for the signature bytes at the end of the partition tale, but I don't (currently) happen to have a machine I can screw around on and test this.

Sounds like some-one has been fiddling around in the MBR - doesn't sound like a grub error.
I'd be inclined to run fdisk and write the partition back again just to be sure.
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Wed May 25, 2005 12:26 am    Post subject: Reply with quote

Sounds like a good plan.

If I delete and recreate the boot partition, what install steps would I have to replicate to get all the necessary files in /boot?
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Wed May 25, 2005 1:11 am    Post subject: Reply with quote

Damn - sorry, my previous post should have said partition table.
Hopefully merely reading and then re-writing the table from fdisk (Linux variety) should suffice.

Also it's non-destructive in that circumstance.
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Wed May 25, 2005 5:52 am    Post subject: Reply with quote

No dice. I am wiping the drive and trying again from scratch.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 25, 2005 5:04 pm    Post subject: Reply with quote

How did you install grub?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Wed May 25, 2005 6:38 pm    Post subject: Reply with quote

I emerged it, wrote a conf file, and used grub-install. I've also used grub and grub --no-floppy.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed May 25, 2005 6:45 pm    Post subject: Reply with quote

What command did you give with grub-install and later with grub?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Wed May 25, 2005 7:00 pm    Post subject: Reply with quote

First attempt:

Code:
cp /proc/mounts /etc/mtab
grub-install /dev/hda


Second attempt:

Code:
grub
> root (hd0,0)
> setup (hd0)
> quit


Third attempt I added the --no-floppy switch to "grub". Before that I had just commented out the floppy drive in the device.map file.
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
racer_alpha
n00b
n00b


Joined: 28 Apr 2005
Posts: 25

PostPosted: Wed May 25, 2005 7:06 pm    Post subject: Reply with quote

Hook a floppy drive up, put a disk in the drive, and try this...

grub
> root (hd0,0)
> setup (fd0)
> quit

Then restart the computer booting off the floppy. If it boots, it might be a harddrive problem?
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Wed May 25, 2005 7:10 pm    Post subject: Reply with quote

Ditto here, try booting using a Grub CD or floppy. But first try reconnecting the floppy, re-enabling it in the bios, etc.

I concur with syg00 that this is a BIOS/hardware issue.
_________________
Regards,
Mick
Back to top
View user's profile Send private message
Syzygy
n00b
n00b


Joined: 30 Apr 2004
Posts: 31
Location: Beloit, WI

PostPosted: Thu May 26, 2005 7:33 am    Post subject: Reply with quote

I've tried a slightly easier approach first. I've installed Windows on the disk. That is to say, I boot from the Windows CD and let it copy over the Windows installer to my drive and then restart the computer in preparation for the installation. However -- possibly not surprisingly -- when the computer restarts it refuses to boot from the drive.

At this point it's safe to say something's probably wrong with the MBR blocks on my drive. Is there anything I can do to fix this? Any way to zero out all the data and get a fresh new drive?
_________________
Tim Morgan
DP G5/1.8GHz, no working Gentoo (yet...)
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Thu May 26, 2005 9:52 am    Post subject: Reply with quote

Ahhhh ... yep, that's pretty easy.
BUT - there are suggestions that XP may not play nice with all zeroes. Again, I haven't tested this myself, but seems XP likes to have a drive id.
It'd be nice to chase this. Got another drive, or a floppy ???.
Save your MBR thus
Code:
dd if=/dev/hda of=/dev/hdb1/badmbr.dat bs=512 count=1
(or of=/dev/fp0/badmbr.dat - whatever)

I use hexedit to look at these things - maybe get that, and post the bytes on the last line - address 01F8 for 8 bytes.
Simply
Code:
hexedit /dev/hdb1/badmbr.dat

Control-C as normal to quit.

As to your query
Code:
dd if=/dev/zero of=/dev/hda bs=512 count=1

This will zero the MBR - that means the partition table and signature bytes as well.
You have been warned.
Me, I'd fdisk the drive again before starting with XP - make one (at least) decent sized fat32 partition and save it.
Then run
Code:
hexedit /dev/hda
and look at the last two bytes - they should read 0x55AA.

If so, you should be good to go - else I'd go find a Win98 boot and fdisk it with that.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Thu May 26, 2005 3:25 pm    Post subject: Reply with quote

Or, if you want to leave the master partition table intact only back up the first 446 bytes where the boot code resides. 512 bytes include the table. I believe that running fdisk will rewrite the table (you may need to e.g. add a new partition to cause a write, or change the bootflag, etc.) There's some apps out there that will allow you to directly edit the MPT, like PowerQuest's Partition Table Editor (ptedit.exe). But unless you have some idea what you're doing you could hose your MPT or worse.

Running the DOS command fixmbr will rerwite the WinXP bootloader code into the MBR and as far as I know rescan the drives and rewrite the MPT.
_________________
Regards,
Mick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum