Problem with dual booting manjaro and windows 7

Hello, I’m trying to dual boot manjaro from a second hard drive while having installed windows 7 on an ssd. Following this tutorial I was able to successfully install manjaro with the following details:

Now when I turn my laptop on and leave it to go to the manjaro boot option it will bring up GRUB rescue no such device … and using command ls will display the following:

(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)

Using the command set I can see that the prefix is set on (hd0,gpt1)/boot/grub and the root is set on (hd0,gpt1)

However if I don’t let manjaro boot, and press f2 to enter BIOS and change nothing and press escape and exit, instead of the grub rescue it takes me to the grub menu and I can choose whether to enter windows or manjaro.
From here without choosing any options I enter grub by pressing “c” and using set I can see that the prefix is set on (hd0, gpt4)/boot/grub. What should I do so that instead of grub rescue, grub menu would appear?

any input is greatly appreciated.

I can only suspect there is some setting in your UEFI that needs to be set properly, or your UEFI has a problem.
Does UEFI have a drive order for boot to make it to the Manjaro drive?
Is the drive external or internal? This could very well explain this issue.

Your setup seems fine but it would help if you post more info:

efibootmgr -v
sudo parted -l
lsblk
inxi -SMDpuoxxx

from the Manjaro installation.

Hello petsam thank you for your reply.

lsblk output:

[hamed@hamed-pc ~]$ inxi -SMDpuoxxx
System:    Host: hamed-pc Kernel: 4.19.0-3-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.2 
           tk: Qt 5.11.2 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: G56JK v: 1.0 serial: <root required> 
           Mobo: ASUSTeK model: G56JK v: 1.0 serial: <root required> UEFI: American Megatrends v: G56JK.202 date: 09/26/2014 
Drives:    Local Storage: total: 1.14 TiB used: 7.43 GiB (0.6%) 
           ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630 size: 931.51 GiB speed: 3.0 Gb/s rotation: 7200 rpm 
           serial: JR10006P17JXGE rev: A3J0 scheme: GPT 
           ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 250GB size: 232.89 GiB speed: 6.0 Gb/s serial: S3Y9NF0JC50749J 
           rev: 1B6Q scheme: GPT 
Partition: ID-1: / size: 47.81 GiB used: 6.42 GiB (13.4%) fs: ext4 dev: /dev/sda4 uuid: 3d57feaf-5df4-4e6e-9a09-574801bdca20 
           ID-2: /boot/efi size: 96.0 MiB used: 25.3 MiB (26.3%) fs: vfat dev: /dev/sdb1 uuid: 5A7F-30CD 
           ID-3: /home size: 181.63 GiB used: 1015.3 MiB (0.5%) fs: ext4 dev: /dev/sda5 
           uuid: 57133c03-3898-41e8-9358-d892460af8fd 
           ID-4: swap-1 size: 9.77 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda6 uuid: 2ae459eb-3811-4ed3-936c-9d32367fa154 
Unmounted: ID-1: /dev/sda1 size: 128.0 MiB fs: <root required> label: N/A uuid: N/A 
           ID-2: /dev/sda2 size: 449.09 GiB fs: ntfs label: Files uuid: 1E62DF5562DF306F 
           ID-3: /dev/sda3 size: 238.15 GiB fs: ntfs label: Other uuid: 2E7818D87818A09F 
           ID-4: /dev/sdb2 size: 128.0 MiB fs: <root required> label: N/A uuid: N/A 
           ID-5: /dev/sdb3 size: 232.17 GiB fs: ntfs label: N/A uuid: 76FECD1BFECCD511 
  • My first boot option is the manjaro installation and the second one is windows 7.
  • The drive is internal.

Please post in text, the image is unreadable (at least for me)

Also post

