I have recently installed fedora 3 core after facing some problems as it was not installed on sata disk in enhanced mode.( I have changed the bios option to legacy and installed fedora). And after that recently i have again installed XP medial center edition in my system. There after grub is not coming and directly system is booting with Windows.

If I want to work with linux, is there any need to intall linux again? or please tell me a way to jus boot the previously installed linux. Please give me some solution for this.

Dani AI

Generated

Short answer for : you almost certainly do NOT need to reinstall Fedora. Installing Windows after Linux typically overwrites the PC’s MBR so the machine boots straight to Windows — your Fedora partitions and files usually remain intact. Restoring GRUB from Fedora’s rescue environment will put a permanent boot menu back in place (it only needs repeating if something else later overwrites the MBR). (nb.fedorapeople.org)

Practical steps (Fedora Core / GRUB legacy era — matches Fedora 3): boot the Fedora install CD/DVD, at the installer prompt type linux rescue so the installer mounts your system under /mnt/sysimage. Then drop into that environment and reinstall GRUB. Example sequence:

# at the rescue shell (as root)
chroot /mnt/sysimage
/sbin/grub-install /dev/sda    # install to whole disk (MBR), or /dev/hda on very old IDE systems

# If grub-install not present, use the legacy grub shell:
grub
grub> find /boot/grub/stage1
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

exit
reboot

This will rewrite the MBR so GRUB appears at boot. The legacy grub shell commands above are from the GRUB manual and are the alternative if grub-install isn’t available. (nb.fedorapeople.org)

Note for newer systems: modern Fedora uses GRUB2 (and many machines now use UEFI). On those systems the equivalent commands are grub2-install and grub2-mkconfig -o /boot/grub2/grub.cfg (UEFI installs need --efi-directory= and --target= options). Always install to the whole disk (e.g. /dev/sda), not a partition (e.g. /dev/sda1). (asamalik.fedorapeople.org)

Quick cautions and troubleshooting: confirm the correct disk name (/dev/hda, /dev/sda, or /dev/nvme0n1) before writing the MBR. If your rescue option isn’t on a Live image, use the installer DVD or boot a live USB and manually mount + bind /proc /sys /dev before chroot /mnt then run the install commands. Consider saving the current MBR first (e.g. dd if=/dev/sda of=~/mbr-backup.bin bs=512 count=1) so you can restore it if needed. (nb.fedorapeople.org)

Recommended Answers

All 3 Replies

actually if i insert the cd againwill the grub be installed for ever or each time i have to insert the cd for booting linux?and the link u gave is not working !!! Please help.

actually if i insert the cd againwill the grub be installed for ever or each time i have to insert the cd for booting linux?and the link u gave is not working !!! Please help.

Actually click the link, rather than copy it.

Once you've done this procedure, you shouldn't have to install it again, unless it gets overwritten.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.