Grub doesn't see Windows 10 even on other disk
Tofloor
poster avatar
m9_
deepin
2019-01-14 19:00
Author
Edited by m9_ at 2019-1-14 11:05

Hi guys, I have a problem i'm dealing with for last 48 hours. The GRUB doesn't Windows. I tried dual-boot after giving up on it (I read GRUB doesn't like dual-boot). I reinstall a literally new copy of Windows 10 on separate disk and reinstall a clean copy of Deepin 15.8 on SSD and vualá - it didn't work. I start to think this GRUB 2 hates me
I checked in grub command-line it seems that grub doesn't even see other disks because when I did 'ls' it showed (hd0) (hd0,gpt1) (hd0,gpt2) which is SSD with Deepin. Could be because I booted the hard disk in UEFI as 1st option? I don't have a GRUB option there only Windows Boot Manager and drives. But when  I did grub-mkdevicemap it says that SSD with Deepin is hd2 and HDD with Windows is hd0. And same when I typed blkid. It showed HDD as sda and SSD as sdc.
I tried different 40_customs entries. See the file below. And I confirmed that it indeed thinks that SSD is hd0 because when I chose custom entry with root hd0,gpt3 and hd0,gpt4 it said partiotion is not found.

AGAIN I installed clean Windows 10 on HDD sda and clean Deepin 15.8 on SSD sdc.


lsblk:
  1. NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  2. sda      8:0    0 698.7G  0 disk
  3. ├─sda1   8:1    0   499M  0 part
  4. ├─sda2   8:2    0   100M  0 part
  5. ├─sda3   8:3    0    16M  0 part
  6. └─sda4   8:4    0   698G  0 part /media/m9/303C04E93C04ABC2
  7. sdb      8:16   0 931.5G  0 disk
  8. └─sdb1   8:17   0 931.5G  0 part /media/m9/Data
  9. sdc      8:32   0 238.5G  0 disk
  10. ├─sdc1   8:33   0 100.1G  0 part /
  11. └─sdc2   8:34   0 138.4G  0 part /media/m9/GTA Online
Copy the Code

blkid:
  1. /dev/sda1: LABEL="M-PM-^RM-PM->M-QM-^AM-QM-^AM-QM-^BM-PM-0M-PM-=M-PM->M-PM-2M-PM-8M-QM-^BM-QM-^L" UUID="0E3EE8203EE80297" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b85fb38c-6034-480a-9c52-7b9081adf1ac"
  2. /dev/sda2: UUID="1EEC-7E0B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ea4f2616-56d6-4495-8035-b527e811df5b"
  3. /dev/sda4: UUID="303C04E93C04ABC2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="d8a14bbe-57b5-4339-9dd3-4345bf39261a"
  4. /dev/sdb1: LABEL="Data" UUID="A822E1B422E18820" TYPE="ntfs" PTTYPE="atari" PARTUUID="8c90457f-01"
  5. /dev/sdc1: UUID="04a4143a-953a-4d4f-9a1c-76256148b323" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="a9f174d4-3385-44e5-90ab-2b2b1ad42e36"
  6. /dev/sdc2: LABEL="GTA Online" UUID="38BA99ACBA9966E2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="19681373-4e3c-4693-812e-e9232f8c998a"
  7. /dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="3e8fcaa9-de39-41f6-8b1c-bff4a35aa4c1"https://pastebin.com/btTPtzPu
Copy the Code

grub-mkdevicemap:
  1. (hd0)        /dev/disk/by-id/ata-ST750LM022_HN-M750MBB_S2RRJ9CC601691
  2. (hd1)        /dev/disk/by-id/ata-ST1000LM024_HN-M101MBB_S318J9BH305071
  3. (hd2)        /dev/disk/by-id/ata-Samsung_SSD_840_PRO_Series_S1ATNEAD700951A
Copy the Code

40_custom
  1. #!/bin/sh
  2. exec tail -n +3 $0
  3. # This file provides an easy way to add custom menu entries.  Simply type the
  4. # menu entries you want to add after this comment.  Be careful not to change
  5. # the 'exec tail' line above.

  6. menuentry 'Windows 10 (gpt1)' --class windows {
  7.     insmod part_gpt
  8.     insmod fat
  9.     set root=(hd0,gpt1)
  10.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  11. }

  12. menuentry 'Windows 10 (gpt2)' --class windows {
  13.     insmod part_gpt
  14.     insmod fat
  15.     set root=(hd0,gpt2)
  16.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  17. }

  18. menuentry 'Windows 10 (gpt3)' --class windows {
  19.     insmod part_gpt
  20.     insmod fat
  21.     set root=(hd0,gpt3)
  22.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  23. }


  24. menuentry 'Windows 10 (gpt4)' --class windows {
  25.     insmod part_gpt
  26.     insmod fat
  27.     set root=(hd0,gpt4)
  28.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  29. }

  30. menuentry 'Windows 10 (1)' --class windows {
  31.     set root=(hd0,1)
  32.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  33. }

  34. menuentry 'Windows 10 (2)' --class windows {
  35.     set root=(hd0,2)
  36.     chainloader /EFI/Microsoft/Boot/bootmgfw.efi
  37. }
Copy the Code

Boot Info Script: https://pastebin.com/btTPtzPu
I put it in pastebin, because it's long. It's shows what GRUB 'suppose' to see.

I tried the following 40_custom it didn't work either so it's not in my 40 custom: https://bbs.deepin.org/post/130491#=1
Please help. I'm literally dying I felt like last 48 hours I was in pornhub video rated as rape and I was who was raped by GRUB.
Reply Favorite View the author
All Replies
kitwalz09
deepin
2019-01-15 14:32
#1
Have you tried sudo os-prober
Reply View the author
m9_
deepin
2019-01-15 15:42
#2
Edited by m9_ at 2019-1-16 13:39
https://bbs.deepin.org/post/173693
Have you tried sudo os-prober

Yes. Os-prober shows nothing. Any ideas?
Reply View the author