sudo blkid
sudo inxi -puo
[hamed@hamed-pc ~]$ efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,0005
Boot0000* Windows Boot Manager  HD(1,GPT,8192ebfb-2361-44cc-a3db-3139dfd0072b,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* Manjaro       HD(1,GPT,8192ebfb-2361-44cc-a3db-3139dfd0072b,0x800,0x32000)/File(\EFI\Manjaro\grubx64.efi)
Boot0005* UEFI OS       VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
[hamed@hamed-pc ~]$ sudo parted -l
[sudo] password for hamed: 
Model: ATA HGST HTS721010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  135MB   134MB                   Microsoft reserved partition  msftres
 2      135MB   482GB   482GB   ntfs            Basic data partition          msftdata
 3      482GB   738GB   256GB   ntfs            Basic data partition          msftdata
 4      738GB   790GB   52.4GB  ext4
 5      790GB   990GB   199GB   ext4
 6      990GB   1000GB  10.5GB  linux-swap(v1)


Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sdb: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                          Flags
 1      1049kB  106MB  105MB  fat32        EFI system partition          boot, esp
 2      106MB   240MB  134MB               Microsoft reserved partition  msftres
 3      240MB   250GB  249GB  ntfs         Basic data partition          msftdata


Model: SD SD (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  15.9GB  15.9GB  primary  fat32        lba


[hamed@hamed-pc ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   128M  0 part 
├─sda2        8:2    0 449.1G  0 part 
├─sda3        8:3    0 238.2G  0 part 
├─sda4        8:4    0  48.8G  0 part /
├─sda5        8:5    0 185.6G  0 part /home
└─sda6        8:6    0   9.8G  0 part [SWAP]
sdb           8:16   0 232.9G  0 disk 
├─sdb1        8:17   0   100M  0 part /boot/efi
├─sdb2        8:18   0   128M  0 part 
└─sdb3        8:19   0 232.2G  0 part 
mmcblk0     179:0    0  14.8G  0 disk 
└─mmcblk0p1 179:1    0  14.8G  0 part /run/media/hamed/E40A-D3FF
[hamed@hamed-pc ~]$ 
[hamed@hamed-pc ~]$ sudo blkid
[sudo] password for hamed: 
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="6c9fd2f1-bc08-49cd-a06f-7e214df24a26"
/dev/sda2: LABEL="Files" UUID="1E62DF5562DF306F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ae81bf90-b878-4505-aa18-ce9d2151f64a"
/dev/sda3: LABEL="Other" UUID="2E7818D87818A09F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="cb1d78cc-b8a0-4054-a785-a687eef08c31"
/dev/sda4: UUID="3d57feaf-5df4-4e6e-9a09-574801bdca20" TYPE="ext4" PARTUUID="407696f0-0af8-4ab7-b334-ad18b8734580"
/dev/sda5: UUID="57133c03-3898-41e8-9358-d892460af8fd" TYPE="ext4" PARTUUID="746db1a6-5c10-49d6-99c9-97513e67952d"
/dev/sda6: UUID="2ae459eb-3811-4ed3-936c-9d32367fa154" TYPE="swap" PARTUUID="7abb8010-3857-4607-9842-cb91b4a6b0e9"
/dev/sdb1: UUID="5A7F-30CD" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="8192ebfb-2361-44cc-a3db-3139dfd0072b"
/dev/sdb2: PARTLABEL="Microsoft reserved partition" PARTUUID="cdf6ac5b-ff53-409b-acaa-21cebff9aeaa"
/dev/sdb3: UUID="76FECD1BFECCD511" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4d7ffe0a-8fa2-4293-b753-65507d3522bd"
/dev/mmcblk0: PTUUID="b99d9111" PTTYPE="dos"
/dev/mmcblk0p1: UUID="E40A-D3FF" TYPE="vfat" PARTUUID="b99d9111-01"
[hamed@hamed-pc ~]$ sudo inxi -puo
Partition: ID-1: / size: 47.81 GiB used: 6.78 GiB (14.2%) fs: ext4 dev: /dev/sda4 
           uuid: 3d57feaf-5df4-4e6e-9a09-574801bdca20 
           ID-2: /boot/efi size: 96.0 MiB used: 25.3 MiB (26.3%) fs: vfat dev: /dev/sdb1 uuid: 5A7F-30CD 
           ID-3: /home size: 181.63 GiB used: 1.85 GiB (1.0%) fs: ext4 dev: /dev/sda5 
           uuid: 57133c03-3898-41e8-9358-d892460af8fd 
           ID-4: /run/media/hamed/E40A-D3FF size: 14.76 GiB used: 1.1 MiB (0.0%) fs: vfat dev: /dev/mmcblk0p1 
           uuid: E40A-D3FF 
           ID-5: swap-1 size: 9.77 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda6 
           uuid: 2ae459eb-3811-4ed3-936c-9d32367fa154 
Unmounted: ID-1: /dev/sda1 size: 128.0 MiB fs: N/A label: N/A uuid: N/A 
           ID-2: /dev/sda2 size: 449.09 GiB fs: ntfs label: Files uuid: 1E62DF5562DF306F 
           ID-3: /dev/sda3 size: 238.15 GiB fs: ntfs label: Other uuid: 2E7818D87818A09F 
           ID-4: /dev/sdb2 size: 128.0 MiB fs: N/A label: N/A uuid: N/A 
           ID-5: /dev/sdb3 size: 232.17 GiB fs: ntfs label: N/A uuid: 76FECD1BFECCD511 

Pls post your /etc/default/grub too: cat /etc/default/grub

Do you have an old windows installation on sda?
I assume both your drives are internal and not to be swapped in the future.
Since $esp is on SSD/sdb, this drive will need to be present to boot on Manjaro.

I am not sure what UEFI boot order means for your UEFI. It may look for sda (Manjaro) when the bootloader is on sdb.
Anyway, you may try creating a new boot entry and if this fails, you 'll do a “hack”, as in this tutorial.

sudo efibootmgr -c -d /dev/sdb -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"
efibootmgr -v

Notice the Boot ID of the entry with label “manjaro”. If it is not 1st in order, you can make it 1st. If for example, it’s 0006 and others are 0000, 0001, run:

sudo efibootmgr -o 0006, 0000, 0001

Reboot to check.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.