GRUB Hard disk error
I installed Ubuntu on my computer with the CD. I wanted to install Ubuntu as the only OS on the system. I selected the option Guided Partition, using the full hard drive. Everything seemed fine. When I restarted, I got "GRUB Hard disk error." So, I put the CD back in, restarted and selected "boot from first hard disk." Ubuntu started. Since then, I've been researching what could possibly be wrong with the Grub. I've tried several things using message boards, but can't seem to find an answer. I've tried:
sudo grub
root (hd0,0)
setup (hd0)
(That reported success, but problem was still there).
I've got a IBM Intellistation 6850-LRU w/ 2x1.5 Xeon Processor, 2GB ram, and 36 GB SCSI hard drive.
Originally, I thought the problem was with the Grub. I would not rule out something with my hardware setup either.
Any help would be much appreciated!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu grub Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Can you copy and paste here:
sudo fdisk -l
and
sudo gedit /boot/grub/menu.lst
Thank you
Revision history for this message
|
#2 |
sudo fdisk -1
Disk /dev/sda: 36.4 GB, 36401479680 bytes
255 heads, 63 sectors/track, 4425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4238 34041703+ 83 Linux
/dev/sda2 4239 4425 1502077+ 5 Extended
/dev/sda5 4239 4425 1502046 82 Linux swap / Solaris
sudo gedit /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_
## kopt_2_
# kopt=root=
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative
## lockalternative
# lockalternative
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=
# altoptions=
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaulten
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Revision history for this message
|
#3 |
It seems good do you have some bios boot antivirus protection active...?
If yes disable it.
I have similar problem with sda identified hard disk i ha solved it by reinstalling grub with the below steps:
Boot from Ubuntu live cd try to reinstall GRUB by opening a terminal and typing:
You type: sudo grub
System answer: grub>
You type: find /boot/grub/stage1
System answer: (hdx,y) <-- here you values
You type: root (hdx,y) <-- change the hdx,y values
You type: setup (hdx) <-- change the hdx value
Then exit and reboot the system without live cd.
HTH
Revision history for this message
|
#4 |
Grub manual says this:
"Hard Disk Error
The stage2 or stage1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk failed. "
Some bios settings can be wrong, or the bios may just be old or buggy. There are some reports of solving this with a bios upgrade, but your set up looks rather new, what about the motherboard and bios version?
Revision history for this message
|
#5 |
I have no AV running, unless Ubuntu comes with AV already running.
I have already tried these steps before. But will do again.
Here is the output:
grub> find /boot/grub/stage1
(hd0,0)
grub> root(hd0,0)
Error 27: Unrecognized command
grub> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/
Running "embed /boot/grub/
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)
/boot/grub/
Done.
Exit and reboot. That did not work.
Do you have any other suggestions? I really appreciate the help.
Revision history for this message
|
#6 |
I don't mean Antivirus when i say bios antivirus protection but i mean a bios option that protect boot sector from writing. Look for it into your bios setting and disable it if it is on.
Regards
Revision history for this message
|
#7 |
Antivirus protection in bios could interfere writing master boot record (rather not because this grub update suceeds)
You can enter bios setup by pressing F1, F2, or delete (or something other but it should be printed) just after the computer starts. Things there are rather advanced, so don't go lightly changing everything. You should have a manual explaining all these options.
Revision history for this message
|
#8 |
I looked around in the bios and noticed the AV. It was already disabled. The BIOS said CMOS Setup Utility Award Software. The date was 07/15/2003. I also saw there is bios for SCSI. Adaptec SCSI BIOS V3.10 that had a date of 2001. So, I guess these are kind of old.
As more back reference I bought this PC used. When I got it, Fedora Core (6 I think) was installed. I tried to install Ubuntu over Fedora as the only OS. I heard Ubuntu is better :)
Revision history for this message
|
#9 |
Can you copy and paste:
cat /boot/grub/
here.
Thank you.
Revision history for this message
|
#10 |
This is what got.
(hd0) /dev/sda
Thanks,
Skyler
Revision history for this message
|
#11 |
FYI -- I noticed that when I boot from the live cd, using the 'boot from first hard disk' option Grub pops up very briefly and then the OS loads. Does this mean the problem is in the BIOS? If so what are updates/settings changes I could perform?
I'm trying to understand my problem a little bit better, and help drive out a solution. What is the purpose of the GRUB? From reading it seems it's used for multi-boot situations. So if I'm only booting one OS why do I need it?
Would there be a work around or another solution besides using Grub. Would it be possible to remove GRUB and install LILO if so, how?
Revision history for this message
|
#12 |
The problem can be with bios, but it's really hard to tell. You could update your bios, but it's a procedure you want to take as rarely as possible -- this means electronically updating firmware on the motherboard.
Check your motherboard or bios manufacturer for a flash utility and newer bios image. If you can provide me some bios numbers i might be able to check for you if there are updates that would fix something like that.
Adaptec support: http://
Award bios can come from different manufacturers, so more details are needed to identify it.
In any case you need some bootloader, windows also has one, some basic explanation of the boot process can be found here:
https:/
You could replace grub with any other bootloader, but you would probably have to figure out yourself how to configure it, and this can be not so easy. Some other boot loaders may not work too.
You could use anything like a floppy or usb stick for booting (as far as your bios would allow this :).
Revision history for this message
|
#13 |
Is there possibly a problem with Ubuntu and SCSI drives? or with my particular configuration of SCSI drives? Any documentation on Ubuntu and SCSI drives?
Thanks for all the help. I honestly, really appreciate it.
Revision history for this message
|
#14 |
It is a problem with grub/bios, but changing some settings of the drive in bios could help. I don't think there's any special documentation on ubuntu & scsi or grub & scsi -- in most cases it just works. Maybe you could try using older ubuntu, older grub.
I would try to:
- try to change some settings of the drive in bios, experiment a bit with those settings (make sure your disk works in lba mode for example)
- reinstall grub (see chapter 16 in http://
- update bios or live with starting from cd :)
I've looked through the bugs and there are some similar but nothing exactly like that, i guess you can report it if you wish. But before that could you give those bios numbers and probably drive name/model?
Revision history for this message
|
#15 |
I came up with a solution/hack to fix this problem. When my computer loaded I pressed Ctrl A to load the SCSI bios. I then changed the SCSI device controller from 7 to 0. I don't think this is really a fix as device 0 is my hard drive, but it is a work around. I think now I would have problems if I tried to add another hard drive. Basically, I don't know if that would be recognized. Does this work around identify what the problem was, and is there a more long term fix? Any ideas?
Revision history for this message
|
#16 |
What the former option (controller 7) meant? If you could provide me with some link to a manual to your drive, or it's model it would be much easier to tell anything. I don't really know those scsi bioses by heart ;)
Revision history for this message
|
#17 |
The former option, 7, was the SCSI id of the SCSI controller. Have changed that to 0 which is also the SCSI id of my boot disk and my first hard drive. I have no idea how or why it works.
My hard drive is IBM ESXS ST33660SLU. I have an Adaptec SCSI controller, don't know the model number.
Here is a link for the system bios from Award Software
www.phoenix.
Not sure if this is for the specific SCSI controller I have, but the part about called 'Configuring with SCSI Select' is correct as to what the SCSI bios looks like.
http://
Mostly just adding this stuff so if anyone ever comes across this problem they'll have an idea where to look. I don't know if there is a solution to this problem.
Revision history for this message
|
#18 |
I found the model number for the SCSI controller it is AIC 7899W
Revision history for this message
|
#19 |
Have you check if your bios have some option to boot from scsi if it don't have try to remove any defined old or recognized by bios hard disk. Then try to boot.
HTH
Revision history for this message
|
#20 |
Have you a real SCSI attached hard-disk or your disk is a sata disk normally recognized by system as sda as SCSI if you dont have a real SCSI disk i suggest to remove SCSI card from the system and try to boot.
HTH
Revision history for this message
|
#21 |
For bios updates, would that be suitable for your system?:
http://
I'm not sure, it's probably best to check by some parts' numbers. Anyway nothing in the change log that looks like it would help with your problem.
For the scsi bios it's worse, can't find anything at all, maybe you'll have more luck. Adaptec's support: http://
Can you help with this problem?
Provide an answer of your own, or ask scn003 for more information if necessary.