You are not logged in.

#1 2018-01-28 22:46:55

iambrj
Member
Registered: 2017-11-03
Posts: 16

[SOLVED]Windows 10 missing from grub

I have a 1TB HDD which I partitioned into sda1 and sda2. I then installed Windows 10 pro on sda1. After that I installed Arch Linux on sda2 by parititioning it as follows

sda2 -> Linux (with boot flag)

sda3 -> swap

sda4 -> files

After installing Arch linux, I only get Arch Linux and Advanced options for arch linux in the grub menu. I've tried running update-grub but I still don't get Windows 10 option. I also made sure I properly shut down (i.e. without quick boot)  Windows 10 before installing Arch. When I run fdisk -l, it shows a boot flag in the Windows partition(sda1). How can I make Windows 10 option appear at the grub menu?

Last edited by iambrj (2018-01-29 00:27:27)


Less is more

Offline

#2 2018-01-28 22:54:10

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED]Windows 10 missing from grub

Did you try adding a menu entry for windows? It won't appear to grub automatically.

https://wiki.archlinux.org/index.php/GR … menu_entry

Last edited by ooo (2018-01-28 22:54:33)

Offline

#3 2018-01-28 23:05:16

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: [SOLVED]Windows 10 missing from grub

iambrj please post the output of fdisk -l.  If I understand correctly the system is MBR/BIOS based.  Is the package os-prober installed?

Offline

#4 2018-01-28 23:09:19

iambrj
Member
Registered: 2017-11-03
Posts: 16

Re: [SOLVED]Windows 10 missing from grub

loqs output of 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: dos
Disk identifier: 0x5fcdadc2

Device     Boot      Start                 End                    Sectors            Size          Id           Type
/dev/sda1  *          2048                 921602047        921600000      439.5G       7           HPFS/NTFS/exFAT
/dev/sda2  *          921602048       1026459647      104857600      50G          83           Linux
/dev/sda3             1026459648      1030653951      4194304          2G            8             Linux
/dev/sda4             1030653952      1953525167      922871216      440.1G     83           Linux

Is there any way to know if I'm using GPT or MBR? Obviously, I cannot boot into Windows, so is there any way to know which one I'm using from Arch?

Last edited by iambrj (2018-01-28 23:13:33)


Less is more

Offline

#5 2018-01-28 23:20:25

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: [SOLVED]Windows 10 missing from grub

Please use code tags from commands plus their outputs

Disklabel type: dos

Indicates MBR.  The command you used to partition the disk initially would determine if it was MBR or GPT Partitioning
Is os-prober installed?  Please also read GRUB#Windows_installed_in_BIOS-MBR_mode

Offline

#6 2018-01-28 23:26:38

iambrj
Member
Registered: 2017-11-03
Posts: 16

Re: [SOLVED]Windows 10 missing from grub

Yes, os-prober is installed. I have gone through the mentioned article and updated

/boot/grub/custom.cfg

I'm new to this fourm, therefore I don't know the norms here. Thanks for the information.


Less is more

Offline

#7 2018-01-28 23:35:25

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: [SOLVED]Windows 10 missing from grub

Did os-prober detect the Windows installation?  Did you regernate grub.cfg after creating custom.cfg?  Here is the Code_of_conduct.

Offline

#8 2018-01-28 23:44:47

iambrj
Member
Registered: 2017-11-03
Posts: 16

Re: [SOLVED]Windows 10 missing from grub

Thank you very much! It all worked fine (I edited the custom.cfg and updated grub then rebooted) and I am in fact writing this reply from Windows. I was stuck with this issue for over a week now. I almost want to throw you a party!

Last edited by iambrj (2018-01-28 23:49:22)


Less is more

Offline

#9 2018-01-29 00:25:48

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED]Windows 10 missing from grub

Please remember to mark your thread as solved by editing the first post and prepending [SOLVED] to the title.  And don't forget the tacos at that party smile

Offline

Board footer

Powered by FluxBB