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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2016, 08:26 AM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
installed fedora-24; unable to boot into windows-10


[asus vivomini vm65] hi, i had to hack around with the bios in order to get it to boot up the live-usb. when i restarted fedora, the grub menu didnt list windows-10. here are my partitions:

Code:
[schneidz@xbmc ~]$ sudo fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 264C98CF-FCEF-4ED6-B98A-E99A835AB90D

Device         Start        End    Sectors   Size Type
/dev/sda1       2048     206847     204800   100M EFI System
/dev/sda2     206848     239615      32768    16M Microsoft reserved
/dev/sda3     239616  314812415  314572800   150G Microsoft basic data
/dev/sda4  314812416  315836415    1024000   500M Windows recovery environment
/dev/sda5  315836416  417372159  101535744  48.4G Microsoft basic data
/dev/sda6  417372160  417374207       2048     1M BIOS boot
/dev/sda7  417374208 1953495039 1536120832 732.5G Linux filesystem
does anyone know what i can try ?
 
Old 06-28-2016, 08:42 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
The partition sheme is not very practical.

You should create a new partition sheme:
1. /boot 1GB
2. swap 1,5 * RAM size
3. / 50-100 GB
4. /home 50-100 GB
5. /var 50 GB
6. /tmp 50 GB

And when you canīt boot into Windows, then you should check grub.cfg.
 
1 members found this post helpful.
Old 06-28-2016, 08:46 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Keruskerfuerst View Post
...

And when you canīt boot into Windows, then you should check grub.cfg.
thanks,:
Code:
[schneidz@xbmc ~]$ cat /boot/grub2/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (4.5.5-300.fc24.x86_64) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-395bacc1-79e4-45bb-857a-d81bdb298b9f' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 --hint='hd0,gpt7'  395bacc1-79e4-45bb-857a-d81bdb298b9f
	else
	  search --no-floppy --fs-uuid --set=root 395bacc1-79e4-45bb-857a-d81bdb298b9f
	fi
	linux16 /boot/vmlinuz-4.5.5-300.fc24.x86_64 root=UUID=395bacc1-79e4-45bb-857a-d81bdb298b9f ro rhgb quiet LANG=en_US.UTF-8
	initrd16 /boot/initramfs-4.5.5-300.fc24.x86_64.img
}
menuentry 'Fedora (0-rescue-7f1c1f2b158e4b66845117471292ebcd) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-7f1c1f2b158e4b66845117471292ebcd-advanced-395bacc1-79e4-45bb-857a-d81bdb298b9f' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 --hint='hd0,gpt7'  395bacc1-79e4-45bb-857a-d81bdb298b9f
	else
	  search --no-floppy --fs-uuid --set=root 395bacc1-79e4-45bb-857a-d81bdb298b9f
	fi
	linux16 /boot/vmlinuz-0-rescue-7f1c1f2b158e4b66845117471292ebcd root=UUID=395bacc1-79e4-45bb-857a-d81bdb298b9f ro rhgb quiet
	initrd16 /boot/initramfs-0-rescue-7f1c1f2b158e4b66845117471292ebcd.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
i tried running grub2-mkconfig but it doesnt pick up anything windows related.

edit:
i manually added this to grub.cfg:
Code:
menuentry 'Microsoft Windows 10' { set root='hd0,gpt1' chainloader /EFI/Microsoft/Boot/bootmgfw.efi boot }
but when i select it grub instantly highlights the 1st choice (fedora 24) and restarts the countdown.

Last edited by schneidz; 06-28-2016 at 11:11 AM.
 
Old 06-28-2016, 11:09 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
There is no entry for Windows 10.

http://askubuntu.com/questions/56449...e-not-detected

or search with Goooogle for Grub2 add Windows 10
 
1 members found this post helpful.
Old 06-28-2016, 11:13 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Keruskerfuerst View Post
There is no entry for Windows 10.

http://askubuntu.com/questions/56449...e-not-detected

or search with Goooogle for Grub2 add Windows 10
thanks, my edit above.

edit:
i tried typing in the commands manually into the grub command line.
when i try to run this:
Code:
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
i get invalid signature.

Last edited by schneidz; 06-28-2016 at 11:21 AM.
 
Old 06-28-2016, 12:15 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by schneidz View Post
[asus vivomini vm65] hi, i had to hack around with the bios in order to get it to boot up the live-usb...
a little clarification, the bios menu was very confusing but i think i had to disable secure boot, and enable legacy mode and csm compatibility modes in order for the pc to boot from a usb. the windows-10 came pre-installed from the oem but it is not able to be booted now (even when i try to reset the settings in the bios). although i am able to mount the partitions in fedora.
 
Old 06-28-2016, 01:01 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
What exactly were you doing? Why were you booting a Live usb, to install Fedora? You have mixed an MBR and EFI install and this is the result. You show an EFI partition (sda1) which should contain both your windows and Fedora efi boot files. You also have a BIOS boot partition (sda6) which is used when you use GPT without EFI. Mount the EFI partition and take a look at what is there, Fedora and windows files? If not and you were just installing Fedora, it would be simpler to reinstall using EFI. There might be some other way to change this, I don't know.
 
