You are not logged in.

#1 2024-11-02 13:47:25

italianarcher
Member
Registered: 2024-10-30
Posts: 8

Grub doesn't list windows

Hello everybody,
I have installed Arch on my computer, in dual boot with Debian. On the same disk I have also windows installed, but grub doesn't see it.
I have installed os-prober, I have mounted windows partitions, I have edited the grub file, I have given

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

Grub sees Debian, but yet doesn't list windows

Last edited by italianarcher (2024-11-02 13:48:23)

Offline

#2 2024-11-02 13:59:12

cryptearth
Member
Registered: 2024-02-03
Posts: 961

Re: Grub doesn't list windows

what's the output of

sudo os-prober

?

Offline

#3 2024-11-02 14:04:41

italianarcher
Member
Registered: 2024-10-30
Posts: 8

Re: Grub doesn't list windows

cryptearth wrote:

what's the output of

sudo os-prober

?

/dev/sda7:Debian GNU/Linux 11 (bullseye):Debian:linux

Offline

#4 2024-11-02 17:50:23

cryptearth
Member
Registered: 2024-02-03
Posts: 961

Re: Grub doesn't list windows

so os-prober does not pickup the windows bootloader
1) how many ESPs do you have now?
2) if 1: have you formatted the existing ESP? (and thereby wiped the windows bootloader)
3) if not: does your ESP still have the EFI/Microsoft folder?

Offline

#5 2024-11-02 18:15:04

italianarcher
Member
Registered: 2024-10-30
Posts: 8

Re: Grub doesn't list windows

cryptearth wrote:

so os-prober does not pickup the windows bootloader
1) how many ESPs do you have now?
2) if 1: have you formatted the existing ESP? (and thereby wiped the windows bootloader)
3) if not: does your ESP still have the EFI/Microsoft folder?

Please, forgive me, I don't know what's ESP

Offline

#6 2024-11-02 18:22:39

italianarcher
Member
Registered: 2024-10-30
Posts: 8

Re: Grub doesn't list windows

This is what fdisk -l returns

[davide@archlinux ~$ sudo fdisk -l
[sudo] password di davide:
Disk /dev/sda: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Hitachi HTS54755
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: 0x878e20de

Dispositivo Avvio     Start      Fine   Settori   Size Id Tipo
/dev/sda1              2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2            206848 326768639 326561792 155,7G  7 HPFS/NTFS/exFAT
/dev/sda3         390832128 704897023 314064896 149,8G  7 HPFS/NTFS/exFAT
/dev/sda4         704899070 976771071 271872002 129,6G  5 Esteso
/dev/sda5         967008256 976771071   9762816   4,7G 82 Linux swap / Solaris
/dev/sda6         704899072 872759295 167860224    80G 83 Linux
/dev/sda7         924039168 967000063  42960896  20,5G 83 Linux
/dev/sda8   *     872761344 873992191   1230848   601M  b W95 FAT32
/dev/sda9         873994240 924037119  50042880  23,9G 83 Linux

Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.


Disk /dev/zram0: 1,86 GiB, 1995964416 bytes, 487296 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

Offline

#7 2024-11-02 19:19:15

cryptearth
Member
Registered: 2024-02-03
Posts: 961

Re: Grub doesn't list windows

please use code tags for console output - not quote
also: don't full-quote
as for ESP: as your HDD is not gpt - doesn't matter - but this also hints to CSM enable
best here would be to wipe the disk, disable CSM and setup the drive proper as gpt
how to solve multi-boot in CSM/legacy? I don't dare to tinker with this as it's doomed to fail with the next windows update anyway

Offline

Board footer

Powered by FluxBB