Grub Reinstall Problem!!!
Joe(theWordy)Philbrook
jtwdyp at ttlc.net
Tue Jun 1 05:41:37 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It would appear that on May 31, Peter Boy did say to Chiheb Djabri:
> If you have lost your grub by a windows install, you lost your MBR (the
> first boot sector on your harddisk). The content of your /boot partition
> is still in place.
>
> To reinstall the mbr you have to perform
> grub-install /dev/hda
>
> You should boot from the first Fedora CD in rescue mode, the program
> will found your Linux installation and mount it. It will give you some
> information how to make your installed root partition to your new root
> (chroot command). Check, that the /boot partition is mounted, too.
Hmmmn interesting... I too am new to grub (much more used to lilo) And
so since I hadn't yet found the time to learn this I was pleased to see
this info...
I have a couple of questions though.
With lilo, if I install it to mbr with "lilo -b /dev/hda" I can also make
a back up boot floppy with "lilo -b /dev/fd0" without breaking the one
in /dev/hda... That is, I normally would get my lilo boot from the mbr of
/dev/hda. But if something trashes the mbr All I have to do is pop in the
lilo boot floppy and I can still boot any of my {undamaged} linux, and
probably my win98 & DrDos. I wouldn't need to fuss with the rescue mode
at all. I just rerun "lilo -b /dev/hda" And I'm done. (though I may have
had to "sys" the windows or DrDos partitions to make them bootable again
first...)
With grub, if I make a working boot floppy with "grub-install /dev/fd0"
then the one I had in /dev/hda is broken (infinte loop of the word grub
being printed to the screen) If I boot from the floppy and do a
"grub-install /dev/hda" The mbr can boot again, but now the grub floppy
boot is broke...
1) is it possible to install the same grub to start from the mbr OR from
a floppy depending on which bios finds first?
2) In case I must depend on the rescue mode sometime, Will it be able to
find the right linux installation on a system with
FC2, FC1, MDK9.1, SuSE 7.3, Win98se, AND Dr Dos on it. Or would the
following partition tables confuse it
- --
| ? ?
|
| -=- -=- I'm NOT clueless...
| <?> <?> But I just don't know.
| ^ Joe (theWordy) Philbrook
| --- J(tWdy)P
| <jtwdyp at ttlc.net>
| ? ?
[root at localhost jtwdyp]# fdisk -l /dev/hda /dev/hdc
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 638 5124703+ c W95 FAT32 (LBA)
/dev/hda2 639 1217 4650817+ f W95 Ext'd (LBA)
/dev/hda3 1218 3162 15623212+ 83 Linux
/dev/hda4 3163 4865 13679347+ 83 Linux
/dev/hda5 639 1021 3076416 b W95 FAT32
/dev/hda6 1022 1148 1020096 83 Linux
/dev/hda7 1149 1217 554211 82 Linux swap
Disk /dev/hdc: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 261 2096451 6 FAT16
/dev/hdc2 262 3586 26708062+ 5 Extended
/dev/hdc3 3587 5531 15623212+ 83 Linux
/dev/hdc4 5532 7476 15623212+ 83 Linux
/dev/hdc5 262 366 843381 83 Linux
/dev/hdc6 367 427 489951 83 Linux
/dev/hdc7 428 792 2931831 83 Linux
/dev/hdc8 793 1400 4883728+ 83 Linux
/dev/hdc9 1401 1522 979933+ 83 Linux
/dev/hdc10 1523 3470 15647278+ 83 Linux
/dev/hdc11 3471 3586 931738+ 82 Linux swap
[root at localhost jtwdyp]#
##############################################################
# You can find my public gpg key at http://pgpkeys.mit.edu/ #
##############################################################
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAvBagRZ/61mwhY94RAhdkAKDNKnoYfKDXCtqUJ5WiK5UZ3gH/fgCfaReR
G3DcQLcC6OTuI1grc7uW+tU=
=OjYR
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list