LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-16-2017, 05:42 AM   #1
indikaaruna
LQ Newbie
 
Registered: Jun 2017
Location: Singapore
Distribution: Centos 7
Posts: 9
Blog Entries: 1

Rep: Reputation: Disabled
Question windows 10 dual boot option not showing with Cent os 7


HI ,
First I install windows 1o in my Toshiba laptop. Then I install Cent os 7. After that WIFI was not working in cent os. Then I delete cent os installer and install again.
After that I cant see windows 10 partition in dual boot.

This is the fdisk output.
[indika@localhost ~]$ sudo fdisk -l
[sudo] password for indika:
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 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
Disk label type: gpt


# Start End Size Type Name
1 2048 411647 200M EFI System EFI System Partition
2 2304000 2566143 128M Microsoft reser Basic data partition
3 2566144 599282197 284.5G Microsoft basic Basic data partition
4 411648 1435647 500M Microsoft basic
5 599283712 834562047 112.2G Microsoft basic
6 834562048 871288831 17.5G Linux LVM
7 871288832 976773119 50.3G Microsoft basic

Disk /dev/mapper/centos-swap: 18.8 GB, 18803064832 bytes, 36724736 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


[indika@localhost ~]$ sudo grub2-mkconfig > /dev/null
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-514.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.16.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.16.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.10.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.6.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.6.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-55b48fa3bac94964bf81e6c04a750e76
Found


Could you help me to load windows 10 partition ?

Thanks
Indika
 
Old 06-16-2017, 10:20 AM   #2
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
First, is NTFS-3G installed?

yum install ntfs-3g

(This is in epel, so you may need to install EPEL first with 'yum install epel-release')



grub2-mkconfig is not seeing your windows partitions, but they do exist, so we need to see if we can make them readable by Linux

Last edited by Demosa; 06-16-2017 at 10:23 AM. Reason: issue with test box
 
1 members found this post helpful.
Old 06-16-2017, 06:40 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,384
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
Have you tried running update-grub? (See the section "How To Make Your Changes Take Effect" at the link.)
 
Old 06-19-2017, 01:58 AM   #4
indikaaruna
LQ Newbie
 
Registered: Jun 2017
Location: Singapore
Distribution: Centos 7
Posts: 9

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Demosa View Post
First, is NTFS-3G installed?

yum install ntfs-3g

(This is in epel, so you may need to install EPEL first with 'yum install epel-release')



grub2-mkconfig is not seeing your windows partitions, but they do exist, so we need to see if we can make them readable by Linux
HI Thanks for reply. I install ntfs-3g and try again. This is the output
[indika@localhost analytics]$ sudo grub2-mkconfig > /dev/null
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-514.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.16.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.16.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.10.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.6.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.6.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-55b48fa3bac94964bf81e6c04a750e76
Found initrd image: /boot/initramfs-0-rescue-55b48fa3bac94964bf81e6c04a750e76.img
find: failed to restore initial working directory: Permission denied
done
 
Old 06-20-2017, 10:38 AM   #5
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
Is your windows partition encrypted? Something like bitlocker, or a company provided windows image? Windows 10 (and 8.1) did out of the box encryption in some installation scenarios

Looks like it's some sort of permissions issue, lets try to mount the windows disk and see if that gives us any better indication as to what is happening


Start by making directories to mount to
`sudo mkdir ~/windows-disk{3,4,5,7}`

Then, mount all the windows data partitons to their folders
`sudo mount /dev/sda3 ~/windows-disk3`
`sudo mount /dev/sda4 ~/windows-disk4`
`sudo mount /dev/sda5 ~/windows-disk5`
`sudo mount /dev/sda7 ~/windows-disk7`

I'd expect these to fail to some degree. If they prompt you for a password, let us know

(I'm really confused by the windows partitions on your install, I see 3 on mine, boot, data, hidden restore. You have 6, so I'm not sure which of the 4 data partitions is what...)
 
Old 06-21-2017, 01:59 AM   #6
indikaaruna
LQ Newbie
 
Registered: Jun 2017
Location: Singapore
Distribution: Centos 7
Posts: 9

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Demosa View Post
Is your windows partition encrypted? Something like bitlocker, or a company provided windows image? Windows 10 (and 8.1) did out of the box encryption in some installation scenarios

