Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 10-18-2018, 07:24 AM   #1
LQ Newbie
Registered: Oct 2018
Posts: 2

Rep: Reputation: Disabled
How to add Windows to grub menu

I have 2 hard drives, one for Windows and another for Linux. I just did a re-install of my Linux system and it seems I messed something up.

If I boot the Windows disk, I go straight to Windows, if I boot the Linux disk I go to Grub which only offers me to boot Linux.

My disks:
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
/dev/nvme0n1p2 1024000 1228799 204800 100M EFI System
/dev/nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
/dev/nvme0n1p4 1261568 976771071 975509504 465.2G Microsoft basic data

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 104859647 104857600 50G 83 Linux
/dev/sda2 104859648 146802687 41943040 20G 82 Linux swap / Solaris
/dev/sda3 146802688 468862127 322059440 153.6G 83 Linux


I have read that on Ubuntu this can be solved with `os-prober` and `update-grub` but `os-prober` does not give me any output.

I just want to be able to choose which OS to boot, instead of having to change the boot drive every time I want to switch. Appreciate any help!
Old 10-18-2018, 07:26 AM   #2
Registered: Sep 2017
Distribution: FreeBSD, OpenSUSE
Posts: 968

Rep: Reputation: Disabled
I can't remember if os-prober gives output - after you run os-prober, run update-grub, bounce the box and you should be good.

EDIT - you also have to have ntfs-3g (not sure package name) installed on your Linux distro for this to work.

Last edited by sevendogsbsd; 10-18-2018 at 07:27 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to add Windows 7 Partition to Grub Menu contraversy Linux - General 1 07-22-2013 02:57 PM
LXer: Grub Customizer Lets You Reorder, Add Or Remove GRUB 2 (Or BURG) Menu Entries LXer Syndicated Linux News 0 10-09-2010 05:20 PM
Grub will not let me add Windows XP to menu.lst BillyGalbreath Linux - General 7 12-27-2005 02:39 PM
add windows install to GRUB menu sall Linux - Hardware 4 07-29-2005 05:41 PM
GRUB - How to add Windows to boot menu? geekgyrrrl Linux - Newbie 4 06-04-2005 10:02 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration