Windows 8 not in GRUB menu

Asked by Barry Martin

I have had to uninstall / reinstall Ubuntu and Windows from my PC. After a bit of trouble, I have got my GRUB menu back, but it only shows Ubuntu, no Windows. Fdisk command shows the following:

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: gpt
Disk identifier: 1767AD66-D896-408B-8DD7-B692A80C86D3

Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Windows recovery environment
/dev/sda2 616448 821247 204800 100M EFI System
/dev/sda3 821248 1083391 262144 128M Microsoft reserved
/dev/sda4 1083392 1134325759 1133242368 540.4G Microsoft basic data
/dev/sda5 1134325760 1941806228 807480469 385G Linux filesystem
/dev/sda6 1941807104 1953523711 11716608 5.6G Linux swap

Disk /dev/sdb: 1.8 TiB, 2000398929920 bytes, 488378645 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x9a8aa40c

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 488378644 488376597 1.8T 7 HPFS/NTFS/exFAT

Why does it say "Microsoft basic data" and not "Windows 8.1"? And how do I rectify my GRUB menu?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo update-grub

Thanks

Revision history for this message
Barry Martin (barry-martin) said :
#2

barry@barry-desktop:~$ sudo update-grub
[sudo] password for barry:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-73-generic
Found initrd image: /boot/initrd.img-3.19.0-73-generic
Found linux image: /boot/vmlinuz-3.19.0-15-generic
Found initrd image: /boot/initrd.img-3.19.0-15-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done

Thanks for your prompt response.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

When you ran it, was /dev/sda3 mounted OK?

Revision history for this message
Barry Martin (barry-martin) said :
#4

No it appears sda3 is not mounted. What are the commands for mounting sda3 please?

Revision history for this message
Barry Martin (barry-martin) said :
#5

I get the following response when I mount sda3:

barry@barry-desktop:~$ sudo mount /dev/sda3 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
        missing codepage or helper program, or other error

        In some cases useful info is found in syslog - try
        dmesg | tail or so.
barry@barry-desktop:~$

On 05/11/16 23:10, actionparsnip wrote:
> Your question #403804 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/403804
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> When you ran it, was /dev/sda3 mounted OK?
>

Revision history for this message
David Pearson (akxwi-dave) said :
#6

When you boot your PC, try pressing the Key for your motherboard that gives you the boot options menu ( on mine its F11).. Does it give you an option for Windows Boot Manager? and if you select this does it boot into Windows Fine?

If so, take a look here..

http://askubuntu.com/questions/661947/add-windows-10-to-grub-os-list

Or do as I do and just press F11 to select the Windows Boot Manager when windows is needed.

Revision history for this message
Barry Martin (barry-martin) said :
#7

Yes, I have been doing as you say for the past week, switching to
Windows by going into UEFI setup. It's just that I had the dual boot
grub menu before I did current reinstallation , so I ask myself, why
can't I have it again. Advice at
https://itsfoss.co/no-grub-windows-linux/ says to enter the following
line in the command window in Windows: bcdedit /set {bootmgr} path
\EFI\ubuntu\grubx64.efi. I have done this.

I have also entered the command sudo grub-install dev/sda4 with the
following result:

barry@barry-desktop:~$ sudo grub-install /dev/sda4
Installing for i386-pc platform.
grub-install: warning: File system `ntfs' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be
installed in this setup by using blocklists. However, blocklists are
UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
barry@barry-desktop:~$

Does anybody have any comment?

On 09/11/16 06:02, David Pearson wrote:
> Your question #403804 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/403804
>
> David Pearson posted a new comment:
> When you boot your PC, try pressing the Key for your motherboard that
> gives you the boot options menu ( on mine its F11).. Does it give you
> an option for Windows Boot Manager? and if you select this does it boot
> into Windows Fine?
>
> If so, take a look here..
>
> http://askubuntu.com/questions/661947/add-windows-10-to-grub-os-list
>
> Or do as I do and just press F11 to select the Windows Boot Manager when
> windows is needed.
>

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#8

I suggest that you run the bootinfo script to show information about your partitions.
https://help.ubuntu.com/community/Boot-Info

Revision history for this message
Barry Martin (barry-martin) said :
#9

After doing another reinstallation I now have a GRUB menu showing both Ubuntu and Windows. Thanks to all those who showed an interest in my problem.