Fedora Linux Support Community & Resources Center
  #1  
Old 23rd January 2017, 08:25 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
linuxubuntufirefox
Dual Boot with Windows 10 fails after windows installation

Hi !

I know I just got an answer for exactly the same question but for Vista...

I realized the softwares I needed are not updated for Vista so I had to update to 10.

I chose the old Vista partition to install Windows 10 and I could only boot into windows afterwards...

My laptop is an old Vostro 1710 so no UEFI or other new booting system is involved here.

The trick of
Code:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
did not work and it does not even pick up Fedora !

I cannot boot into fedora so I am using an Ubuntu live-cd.

I had to access fedora with chroot to

Code:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
an I followed what is there

http://askubuntu.com/questions/65501...ir-doesnt-help

but it does not work.

Windows is on /sda3
Fedora on /sda5

Boot-repair fails when I need to
Code:
sudo chroot "/media/ubuntu/_" yum erase -y grub*-common grub-common:i386
Code:
ubuntu@ubuntu:~$ sudo chroot "/media/ubuntu/_" yum erase -y grub*-common grub-common:i386
Yum command has been deprecated, redirecting to '/usr/bin/dnf erase -y grub*-common grub-common:i386'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

No match for argument: grub*-common
No match for argument: grub-common:i386
Error: No packages marked for removal.
Here is the summary Boot-repair gives me

http://paste2.org/Ka3yOKa1

I think my /boot partition was modified by the install cause it is now called a weird name .

/dev/sda8 4fb5347a-cf87-4f1c-b99e-5d2c930b518e ext4

That should be the /boot.

I have tried to look on others forums but cannot get anything... Sorry to bother you again and thanks for your help !

Last edited by hypem74; 23rd January 2017 at 09:25 PM.
Reply With Quote
  #2  
Old 25th January 2017, 03:51 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
windows_98_nt_2000chrome
Re: Dual Boot with Windows 10 fails after windows installation

Still stuck on that problem !

I can only boot into windows 10,

When I chroot into the Fedora,

Code:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Only finds windows 10... no mention of Fedora anywhere !

I was thinking of reinstallaling Fedora (and also a newer version) on the / partition, my /home is on a different partion so I should be able to recover it right ?
Reply With Quote
  #3  
Old 25th January 2017, 06:55 PM
jims Offline
Registered User
 
Join Date: Oct 2006
Location: CN89KE Richmond BC Canada
Posts: 367
windows_98_nt_2000firefox
Re: Dual Boot with Windows 10 fails after windows installation

Yes, you can protect your /home partition during the installation procedure. There is an option that asks if you want to protect existing partition(s) or use the whole disk during the installation procedure.
__________________
-----
f24 x86_64 SMP AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ × 2
Reply With Quote
  #4  
Old 28th January 2017, 03:59 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
windows_98_nt_2000chrome
Re: Dual Boot with Windows 10 fails after windows installation

Thanks I'll try this during the week.

Anybody having another suggestion ?

Thanks !
Reply With Quote
  #5  
Old 28th January 2017, 04:47 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,559
linuxchrome
Re: Dual Boot with Windows 10 fails after windows installation

Installing windows on an msdos machine overwrote the grub bootloader. Using the "grub2-mkconfig" command does nothing to replace the windows bootloader with the grub bootloader. For that, you need to use the "grub2-install" command. If you have only one hdd (/dev/sda), then use:
Code:
grub2-install /dev/sda
Preferably, you should be doing this with a Fedora install media, not Ubuntu.
Reply With Quote
  #6  
Old 28th January 2017, 09:11 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
windows_98_nt_2000chrome
Re: Dual Boot with Windows 10 fails after windows installation

If I do this fom a fedora install media, will I need to chroot ?

Thanks for your help !
Reply With Quote
  #7  
Old 28th January 2017, 09:18 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,559
Quote:
Originally Posted by hypem74 View Post
If I do this fom a fedora install media, will I need to chroot ?

Thanks for your help !
No need to chroot while in the Fedora live session, but you will probably need to become root user first. Just hit ENTER if prompted for root password as there is no password for root when running in the Live media.


Sent from my P01MA using Tapatalk
Reply With Quote
  #8  
Old 28th January 2017, 10:47 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
linuxchrome
Re: Dual Boot with Windows 10 fails after windows installation

From a Fedora live USB