Looks like it's some sort of permissions issue, lets try to mount the windows disk and see if that gives us any better indication as to what is happening


Start by making directories to mount to
`sudo mkdir ~/windows-disk{3,4,5,7}`

Then, mount all the windows data partitons to their folders
`sudo mount /dev/sda3 ~/windows-disk3`
`sudo mount /dev/sda4 ~/windows-disk4`
`sudo mount /dev/sda5 ~/windows-disk5`
`sudo mount /dev/sda7 ~/windows-disk7`

I'd expect these to fail to some degree. If they prompt you for a password, let us know

(I'm really confused by the windows partitions on your install, I see 3 on mine, boot, data, hidden restore. You have 6, so I'm not sure which of the 4 data partitions is what...)
Hi Thanks for your kind reply. It don't have any encryption. When I got the new laptop it has windows 10. Then I install centos as dual boot. Its work fine. I could login to windows and centos7. But At That time couldn't show the wifi connections in centos. Again I delete cantos installation partition and centos install again.
Then I didn't see windows in boot loader. Now I don't have permission issue.

[indika@localhost ~]$ sudo grub2-mkconfig > /dev/null
[sudo] password for indika:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-514.21.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.21.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.16.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.16.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.10.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.6.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.6.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-55b48fa3bac94964bf81e6c04a750e76
Found initrd image: /boot/initramfs-0-rescue-55b48fa3bac94964bf81e6c04a750e76.img
done

I mount the partition according your instruction. /dev/sda3 is the windows installation

[indika@localhost ~]$ ls /dev/sda3 ~/windows-disk3
/dev/sda3

/home/indika/windows-disk3:
bootmgr Documents and Settings Fuji Xerox Intel ProgramData Program Files (x86) $Recycle.Bin System Volume Information Users
BOOTNXT DVDSetup.log hiberfil.sys pagefile.sys Program Files Recovery swapfile.sys TOSHIBA Windows


[indika@localhost ~]$ ls ~/windows-disk5
httpd indika lost+found
[indika@localhost ~]$ ls ~/windows-disk4
config-3.10.0-514.10.2.el7.x86_64 initramfs-3.10.0-514.6.1.el7.x86_64kdump.img
config-3.10.0-514.16.1.el7.x86_64 initrd-plymouth.img
config-3.10.0-514.21.1.el7.x86_64 symvers-3.10.0-514.10.2.el7.x86_64.gz
config-3.10.0-514.21.2.el7.x86_64 symvers-3.10.0-514.16.1.el7.x86_64.gz
config-3.10.0-514.6.1.el7.x86_64 symvers-3.10.0-514.21.1.el7.x86_64.gz
efi symvers-3.10.0-514.21.2.el7.x86_64.gz
grub symvers-3.10.0-514.6.1.el7.x86_64.gz
grub2 System.map-3.10.0-514.10.2.el7.x86_64
initramfs-0-rescue-55b48fa3bac94964bf81e6c04a750e76.img System.map-3.10.0-514.16.1.el7.x86_64
initramfs-3.10.0-514.10.2.el7.x86_64.img System.map-3.10.0-514.21.1.el7.x86_64
initramfs-3.10.0-514.10.2.el7.x86_64kdump.img System.map-3.10.0-514.21.2.el7.x86_64
initramfs-3.10.0-514.16.1.el7.x86_64.img System.map-3.10.0-514.6.1.el7.x86_64
initramfs-3.10.0-514.16.1.el7.x86_64kdump.img vmlinuz-0-rescue-55b48fa3bac94964bf81e6c04a750e76
initramfs-3.10.0-514.21.1.el7.x86_64.img vmlinuz-3.10.0-514.10.2.el7.x86_64
initramfs-3.10.0-514.21.1.el7.x86_64kdump.img vmlinuz-3.10.0-514.16.1.el7.x86_64
initramfs-3.10.0-514.21.2.el7.x86_64.img vmlinuz-3.10.0-514.21.1.el7.x86_64
initramfs-3.10.0-514.21.2.el7.x86_64kdump.img vmlinuz-3.10.0-514.21.2.el7.x86_64
initramfs-3.10.0-514.6.1.el7.x86_64.img vmlinuz-3.10.0-514.6.1.el7.x86_64


