Dual boot - grub doesn't show windows option

Post Reply
Message
Author
User avatar
pcfan
Posts: 101
Joined: Mon Feb 05, 2024 7:23 pm

Dual boot - grub doesn't show windows option

#1 Post by pcfan »

Hello friends. I know that in order to have Windows and Linux and dual boot , it is supposed to install windows first and then Linux. However , I did a try on Virtual Machine and I was able to install Windows after Linux MX , then I boot with "Rescatux" tool fix the boot / grub and then I was able to see on the MX grub screen the option to choose Windows.
I tried to replicate that in my PC where I run AntiX and I even though I have the grub fixed and I can logon into Antix I am not able to choose Windows. Is there a way to solve this without reinstalling everything again.?

This is my system : (Windows is set in sda3)

Code: Select all

System:
  Kernel: 6.1.42-antix.1-amd64-smp arch: x86_64 bits: 64 compiler: gcc v: 13.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.42-antix.1-amd64-smp
    root=UUID=22182c16-5bd4-4d58-91a2-999966bad383 ro quiet selinux=0
    resume=UUID=22182c16-5bd4-4d58-91a2-999966bad383 resume_offset=462848
  Desktop: IceWM v: 3.4.4 dm: slimski v: 1.5.0 Distro: antiX-23_x64-full Arditi del Popolo 27
    August 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: MICRO-STAR model: G31TM-P21 (MS-7529) v: 1.0 serial: <superuser required>
    BIOS: American Megatrends v: 4.7 date: 07/28/2010
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 3.82 GiB used: 1.06 GiB (27.8%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Pentium E5300 bits: 64 type: MCP arch: Penryn level: v1 built: 2008
    process: Intel 45nm family: 6 model-id: 0x17 (23) stepping: 0xA (10) microcode: 0xA0B
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB
    L2: 2 MiB desc: 1x2 MiB
  Speed (MHz): avg: 2313 high: 2434 min/max: N/A cores: 1: 2193 2: 2434 bogomips: 10399
  Flags: acpi aperfmperf apic arch_perfmon bts clflush cmov constant_tsc cpuid cx16 cx8 de
    ds_cpl dtes64 dtherm dts est flexpriority fpu fxsr ht lahf_lm lm mca mce mmx monitor msr mtrr
    nopl nx pae pat pbe pdcm pebs pge pni pse pse36 pti rep_good sep sse sse2 ssse3 syscall tm tm2
    tpr_shadow tsc vme vmx vnmi vpid xsave xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 82G33/G31 Express Integrated Graphics vendor: Micro-Star MSI driver: i915
    v: kernel arch: Gen-4 process: Intel 65n built: 2006-07 ports: active: VGA-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:29c2 class-ID: 0300
  Display: server: X.Org v: 1.21.1.7 driver: X: loaded: intel dri: i915 gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 359x203mm (14.13x7.99") s-diag: 412mm (16.24")
  Monitor-1: VGA-1 mapped: VGA1 model: LG (GoldStar) W1943 serial: <filter> built: 2009
    res: 1360x768 hz: 60 dpi: 85 gamma: 1.2 chroma: red: x: 0.643 y: 0.333 green: x: 0.302 y: 0.608
    blue: x: 0.145 y: 0.071 white: x: 0.314 y: 0.329 size: 406x229mm (15.98x9.02")
    diag: 466mm (18.4") ratio: 16:9 modes: 1360x768, 1024x768, 832x624, 800x600, 640x480, 720x400
  API: OpenGL v: 2.1 Mesa 22.3.6 renderer: i915 (: G33) direct-render: Yes
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:27d8 class-ID: 0403
  Device-2: VIA VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio driver: snd_ice1724 v: kernel
    bus-ID: 03:00.0 chip-ID: 1412:1724 class-ID: 0401
  Sound API: ALSA v: k6.1.42-antix.1-amd64-smp running: yes
  Sound Server-1: PipeWire v: 1.0.0 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d800 bus-ID: 02:00.0 chip-ID: 10ec:8136
    class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IP v6: <filter> type: dynamic mngtmpaddr scope: global
  IP v6: <filter> scope: link
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 298.09 GiB used: 123.03 GiB (41.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: HD322HJ size: 298.09 GiB block-size:
    physical: 512 B logical: 512 B speed: <unknown> type: N/A serial: <filter> rev: 1118 scheme: MBR
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH24NSC0 rev: LI00 dev-links: N/A
  Features: speed: 32 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram
    state: running
Partition:
  ID-1: / raw-size: 30.41 GiB size: 29.76 GiB (97.86%) used: 13.08 GiB (43.9%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1 label: rootantiX23 uuid: 22182c16-5bd4-4d58-91a2-999966bad383
  ID-2: /home raw-size: 236.15 GiB size: 231.39 GiB (97.98%) used: 109.95 GiB (47.5%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2 label: N/A uuid: d5e6d0f7-7dd9-4773-a0d6-8372e88fac97
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 50 (default 100)
  ID-1: swap-1 type: file size: 5.81 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Unmounted:
  ID-1: /dev/sda3 maj-min: 8:3 size: 27.53 GiB fs: ntfs label: Windows uuid: 4D424D576B62F455
  ID-2: /dev/sda4 maj-min: 8:4 size: 4 GiB fs: swap label: N/A
    uuid: 9fb766f3-4bb3-4f38-abaa-01dd7c1c8951
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 8 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-3: 3-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 3-2:2 info: SiGma Micro XM102K Optical Wheel Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s power: 100mA chip-ID: 1c4f:0034
    class-ID: 0301
  Hub-4: 4-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 1774 libs: 841 tools: apt,apt-get,aptitude,synaptic
  Active apt repos in: /etc/apt/sources.list.d/antix.list
    1: deb [signed-by=/etc/apt/keyrings/antix-archive-keyring.gpg] https: //espejito.fder.edu.uy/mxlinux/packages/antix/bookworm bookworm main nonfree nosystemd
  Active apt repos in: /etc/apt/sources.list.d/bookworm-backports.list
    1: deb http: //deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http: //ftp.cl.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http: //ftp.cl.debian.org/debian/ bookworm main contrib non-free non-free-firmware
    2: deb http: //security.debian.org/ bookworm-security main contrib non-free non-free-firmware
  No active apt repos in: /etc/apt/sources.list.d/liquorix.list
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https: //mega.nz/linux/repo/Debian_12/ ./
Processes:
  CPU top: 5 of 136
  1: cpu: 28.0% command: yad pid: 2885 mem: 31.0 MiB (0.7%)
  2: cpu: 13.6% command: firefox-esr pid: 2429 mem: 465.5 MiB (11.9%)
  3: cpu: 4.9% command: firefox-esr pid: 2673 mem: 191.4 MiB (4.8%)
  4: cpu: 1.3% command: xorg pid: 1904 mem: 84.8 MiB (2.1%)
  5: cpu: 0.4% command: firefox-esr pid: 2643 mem: 123.6 MiB (3.1%)
  Memory top: 5 of 136
  1: mem: 465.5 MiB (11.9%) command: firefox-esr pid: 2429 cpu: 13.6%
  2: mem: 191.4 MiB (4.8%) command: firefox-esr pid: 2673 cpu: 4.9%
  3: mem: 123.6 MiB (3.1%) command: firefox-esr pid: 2643 cpu: 0.4%
  4: mem: 114.4 MiB (2.9%) command: firefox-esr pid: 2549 cpu: 0.1%
  5: mem: 102.0 MiB (2.6%) command: cmst pid: 2156 cpu: 0.0%
Info:
  Processes: 136 Uptime: 20m wakeups: 1925 Init: SysVinit v: 3.06 runlevel: 5 default: 5
  tool: service Compilers: gcc: 12.2.0 alt: 12 Client: IceWM v: 3.4.4 inxi: 3.3.25
This is how it looks at gparted.
screenshot.jpg
Thanks in advance.
You do not have the required permissions to view the files attached to this post.

User avatar
fehlix
Developer
Posts: 10388
Joined: Wed Apr 11, 2018 5:09 pm

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#2 Post by fehlix »

When booting from LiveUSB/DVD to the Live-boot menu would the Boot Rescue menu find Windows installation and boot into it. Boot Rescue menu is available after switched to the GRUB menu.
If yes, you may try to run, from running MX/antiX Linux

Code: Select all

sudo dpkg-reconfigure grub-pc
and select to enable OS prober.
Do select only the HD ( /dev/sda not the LiveUSB) to install grub-loader into MBR of sda - no need to select partitions /dev/sdaX.

PS: Any reason why you write the topic title in uppercase?
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
pcfan
Posts: 101
Joined: Mon Feb 05, 2024 7:23 pm

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#3 Post by pcfan »

Hi Fehlix. While you were wirtting I found the solution here viewtopic.php?p=765743&hilit=Dual+boot#p765743
Although it is not quite the same under my current Mx. It did the trick.
By the way on the tutorial the picture shown after dpgk -reconfigure grub-pc says "quick splash" (on the default linux command). I didn't touch that in my file, I left it alone as it was showing the UUID.
Thank you so much for such a quick reply.
Sorry for capital letters . I didnt mean to shout.

User avatar
fehlix
Developer
Posts: 10388
Joined: Wed Apr 11, 2018 5:09 pm

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#4 Post by fehlix »

pcfan wrote: Sat Feb 17, 2024 9:00 pm Hi Fehlix. While you were wirtting I found the solution here viewtopic.php?p=765743&hilit=Dual+boot#p765743
Although it is not quite the same under my current Mx. It did the trick.
Please explain your found solution, here in this thread.
Thanks
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
pcfan
Posts: 101
Joined: Mon Feb 05, 2024 7:23 pm

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#5 Post by pcfan »

The solution is the same you told me.


Here is the link inside that thread.https://fullscale4me.com/Dual-Boot-MX-L ... -Guide.pdf
And these are the steps that I took.

"5.4 Restore Windows to the Grub menu
In 2023 a Grub security update created a bit of internet chatter on this topic. The MX developers have already set GRUB_DISABLE_OS_PROBER="false"(from "true"). Easy fix to try first -

Run the command ‘sudo update-grub’ to add Windows to the GRUB menu. Older versions or other distributions may not have a fix similar to the MX one. Note: When running the above if ‘Windows Boot Loader’ does NOT appear (MX 21 and other distros) an extra step may be needed. 5.4.1 Getting OS_Prober to run always • Run ‘sudo dpkg-reconfigure grub-pc’.
• Check ‘Run os-prober automatically to detect and boot other OSes?’ and click Next.
• Run ‘sudo update-grub’ again. As that runs a line saying ‘Windows Boot Loader’ should now be seen. Reboot and verify."

User avatar
FullScale4Me
Posts: 678
Joined: Sat Jan 09, 2021 12:30 am

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#6 Post by FullScale4Me »

The antiX has 2 steps to OK past before getting to where the user is asked ‘Run os-prober automatically to detect and boot other OSes?’ (Y/N)

Xfce (pic in the guide) and KDE differ as well. More rewriting in store I guess! The KDE pic below is after scrolling down.

I had not anticipated my guide being used on Dual Boots with antiX as the Linux @anticapitalista

Code: Select all

Distro: antiX-23_x64-full Arditi del Popolo 27 August 2023 

MX 23.2 Xfce
Image

MX 23.2 KDE
Image

antiX 23 Full
Image
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700 32 Gb, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T 8 Gb, MX Linux 23 Xfce & Win 10 Home

User avatar
Eadwine Rose
Administrator
Posts: 11978
Joined: Wed Jul 12, 2006 2:10 am

Re: Dual boot - grub doesn't show windows option

#7 Post by Eadwine Rose »

All caps title removed, please do not shout.
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
pcfan
Posts: 101
Joined: Mon Feb 05, 2024 7:23 pm

Re: DUAL BOOT - GRUB DOESN'T SHOW WINDOWS OPTION

#8 Post by pcfan »

FullScale4Me wrote: Sat Feb 17, 2024 10:49 pm
I had not anticipated my guide being used on Dual Boots with antiX as the Linux ..]
Your tutorial has been very helpfull and it was easy to adapt to antiX

Thank you so very much for your effort and for this post.

Post Reply

Return to “antiX”