LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   GRUB hangs on boot (http://www.linuxquestions.org/questions/fedora-35/grub-hangs-on-boot-352202/)

BiPolar 08-11-2005 10:34 AM

GRUB hangs on boot
 
I didn't want to install grub on my mbr, so I created a boot partition. After fc4 finished installing, I restarted and it automatically loaded XP. So, I find these instructions from a gentleman named Shams website:


Quote:

chroot /mnt/sysimage
this will change you to your linux system,after you changed to your system, run
the command:
dd if=/dev/hdax of=bootsect.lnx bs=512 count=1
now copy the bootsect.lnx to your C drive,to do it, we need to mount the C drive, make a
directory in /mnt named windows with:
mkdir /mnt/windows
now mount the C drive on /mnt/windows with:
mount -t vfat /dev/hda1 /mnt/windows
if your C file system is ntfs change the vfat(fat 32) to ntfs,now run the command:
cp -v bootsect.lnx /mnt/windows
or you can copy the bootsect.lnx to any removable media like floppy and then to the C drive.

Boot to your windows xp, open the dos and change to the C drive, open the
boot.ini in the notepade with:
C:\>notepade boot.ini
add this line to the boot.ini:
C:\bootsect.lnx="Linux"
save and exit,you are done, reboot,and choose the Linux from the menu.
After this, I was able to see my change to boot.ini in the ntldr, but when I select it, a blank screen comes up that says GRUB and then a blinking cursor next to it. However, I can't type anything and it appears to be stuck at this point.

How do I set it up so that GRUB boots, but without doing it on the MBR?

WhatsHisName 08-12-2005 11:43 AM

That usually means that grub is configured to look for "/boot" or “/” in the wrong partition.

The easy fix is to “reinstall” grub natively as is described in the Grub Manual ( http://www.gnu.org/software/grub/man...l#Installation ) using the “find ...”, “root ...” and “setup ...” grub commands, in that order. In your case, the final command will be something like:

grub> setup (hd0,2)

for the situation where /boot/grub/grub.conf is located in /dev/hda3. This would install grub “to the first sector of the boot partition”.


Alternatively, the “GRUB” error may mean that there is a problem with the /boot/grub/grub.conf configuration.


All times are GMT -5. The time now is 03:51 AM.