Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error
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
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 2:41 pm    Post subject: Grub Error Reply with quote

Alright everything seemed to be working before I rebooted.

I did setup (hd0,0) on the boot partition (hda1) and setup(hd0). It worked fine, gave all the correct messages. And then at boot time it says... GRUB Hard Disk Error. Which doesn't tell me a whole lot. I know the drive is good. Any ideas?

-Kronos
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 2:44 pm    Post subject: Reply with quote

If it helps, i'm using a 2.6 kernel. If there are any extra lines/options I need to throw in. But that shouldn't make it hang soon as it boots, not even splash or anything.

-Kronos
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Mon Mar 01, 2004 2:59 pm    Post subject: Reply with quote

What kind of disk controller are you using? What is your grub.conf? Do you have multiple hard disks?
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
Birnenpfluecker
Guru
Guru


Joined: 01 Sep 2003
Posts: 315
Location: Lage, Germany

PostPosted: Mon Mar 01, 2004 2:59 pm    Post subject: Reply with quote

Could you please post your grub.conf and your /etc/fstab.
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 3:15 pm    Post subject: Reply with quote

Regular IDE controller... no multiple hard disks yet.

grub.conf:

Code:

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

# For booting GNU/Linux
title  Gentoo Linux - 2.6 kernel
root (hd0,0)
kernel (hd0,0)/kernel-2.6 root=/dev/hda4

# For booting Windows NT or Windows95
#title Windows NT / Windows 95 boot menu
#rootnoverify (hd0,0)
#makeactive
#chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root    (hd0,0)
setup   (hd0)

# Change the colors.
title Change the colors
color light-green/brown blink-red/blue


/etc/fstab:

Code:

# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12 2003/03/11 02:50:53 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1      /boot      ext3      noauto,noatime      1 2
/dev/hda2      none      swap      sw         0 0
/dev/hda4      /      ext3      noatime         0 1

/dev/hda5      /mnt/game   ext3      noatime         0 3
/dev/hda6      /mnt/iso   ext3      noatime         0 4
/dev/hda7      /mnt/mp3   ext3      noatime         0 5
/dev/hda8      /mnt/downloads   ext3      noatime         0 6

/dev/fd0      /mnt/floppy         noauto,rw      0 0
/dev/sr0       /mnt/cdrw   iso9660      noauto,ro      0 0
/dev/sr1      /mnt/dvdrom   iso9660      noauto,ro      0 0

none         /proc      proc      defaults      0 0
none         /dev/shm   tmpfs      defaults      0 0


-Kronos
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 3:19 pm    Post subject: Reply with quote

Also, maybe this gives some insight:

Lilo says:

Fatal: First sector of /dev/hda1 doesn't have a valid boot signature.
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Mon Mar 01, 2004 3:30 pm    Post subject: Reply with quote

Ah, hda1 is not flagged as bootable.
Code:
# fdisk /dev/hda
 
The number of cylinders for this disk is set to 2431.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
 
Command (m for help): p
 
Disk /dev/hda: 20.0 GB, 20000000000 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           5       40131   83  Linux
/dev/hda2               6          71      530145   82  Linux swap
/dev/hda3              72        2431    18956700   83  Linux
 
Command (m for help):
Note the asterisk in the boot column. If you do not have this, you need to type 'a' at the fdisk command prompt to toggle the bootable flag.

Lastly, you should remove the section about installing GRUB from the grub.conf file. It doesn't belong in there.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 3:33 pm    Post subject: Reply with quote

Actually, yes, cfdisk reports /dev/hda1 as bootable.

-Kronos
Back to top
View user's profile Send private message
Kronos
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 116
Location: St. Louis area (Wood River, IL)

PostPosted: Mon Mar 01, 2004 8:16 pm    Post subject: Reply with quote

Anyone have any further ideas whatsoever? Kinda stuck here.

-Kronos
Back to top
View user's profile Send private message
G2k
l33t
l33t


Joined: 06 Mar 2004
Posts: 672
Location: Rome, Italy

PostPosted: Tue Mar 09, 2004 12:10 am    Post subject: Reply with quote

I'm in the same exact situation....
fstab looks fine, i have the * under my windows xp partition and my linux boot partition, my grub.conf file was checked by multiple people including ops in #gentoo and I did the grub shell thingy correctly but still, it gives me the error GRUB hard disk error. I'm using a 2.6.3 gentoo-dev-sources kernel (genkernel if that helps any.) I'm pretty much stuck here so any help is appreciated :(
Thnx
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