FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i was running duel boot of fedora 21 and win 7 on my pc without any problem.
long story short: an electrical disturbance near my home fried my motherboard and processor. so i had to get a new mb, processor and rom (everything else unchanged).
with my new hardwares, fedora 21 is running just fine. but no surprise, windows in not running. so i need to reinstall windows 7 or install win 8.1 (i dont want win 10 yet).
now how can i reinstall windows without creating any issues with my current fedora? i want to keep the fedora as it is.
the last time i installed fedora, i made a boot partition of 150 MB. so after installing windows (7 or 8.1, fresh install), can i create a boot file like what i have right now?
Windows does not respect any other OS and a Windows install will certainly destroy the Linux bootloader. If you're very careful it may not damage your Linux partition and then you can repair the bootloader...
Yes - trivial.
As for Win7, if you have it already on the disk, it will be recognised by the installer, and will probably offer to repair it for you. I have had occasions where I needed to run the repair a couple of times. You may even need to do a full install after all that - it just doesn't seem to work correctly.
As stated, grub will be be over-written.
but now my question is, how can i repair/recreate the grub?
someone told me once that if i run the fedora installation in the regular way (from usb/dvd) and at the time of partitions, i just put the /boot partition on the previous /boot and leave everything untouched, it will again create the grub. will it work?
anyway,
using supegrubdisk2, i could log into my old fedora.
any help on how can i now repair the grub?
the instructions provided on their page is not working.
when i put
Quote:
sudo grub-install /dev/sdb
(because both of my OSs are on sdb)
i get,
Quote:
bash:grub-install: command not found
anyway, from the supergrubdisk screen, it shows all the kernels of fedora 21 with windows 8, just as it should've been. i guess all i need now is to put this on MBR.
update: Solved it finally !!!
once i tried after logging in from my old fedora 21 installation, the instructions provided at the link by yancek worked like a charm! they weren't working from the live DVD.
anyway, whoever faces the same problem in future (grub2 gone in duel boot after reinstalling windows and the pc boots to windows right away), can follow the below procedures:
1. don't panic. unless u have messed up with the installation location (the HD and the partitions), ur old linux with all the files are completely ok.
2. from windows, download supergrubdisk2 http://www.supergrubdisk.org. u'll also need yumi to make a bootable cd/dvd/usb drive. follow the instructions and links provided at supergrubdisk2's website for how it do it.
3. using the bootable cd/dvd/usb, log in to your old fedora installation. again, supergrubdisk2's website has the instructions on how to do it.
The second post at the link I posted with a number of different commands is what would have worked. The "grub-install" doesn't work on Fedora as you can see from the link. It needs to be "grub2-install". The first post suggesting booting a usb/DVD and running the two commands obviously won't work as it will simply create a new grub.cfg file and try to install Grub to the usb/DVD which won't help anything on your hard drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.