Click to See Complete Forum and Search --> : GRUB problem after installing Debian


jot-87
09-08-2004, 02:01 PM
I just re-installed Debian Sarge. i have created a boot partition (on hdc3). When I tried rebooting all I get is a black screen with "GRUB" and a blinking cursor, but nothing happens and I can't type anything.

the partitions looks something like this, I don't wan tto touch the two FAT32 partitions, I don\t care about the rest (have nothing of any value on them yet):
hdc1: win98, 4GB, pri
hdc2: swap, 1GB, pri
hdc3: /boot, xMB, pri
hdc4: /, 4GB, logical
hdc5: /home, 1GB, logical
[EMPTY SPACE]
hdc6: FAT32, 14GB, logical

How can I fix grub? I'd like to have a menu etc. like before. (Right now I\m running Knoppix/Kanotix.)

JohnT
09-08-2004, 02:54 PM
Does this scenario look familiar?

Installation From A GRUB Floppy
This is the way to install GRUB to the MBR, and create a boot floppy at the same time. Change to your /grub/$ARCH directory, and copy the stage1 and stage2 boot images to a floppy disk:

# dd if=stage1 of=/dev/fd0 bs=512 count=1

# dd if=stage2 of=/dev/fd0 bs=512 seek=1

Now reboot to the floppy disk. You should be greeted by the nice blue GRUB screen:

GRUB version 0.93 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub>

First, find the location of the boot files:

grub> find /boot/grub/stage1

(hd0,0)

Now set the root device:

grub> root (hd0,0)