[indika@localhost ~]$ ls ~/windows-disk5
httpd indika lost+found


[indika@localhost ~]$ ls ~/windows-disk7
1 bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var



Please check and let me know how to continue?

Thanks
 
Old 06-21-2017, 02:33 AM   #7
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Do you have os-prober installed? Install os-prober, mount windows partition and run grub2-mkconfig once more
 
Old 06-21-2017, 09:20 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Your output above shows an EFI partition (sda1) so did you install CentOS EFI? If you are not sure you can verify with the command below from CentOS.

Quote:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Have you mounted and taken a look at the EFI partition to see if you have the approprite microsoft folders/files?
 
Old 06-21-2017, 10:21 PM   #9
indikaaruna
LQ Newbie
 
Registered: Jun 2017
Location: Singapore
Distribution: Centos 7
Posts: 9

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Your output above shows an EFI partition (sda1) so did you install CentOS EFI? If you are not sure you can verify with the command below from CentOS.



Have you mounted and taken a look at the EFI partition to see if you have the approprite microsoft folders/files?
Hi Yancek,
Its EFI, Please see the bellow output.

[root@localhost indika]# [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
EFI boot on HDD

Windows Files are there

[indika@localhost ~]$ sudo mount /dev/sda3 ~/windows-disk3
[sudo] password for indika:
[indika@localhost ~]$ ls -la ~/windows-disk3/
total 5547809
drwxrwxrwx. 1 root root 4096 Sep 2 2016 .
drwx------. 59 indika indika 4096 Jun 22 10:32 ..
-rwxrwxrwx. 1 root root 398356 Mar 18 2014 bootmgr
-rwxrwxrwx. 1 root root 1 Oct 30 2015 BOOTNXT
lrwxrwxrwx. 2 root root 60 Aug 22 2013 Documents and Settings -> /home/indika/windows-disk3/Users
-rwxrwxrwx. 1 root root 510 Jul 22 2016 DVDSetup.log
drwxrwxrwx. 1 root root 0 Sep 2 2016 Fuji Xerox
-rwxrwxrwx. 1 root root 3398778880 Sep 6 2016 hiberfil.sys
drwxrwxrwx. 1 root root 0 Jul 22 2016 Intel
-rwxrwxrwx. 1 root root 2013265920 Sep 6 2016 pagefile.sys
drwxrwxrwx. 1 root root 8192 Sep 2 2016 ProgramData
drwxrwxrwx. 1 root root 8192 Jul 22 2016 Program Files
drwxrwxrwx. 1 root root 12288 Sep 2 2016 Program Files (x86)
drwxrwxrwx. 1 root root 0 Jul 14 2016 Recovery
drwxrwxrwx. 1 root root 0 Jul 15 2016 $Recycle.Bin
-rwxrwxrwx. 1 root root 268435456 Sep 6 2016 swapfile.sys
drwxrwxrwx. 1 root root 4096 Sep 2 2016 System Volume Information
drwxrwxrwx. 1 root root 0 Jul 14 2016 TOSHIBA
drwxrwxrwx. 1 root root 4096 Jul 14 2016 Users
drwxrwxrwx. 1 root root 28672 Sep 2 2016 Windows

Last edited by indikaaruna; 06-21-2017 at 10:23 PM.
 
  


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
No 'Alongside' option when trying to install Ubuntu 11.04 to dual boot with Windows 7 UnfairBear Linux - Newbie 17 06-20-2019 03:00 PM
[SOLVED] Dual boot: Windows not showing up on Grub menu Steve W Linux - Newbie 8 04-10-2014 09:30 AM
grub dual boot lost windows option BACTRATE Ubuntu 4 10-27-2008 09:39 AM
Dual Boot : Making Windows First Option in boot menu Maxwell Rain Linux - Software 3 11-27-2004 03:00 PM
Dual Boot option with Linux and Windows XP kuyalfinator General 11 01-16-2004 01:24 AM

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

All times are GMT -5. The time now is 07:58 PM.

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