You are not logged in.
Pages: 1
Hi,
I think I made a mistake when I installed Windows on a second SSD (/sdb). I think that to get Grub to recognise Windows on the second SSD it must be UFI I think it is MBR. But I am not sure, can someone please let me know how I messed up.
I have even tried mounting the Windows partitions prior to running os-prober, grub-install and grub-mkconfig (complete command line below).
When os-prober runs it seems to detect Windows in /sdb:
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
11/1/23 10:08 PM 50mounted-tests debug: mounted using GRUB ntfs filesystem driver
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/05efi
11/1/23 10:08 PM 05efi debug: /dev/sda1 is ntfs partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10freedos
11/1/23 10:08 PM 10freedos debug: /dev/sda1 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10qnx
11/1/23 10:08 PM 10qnx debug: /dev/sda1 is not a QNX4 partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20macosx
11/1/23 10:08 PM macosx-prober debug: /dev/sda1 is not an HFS+ partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20microsoft
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/30utility
11/1/23 10:08 PM 30utility debug: /dev/sda1 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/40lsb
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/70hurd
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/80minix
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/83haiku
11/1/23 10:08 PM 83haiku debug: /dev/sda1 is not a BeFS partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90solaris
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/efi
11/1/23 10:08 PM systemd var-lib-os\x2dprober-mount.mount: Deactivated successfully.
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/50mounted-tests on /dev/sdb1
11/1/23 10:08 PM 50mounted-tests debug: mounted using GRUB ntfs filesystem driver
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/05efi
11/1/23 10:08 PM 05efi debug: /dev/sdb1 is ntfs partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10freedos
11/1/23 10:08 PM 10freedos debug: /dev/sdb1 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10qnx
11/1/23 10:08 PM 10qnx debug: /dev/sdb1 is not a QNX4 partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20macosx
11/1/23 10:08 PM macosx-prober debug: /dev/sdb1 is not an HFS+ partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20microsoft
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/30utility
11/1/23 10:08 PM 30utility debug: /dev/sdb1 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/40lsb
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/70hurd
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/80minix
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/83haiku
11/1/23 10:08 PM 83haiku debug: /dev/sdb1 is not a BeFS partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90solaris
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/efi
11/1/23 10:08 PM systemd var-lib-os\x2dprober-mount.mount: Deactivated successfully.
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/50mounted-tests on /dev/sdb2
11/1/23 10:08 PM 50mounted-tests debug: mounted using GRUB ntfs filesystem driver
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/05efi
11/1/23 10:08 PM 05efi debug: /dev/sdb2 is ntfs partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10freedos
11/1/23 10:08 PM 10freedos debug: /dev/sdb2 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10qnx
11/1/23 10:08 PM 10qnx debug: /dev/sdb2 is not a QNX4 partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20macosx
11/1/23 10:08 PM macosx-prober debug: /dev/sdb2 is not an HFS+ partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20microsoft
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/30utility
11/1/23 10:08 PM 30utility debug: /dev/sdb2 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/40lsb
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/70hurd
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/80minix
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/83haiku
11/1/23 10:08 PM 83haiku debug: /dev/sdb2 is not a BeFS partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90solaris
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/efi
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/50mounted-tests on /dev/sdb3
11/1/23 10:08 PM 50mounted-tests debug: mounted using GRUB ntfs filesystem driver
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/05efi
11/1/23 10:08 PM 05efi debug: /dev/sdb3 is ntfs partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10freedos
11/1/23 10:08 PM 10freedos debug: /dev/sdb3 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/10qnx
11/1/23 10:08 PM 10qnx debug: /dev/sdb3 is not a QNX4 partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20macosx
11/1/23 10:08 PM macosx-prober debug: /dev/sdb3 is not an HFS+ partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/20microsoft
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/30utility
11/1/23 10:08 PM 30utility debug: /dev/sdb3 is not a FAT partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/40lsb
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/70hurd
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/80minix
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/83haiku
11/1/23 10:08 PM 83haiku debug: /dev/sdb3 is not a BeFS partition: exiting
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90linux-distro
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/90solaris
11/1/23 10:08 PM 50mounted-tests debug: running subtest /usr/lib/os-probes/mounted/efi
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sdc1
11/1/23 10:08 PM 05efi debug: /dev/sdc1 is a FAT32 partition
11/1/23 10:08 PM 05efi debug: /dev/sdc1 partition scheme is dos
11/1/23 10:08 PM 05efi debug: /dev/sdc1 partition type is 0xef
11/1/23 10:08 PM 05efi debug: running subtest /usr/lib/os-probes/mounted/efi/10elilo
11/1/23 10:08 PM 05efi debug: running subtest /usr/lib/os-probes/mounted/efi/20microsoft
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sdc1
11/1/23 10:08 PM 10freedos debug: /dev/sdc1 is a FAT32 partition
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sdc1
11/1/23 10:08 PM 10qnx debug: /dev/sdc1 is not a QNX4 partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sdc1
11/1/23 10:08 PM macosx-prober debug: /dev/sdc1 is not an HFS+ partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sdc1
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sdc1
11/1/23 10:08 PM 30utility debug: /dev/sdc1 is a FAT32 partition
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdc1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sdc1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sdc1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sdc1
11/1/23 10:08 PM 83haiku debug: /dev/sdc1 is not a BeFS partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdc1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sdc1
11/1/23 10:08 PM os-prober debug: /dev/sdc2: is active swap
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sdd1
11/1/23 10:08 PM 05efi debug: /dev/sdd1 is fuseblk partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sdd1
11/1/23 10:08 PM 10freedos debug: /dev/sdd1 is not a FAT partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sdd1
11/1/23 10:08 PM 10qnx debug: /dev/sdd1 is not a QNX4 partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sdd1
11/1/23 10:08 PM macosx-prober debug: /dev/sdd1 is not an HFS+ partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sdd1
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sdd1
11/1/23 10:08 PM 30utility debug: /dev/sdd1 is not a FAT partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdd1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sdd1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sdd1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sdd1
11/1/23 10:08 PM 83haiku debug: /dev/sdd1 is not a BeFS partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdd1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sdd1
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/05efi on mounted /dev/sdd2
11/1/23 10:08 PM 05efi debug: /dev/sdd2 is fuseblk partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/sdd2
11/1/23 10:08 PM 10freedos debug: /dev/sdd2 is not a FAT partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/sdd2
11/1/23 10:08 PM 10qnx debug: /dev/sdd2 is not a QNX4 partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/sdd2
11/1/23 10:08 PM macosx-prober debug: /dev/sdd2 is not an HFS+ partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/sdd2
11/1/23 10:08 PM 20microsoft debug: Skipping legacy bootloaders on UEFI system
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/sdd2
11/1/23 10:08 PM 30utility debug: /dev/sdd2 is not a FAT partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/sdd2
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/sdd2
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/sdd2
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/sdd2
11/1/23 10:08 PM 83haiku debug: /dev/sdd2 is not a BeFS partition: exiting
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/sdd2
11/1/23 10:08 PM os-prober debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/sdd2
11/1/23 10:08 PM sudo pam_unix(sudo:session): session closed for user root
So I then I run:
# sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB --recheck
But then I don't see an output that it added Windows to the Grub menu after running:
# sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
Disk /dev/sda: 29.82 GiB, 32017047552 bytes, 62533296 sectors
Disk model: SAMSUNG SSD PM83
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1ab98f13
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 52807735 52805688 25.2G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x83ff74e2
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 104447 102400 50M 7 HPFS/NTFS/exFAT
/dev/sdb2 104448 467770446 467665999 223G 7 HPFS/NTFS/exFAT
/dev/sdb3 467771392 468856831 1085440 530M 27 Hidden NTFS WinRE
Disk /dev/sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0dbc80b7
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 2099199 2097152 1G ef EFI (FAT-12/16/32)
/dev/sdc2 2099200 10487807 8388608 4G 82 Linux swap / Solaris
/dev/sdc3 10487808 1953525167 1943037360 926.5G 83 Linux
Disk /dev/sdd: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: 2105
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: 0x934faf5f
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 2048002047 2048000000 976.6G 7 HPFS/NTFS/exFAT
/dev/sdd2 2048002048 3907024895 1859022848 886.5G 7 HPFS/NTFS/exFAT
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 29.8G 0 disk
└─sda1 8:1 0 25.2G 0 part
sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 50M 0 part
├─sdb2 8:18 0 223G 0 part
└─sdb3 8:19 0 530M 0 part
sdc 8:32 0 931.5G 0 disk
├─sdc1 8:33 0 1G 0 part /efi
├─sdc2 8:34 0 4G 0 part [SWAP]
└─sdc3 8:35 0 926.5G 0 part /
sdd 8:48 0 1.8T 0 disk
├─sdd1 8:49 0 976.6G 0 part /mnt/Data
└─sdd2 8:50 0 886.5G 0 part /mnt/Forensic
lsblk from util-linux 2.38.1
Any help would be appreciated.
Regards,
Craig
Last edited by CraigAB69 (2023-01-11 09:36:19)
Offline
going by your fdisk output sdb is a DOS filesystem so yes its most likely MBR and grub is ignoring it:
05efi debug: /dev/sdb1 is ntfs partition: exiting
20microsoft debug: Skipping legacy bootloaders on UEFI system
Offline
If the disk has an MS-DOS ("MBR" type) partition table then Windows will be installed in non-UEFI mode and so the UEFI GRUB version will not be able to boot it.
Jin, Jîyan, Azadî
Offline
Thanks, guys, I appreciate your response.
I was hoping I was wrong and that I could blame M$, but when I noticed that I had Legacy set in the BIOS, I had that sinking feeling I screwed up.
Thanks again, guys.
Offline
Pages: 1