Grub problem (everything got screwd)
From: enclume42 (enclume42_at_hotmail.com)
Date: 12/30/03
- Next message: Les B. Labbauf: "Re: Pinball Icon During Gnome 2.4 Bootup"
- Previous message: David Efflandt: "Re: Access forbidden on User webpages"
- Next in thread: Douglas Mayne: "Re: Grub problem (everything got screwd)"
- Reply: Douglas Mayne: "Re: Grub problem (everything got screwd)"
- Reply: enclume42: "Re: Grub problem (everything got screwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Dec 2003 18:42:56 -0800
Hi,
Lately I am getting from bad to worse: My Win98 (on /dev/hda partitions)
got screwd, and I wanted to reinstall it. As it is likely that the Win98
installer will overwrite the MBR, I wanted to test the reinstallation of
Grub to gain access to my Linux (RH9, on /dev/hdb partitions) after
reinstalling Windows.
The problem is that trying to install Grub (from a Knoppix 3.2 CD)
I have messed up my system and I cannot boot anything anymore (except
Knoppix from CD). I guess I need some help... (First time I am "playing"
with Grub and MBRs...)
I have a /boot partition on /dev/hdb1.
The commands I have run are the following (as root):
# grub
grub> find /grub/stage1
(hd1,0)
grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /grub/stage1 d (hd0) (hd0)1+16 p (hd1,0)/grub/stage2 /grub/me
nu.lst"... succeeded
Done.
grub> quit
Despite the successes reported by grub, rebooting yields a system hanging
after PCI probing (visually the last stage before booting from disk
when everything worked) and this without any error message.
Is there anything wrong in the way I am using Grub ?
What is the role of the "root" command, if "setup" searches anyway
for stage1 and stage2 ? (As I understood it, it is the place where
Grub searches for the configuration files. Am I wrong ?)
Any advice ?
Thanks a lot for any help.
Happy new year.
---- additional information below ----
My menu.lst (comments removed):
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-20.9)
root (hd1,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/1
initrd /initrd-2.4.20-20.9.img
title Red Hat Linux 9 (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1
# end of menu.lst
My device.map:
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
# end of device.map
Other useful information (?):
----------------------------
# fdisk -l /dev/hda
Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1460 11727418+ c Win95 FAT32 (LBA)
/dev/hda2 1461 3245 14338012+ c Win95 FAT32 (LBA)
/dev/hda3 3246 3500 2048287+ 82 Linux swap
/dev/hda4 3501 4866 10972395 f Win95 Ext'd (LBA)
/dev/hda5 3501 4866 10972363+ 83 Linux
(Please ignore Linux partitions on /dev/hda, they will disappear soon.)
# fdisk -l /dev/hdb
Disk /dev/hdb: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 382 3068383+ 83 Linux
/dev/hdb2 383 1657 10241437+ 82 Linux swap
/dev/hdb3 1658 14589 103876290 83 Linux
(/dev/hdb1 is my /boot partition, /dev/hdb3 is my / partition.)
- Next message: Les B. Labbauf: "Re: Pinball Icon During Gnome 2.4 Bootup"
- Previous message: David Efflandt: "Re: Access forbidden on User webpages"
- Next in thread: Douglas Mayne: "Re: Grub problem (everything got screwd)"
- Reply: Douglas Mayne: "Re: Grub problem (everything got screwd)"
- Reply: enclume42: "Re: Grub problem (everything got screwd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|