(Centos 7) Unable to boot or Dual boot with Windows 10. Missing SSD. & os-prober doesn't find windows 10
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
as you can see, I have the windows partitions mounted
However, when I run os-prober,
Code:
[root@localhost ~]# os-prober
[root@localhost ~]#
It returns nothing...
So I tried manually editing grub like:
Code:
[root@localhost etc]# vim grub2-efi.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/00_tuned ###
set tuned_params=""
set tuned_initrd=""
### END /etc/grub.d/00_tuned ###
### 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 'CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.el7.x86_64-advanced-cbaa94ca-fb50-4c15-b9b2-6fcaa63f5086' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod xfs
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 31b39370-d28b-4056-936d-6f86e7bdff12
else
search --no-floppy --fs-uuid --set=root 31b39370-d28b-4056-936d-6f86e7bdff12
fi
linuxefi /vmlinuz-3.10.0-693.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet
initrdefi /initramfs-3.10.0-693.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-b6e43f208d5e496e9f3478a7c353da78) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-b6e43f208d5e496e9f3478a7c353da78-advanced-cbaa94ca-fb50-4c15-b9b2-6fcaa63f5086' {
load_video
insmod gzio
insmod part_gpt
insmod xfs
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 31b39370-d28b-4056-936d-6f86e7bdff12
else
search --no-floppy --fs-uuid --set=root 31b39370-d28b-4056-936d-6f86e7bdff12
fi
linuxefi /vmlinuz-0-rescue-b6e43f208d5e496e9f3478a7c353da78 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet
initrdefi /initramfs-0-rescue-b6e43f208d5e496e9f3478a7c353da78.img
}
if [ "x$default" = 'CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)' ]; then default='Advanced options for CentOS Linux>CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)'; fi;
### 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.
menuentry "Windows10" {
insmod ntfs
insmod ntldr
insmod part_msdos
insmod search_fs_uuid
search --fs-uuid --no-floppy --set=root 6A74253174250185
ntldr /bootmgr
}
### 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 ###
And When I select Windows10 at the GRUB screen,
It shows
Code:
error: file `/EFI/centos/x86_64-efi/ntfs.mod' not found.
error: file `/EFI/centos/x86_64-efi/ntldr.mod' not found.
error: no such device: 6A74253174250185.
error: can't find command `ntldr`
why and where is this number that contains the period at the end of it? remove that period
Code:
error: no such device: 6A74253174250185.
then see if it finds it.
verify if the files are actually in this location, if not then find them and copy them into it, then try it again
Code:
error: file `/EFI/centos/x86_64-efi/ntfs.mod' not found.
error: file `/EFI/centos/x86_64-efi/ntldr.mod' not found.
ntldr
Code:
NTLDR (abbreviation of NT loader) is the boot loader for all releases of Windows NT
operating system up to and including Windows XP and Windows Server 2003. NTLDR is
typically run from the primary hard disk drive, but it can also run from portable storage
devices such as a CD-ROM, USB flash drive, or floppy disk.
I don't know, I do not have windows on this laptop, just Linux, so I cannot check a grub conf to see how it writes for booting windows.
I don't have Windows with Grub2 either, but I would try blkid's PARTUUID for sda3, instead of the UUID, in your custom.cfg's search line, before I looked elsewhere.
If I had to guess, I'd say this was a prior Win system that was "upgraded" (interesting term) to Win10.
/dev/sda being msdos (aka MBR) is very bad idea if you have Linux installed as UEFI. I have one such system, and can only boot between them by going into the firmware and choosing either Win10 or Linux. I live with it as I rarely boot Win10.
I do get the option to boot the device name (in the firmware) rather than a "Windows" entry .
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.