Old 06-28-2016, 02:23 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
the only method i know how to install fedora (linux) is using a live-usb. everytime i tried to boot the live-usb on the pc it would go directly into windows. i had to experiment by toggling various switches in the bios for it to recognize the fedora live-usb as a bootable drive.

the only thing thats different this time i installed fedora was that it complained that it needed a 1 mb efi-boot partition because it saw something about efi so i had to create it manually.

fyi:
Code:
[schneidz@xbmc ~]$ sudo mount /dev/sda1 win
[schneidz@xbmc ~]$ ll win
total 4
-rwxr-xr-x. 1 root root   39 Apr 20 20:29 Asus.log
-rwxr-xr-x. 1 root root    2 Apr 20 19:42 Done_Final_Image.tag
drwxr-xr-x. 4 root root 1024 Feb 29 09:25 EFI
drwxr-xr-x. 2 root root 1024 Apr 20 20:13 'System Volume Information'
[schneidz@xbmc ~]$ ll win/EFI/Microsoft/Boot/
total 4388
-rwxr-xr-x.  1 root root   36864 Jun 26 22:27 BCD
-rwxr-xr-x.  1 root root   36864 Apr 20 20:29 BCD.LOG
-rwxr-xr-x.  1 root root       0 Apr 20 20:29 BCD.LOG1
-rwxr-xr-x.  1 root root       0 Apr 20 20:29 BCD.LOG2
-rwxr-xr-x.  1 root root   28672 Apr 20 20:29 BCD_Windows.LOG
-rwxr-xr-x.  1 root root 1159008 Oct 29  2015 bootmgfw.efi
-rwxr-xr-x.  1 root root 1147744 Oct 29  2015 bootmgr.efi
-rwxr-xr-x.  1 root root   65536 Apr 20 19:41 BOOTSTAT.DAT
-rwxr-xr-x.  1 root root    4391 Oct 29  2015 boot.stl
...
Quote:
Originally Posted by yancek View Post
If not and you were just installing Fedora, it would be simpler to reinstall using EFI.
none of the screens in the install menu said anything about installing an efi (unless i missed something). do you know what command is needed to install linux using efi ?

Last edited by schneidz; 06-28-2016 at 02:37 PM.
 
Old 06-28-2016, 03:03 PM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
ok, with a little more web searching i think the correct question i would want to ask is how to boot up a linux live-usb (particularly fedora-24) in uefi mode.
 
Old 06-28-2016, 05:39 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
From your last post, does that mean you have no directory or files referencing Fedora in the EFI directory?
What hardware as some manufacturers do not comply with EFI standard on booting? Check the link below at the Fedora Project for details on booting UEFI.

https://fedoraproject.org/wiki/Unifi...ware_Interface
 
1 members found this post helpful.
Old 06-28-2016, 09:42 PM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ thanks again. i dont have any fedora stuff in /dev/sda1 (only windows stuff).
asus vivomini vm65
 
Old 06-29-2016, 02:39 PM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
ok, so i re-installed fedora this time making sure there was a directory named /sys/firmware/efi before running the live-usb's install process.

this is the first pc i bought in 7 years so i had no idea there was such a split between normal bios booting and efi booting. also there is no mention in the pc's manual-booklet or the on screen post messages about selecting a drive to boot. it says 'hit f2 or del to enter bios'. i read an amazon review about a similar pc and the poster said in order to install linux one must repeatedly hit f8 to get to the boot menu to select the usb (i actually tried all the function keys before but none worked -- hitting f2/del/f8 works about half the time).

the problem i am having now is that the first time i rebooted the pc, it gave me the grub menu. i selected windows-10 to verify it works and it did. but when i tried to test if fedora-24 would boot, it no longer shows grub (it boots directly into windows) ?

Last edited by schneidz; 06-29-2016 at 02:41 PM.
 
Old 06-29-2016, 04:11 PM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^
Code:
[schneidz@xbmc ~]$ sudo efibootmgr 
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0003,0000,0001
Boot0000* Fedora
Boot0001* Hard Drive
Boot0003* Windows Boot Manager
[schneidz@xbmc ~]$ sudo efibootmgr -o 0000,0003,0001
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001
Boot0000* Fedora
Boot0001* Hard Drive
Boot0003* Windows Boot Manager
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot into Windows 8 from Fedora dual boot. Linux_Noob14 Linux - Newbie 2 03-18-2014 04:10 PM
Windows 7 wont boot up after installing Fedora 15 (Windows 7 already installed)? ranger149 Fedora 6 09-02-2011 09:15 PM
had windows 7, installed fedora 12 on partition, now windows won't boot bieszke2 Linux - Software 14 02-10-2010 10:13 AM
Installed Fedora 9 and Vista is gone and unable to dual-boot Dr.Jono Linux - Newbie 14 07-21-2008 05:43 PM
Unable To Boot To Fedora When Grub Installed in /boot Partition FedoraNewbie Linux - Newbie 4 09-26-2006 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:12 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