Code:
[liveuser@localhost-live ~]$ sudo mount /dev/sda5 /mnt  
[liveuser@localhost-live ~]$ for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
[liveuser@localhost-live ~]$ sudo chroot /mnt
[root@localhost-live /]# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
[root@localhost-live /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found Windows 10 (loader) on /dev/sda3
done
[root@localhost-live /]# 
a

It just sees the Windows
Reply With Quote
  #9  
Old 29th January 2017, 12:10 AM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,559
Quote:
Originally Posted by hypem74 View Post
From a Fedora live USB

Code:
[liveuser@localhost-live ~]$ sudo mount /dev/sda5 /mnt  
[liveuser@localhost-live ~]$ for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
[liveuser@localhost-live ~]$ sudo chroot /mnt
[root@localhost-live /]# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
[root@localhost-live /]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found Windows 10 (loader) on /dev/sda3
done
[root@localhost-live /]# 
a

It just sees the Windows
You're making it more complicated than it needs to be. From the Fedora live media, do not mount any partitions. Just su to root and then issue the "grub2-install /dev/sda" command. Dispense with the grub2-mkconfig command.

If you haven't done something to eradicate the Fedora partitions in whatever earlier attempts to fix the situation, then rebooting to the hard drive should give you the grub2 menu, hopefully with Fedora listed. If no Fedora, you'll need to reinstall it.

From the Fedora live media, become root and issue "fdisk -l /dev/sda" command. Does it show fedora/Linux partitions?


Sent from my P01MA using Tapatalk
Edit: Finally found where to turn off auto correction for this tablets keyboard...it was driving me nuts.

Last edited by PabloTwo; 29th January 2017 at 12:24 AM.
Reply With Quote
  #10  
Old 29th January 2017, 01:44 AM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,559
linuxchrome
Re: Dual Boot with Windows 10 fails after windows installation

From your original post...
Quote:
I think my /boot partition was modified by the install cause it is now called a weird name .

/dev/sda8 4fb5347a-cf87-4f1c-b99e-5d2c930b518e ext4

That should be the /boot
Depends on what you're using to list the partition. Partitions have several identifiers. That one looks like the uuid of /dev/sda8. "/boot" is most likely just the label identifier. Here is my Fedora /boot partition (spaces added for clarity):
Code:
$ ls /dev/disk/
by-id  by-label  by-partuuid  by-path  by-uuid

$ ll /dev/disk/by-id | grep sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 ata-WDC_WD5002AALX-00J37A0_WD-WCAYUJ459772-part5 -> ../../sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 wwn-0x50014ee103cc6e9f-part5 -> ../../sda5

$ ll /dev/disk/by-label | grep sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 F25-64-Boot -> ../../sda5

$ ll /dev/disk/by-partuuid | grep sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 000576f2-05 -> ../../sda5

[paul@fettel ~]$ ll /dev/disk/by-path | grep sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 pci-0000:00:1f.2-ata-1-part5 -> ../../sda5

[paul@fettel ~]$ ll /dev/disk/by-uuid | grep sda5
lrwxrwxrwx. 1 root root 10 Jan 28 19:51 2b3cb85e-a3a8-411c-b48b-9c5b2765d45c -> ../../sda5

Last edited by PabloTwo; 29th January 2017 at 01:52 AM.
Reply With Quote
  #11  
Old 31st January 2017, 05:58 PM
hypem74 Offline
Registered User
 
Join Date: Aug 2015
Location: Germany
Posts: 14
linuxchrome
Re: Dual Boot with Windows 10 fails after windows installation

Thanks for your help !

Yes fdisk does show me the linux partitions
Code:
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1              63    224909    224847 109.8M de Dell Utility
/dev/sda2          225280  21196799  20971520    10G  7 HPFS/NTFS/exFAT
/dev/sda3  *     21196800 404436374 383239575 182.8G  7 HPFS/NTFS/exFAT
/dev/sda4       404436436 488392064  83955629    40G  5 Extended
/dev/sda5       404436438 434112511  29676074  14.2G 83 Linux
/dev/sda6       435152718 439345619   4192902     2G 82 Linux swap / Solaris
/dev/sda7       439345683 488392064  49046382  23.4G 83 Linux
/dev/sda8       434114560 435148799   1034240   505M 83 Linux
Partition table entries are not in disk order.

I just installed grub the way you said, let us reboot !

It didnt work !



Si I rebooted into the live USB, did the same procedure again with grub2-mkconfig though

Code:
[liveuser@localhost-live ~]$ su
[root@localhost-live liveuser]# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
[root@localhost-live liveuser]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.8.6-300.fc25.i686+PAE
Found initrd image: /boot/initramfs-4.8.6-300.fc25.i686+PAE.img
Found linux image: /boot/vmlinuz-4.8.6-300.fc25.i686
Found initrd image: /boot/initramfs-4.8.6-300.fc25.i686.img
Found Windows 10 (loader) on /dev/sda3
Found Fedora release 22 (Twenty Two) on /dev/sda5
done
Let us reboot again...

I get the same error as on the picturem it goes directly to grub-recue

Last edited by hypem74; 31st January 2017 at 06:16 PM.
Reply With Quote
Reply

Tags
boot, dual, fails, installation, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub rescue> Boot fails: Example commands to boot+fix Windows 10 + Linux dual boot Jeff72 Guides & Solutions (Not For Questions) 4 17th December 2016 02:34 PM
Succesful dual boot installation Fedora 18 Windows XP mackissack Installation, Upgrades and Live Media 2 26th February 2013 07:31 PM
installation problem dual boot with windows 7 piyamnama Installation, Upgrades and Live Media 0 17th September 2012 09:45 PM
FC3 and Windows XP Professional Dual boot installation problems provo1234 EOL (End Of Life) Versions 9 2nd December 2004 07:29 PM
Installation Error - Dual Boot Windows BandC Installation, Upgrades and Live Media 13 13th November 2004 04:10 AM


Current GMT-time: 00:09 (Saturday, 24-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat