Problem
I have this 6 partitions on my disk:
hd0,0 = Windows XP
hd0,1 = Documents
hd0,2 = Music
hd0,4 = Fedora /boot
hd0,5 = Fedora /root
hd0,6 = Fedora /swap
I use GRUB installed in the MBR to boot Windows XP and Fedora Core, but under Windows XP with the Partition Magic I made another partition in the free space of the Music partition, now I have 7 partitions.
hd0,0 = Windows XP
hd0,1 = Documents
hd0,2 = Music
hd0,4 = Videos
hd0,5 = Fedora /boot
hd0,6 = Fedora /root
hd0,7 = Fedora /swap
But the problem is that grub does not boot anymore. Now, I can't boot any system and what appears to me is the GRUB boot minimal bash-like line black screen.
What should I do to fix this problem?
Should I reinstall GRUB or should I only edit /boot/grub/grub.conf with the new entries?
Solution
What happened here is that you broke GRUB's partitions table. When you delete or add partitions, boot table and drive numbers/letters changed their orders in the /boot/grub/grub.conf.
Since you did this using Windows, grub doesn't know things have changed and tries to look to Fedora's boot partition from wrong places.
Before adding the new partition Videos, Fedora's boot partition was in hd0,4.
After adding the new partition Videos, Fedora's boot partition is now in hd0,5.
You have to tell GRUB about this modification. How? Editing grub.conf.
This is the grub.conf before adding the new partition
--------------------------------------------------------------------
#grub.conf generated by anaconda
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title GNU/Linux Fedora Core 1 (2.4.22-1.2174.nptl)
root (hd0,4)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
title Microsoft Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
----------------------------------------------------------------------
So, what you have to do is edit your /boot/grub/grub.conf with the new partition table.
(First of all, enter your BIOS setup and in BOOT Sequence window choose to boot with CDROM first.)
1) Boot with your Fedora Core Installation CD 1.
2) Type "
linux rescue" at the prompt.
3) Answer the questions about keyboard and language.
4) Tell the rescue mode to use your proper partition to mount (the one that you want to get booted into)
Choose
Continue
(Don't choose
Cancel or
Read Only) because you want to edit grub.conf
5) When you come to the console prompt type:
sh-2.05#
chroot /mnt/sysimage
6) Edit your grub.conf with nano, type:
sh-2.05#
nano /boot/grub/grub.conf
7) You'll only have to edit 2 lines:
splashimage=(hd0,4)/grub/splash.xpm.gz
root (hd0,4)
(This is your /boot partition, specifies which partition contains your Linux kernel image.
This is the grub.conf after editing your grub.conf
-------------------------------------------------------------------------
#grub.conf generated by anaconda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
title GNU/Linux Fedora Core 1 (2.4.22-1.2174.nptl)
root (hd0,5)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
title Microsoft Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
----------------------------------------------------------------------------
8) Eject your Fedora Core installation CD1 and type exit to reboot your system.
sh-2.05#
exit
If everything went just fine, voila, GRUB boot window appears again!!
-----------------------
Related HOWTO
How to install GRUB in the MBR
http://www.fedoraforum.org/forum/sho...=&threadid=975