Detect windows in Arch Linux (Dual Boot Windows 7/8/10)


Hi guys i recently moved from Debian to Arch Linux, The problem with Arch is that you have to do everything manually so if you want dual boot like me you have to configure it yoursel

In this post i am gonna show you how to do it.

Let’s say you have already installed Arch Linux and you have a windows partition but your computer boot only to Linux in that case we enter Arch Linux connect your computer to the internet and install os-prober using this command :

sudo pacman -Syu os-prober

then :

grub-mkconfig -o /boot/grub/grub.cfg

You should see something like that :

Detect windows in Arch Linux

Found windows 10 (loader) on /dev/sdax

If that’s the case reboot your computer and you will see windows in the select menu if not you should move on to the next step.

If you are still reading it means you didn’t sow (Found windows 10 (loader) on /dev/sdax) in that case we have to add ‘menuentry’ manually to do that we have to add this :

menuentry ‘Windows 10’ –class windows –class os $menuentry_id_option ‘osprober-chain-3E20CC2720CBE3CD’ {
insmod part_msdos
insmod ntfs
set root=’hd0,msdos1′
if [ x$feature_platform_search_hint = xy ]; then
search –no-floppy –fs-uuid –set=root –hint-bios=hd0,msdos1 –hint-efi=hd0,msdos1 –hint-baremetal=ahci0,msdos1 3E20CC2720CBE3CD
search –no-floppy –fs-uuid –set=root 3E20CC2720CBE3CD
drivemap -s (hd0) ${root}
chainloader +1

to /etc/grub.d/40_custom you can do that with gedit

sudo gedit /etc/grub.d/40_custom

then we save the file and use this command line again :

sudo grub-mkconfig -o /boot/grub/grub.cfg

Detect windows in Arch Linux

Now reboot your computer and see if you could open windows.

If you get some errors add a comment bellow and i will answer you as soon as possible 🙂

You might also like More from author