LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-04-2015, 02:11 PM   #1
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Rep: Reputation: Disabled
fedora 21 windows duel boot reinstall windows


hi here,
i need some urgent help.

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?

thanks in advance.
 
Old 12-04-2015, 02:28 PM   #2
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Is your system Uefi or Bios?
 
Old 12-04-2015, 03:02 PM   #3
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
according to the setupact.log file from my windows>panther, its BIOS.
 
Old 12-04-2015, 03:19 PM   #4
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
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...
 
Old 12-04-2015, 03:25 PM   #5
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
so can i repair/recreate the bootloader from the installation disk?
 
Old 12-04-2015, 05:22 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 12-04-2015, 06:48 PM   #7
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
ok i get it.

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?
 
Old 12-05-2015, 07:16 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Once you have windows booting from your disk, use the method at the fedora project site to create a new grub.cfg file and reinstall grub2.

https://ask.fedoraproject.org/en/que...ub2-fedora-21/
 
1 members found this post helpful.
Old 12-05-2015, 11:51 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
BE AWARE
Fedora 21 is now PAST it's End Of Life !!!

there will NEVER be any more security updates and there is no more support

Please stay current and install Fedora 23
 
1 members found this post helpful.
Old 12-05-2015, 03:13 PM   #10
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Once you have windows booting from your disk, use the method at the fedora project site to create a new grub.cfg file and reinstall grub2.

https://ask.fedoraproject.org/en/que...ub2-fedora-21/
thank u very much!

this shows the easiest way to recreate grub. i hope it will work after i'm done with the installation.

i'll post the updates.
 
Old 12-05-2015, 03:15 PM   #11
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
BE AWARE
Fedora 21 is now PAST it's End Of Life !!!

there will NEVER be any more security updates and there is no more support

Please stay current and install Fedora 23
thank u. i know. but upgrading fedora will cause huge hassles for me now. so i think i'll stay with f21 for a few more months :-s.
 
Old 12-05-2015, 08:10 PM   #12
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
hi yancek,
the procedures given in that link is not working :-(

i ran win 8.1. after running that grub repair method, now i'm getting error at boot.
'error: no such device
entering rescue mode
grub rescue>'

what should i do now?
 
Old 12-06-2015, 07:19 AM   #13
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-06-2015, 07:54 AM   #14
oceanmbs
Member
 
Registered: Jul 2013
Location: Dhaka, Bangladesh
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: Disabled
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.

4. using terminal from fedora, follow the steps given here :https://ask.fedoraproject.org/en/que...ub2-fedora-21/

5. ur old grub menu is back.
 
Old 12-06-2015, 08:09 AM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
bash:grub-install: command not found
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.

Last edited by yancek; 12-06-2015 at 05:57 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Duel boot Windows 7 and Fedora 20, bootloader issues Gflex Fedora 6 11-11-2014 03:07 PM
How to reinstall fedora 20 in dual boot with Windows 8.1? Mathlover Linux - Newbie 3 05-09-2014 09:34 PM
Reinstall Windows in Windows/Linux Dual Boot aye29 Linux - General 5 07-27-2006 08:48 AM
Fedora Core 4 and Windows 98SE duel boot? Linux Newcomer Fedora 73 02-13-2006 03:40 AM
Windows XP RH 7.2 Grub Duel Boot LinnyNewbie Linux - Newbie 4 03-04-2002 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration