Update-grub not detecting Manjaro after installing Windows 7

I recently installed Windows 7 on my hard drive, losing access to Manjaro.

Willing to recover access to it, I found a tutorial in Manjaro wiki of how to restore GRUB Bootloader (https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader).

In a live session, I followed every step of the guide, correctly mounted the partition where Manjaro is installed (sda7) to /mnt and afterwards run update-grub (I haven’t an additional partition for boot) and this is what Terminal outputs:

[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found Windows 7 on /dev/sda1
Found memtest86+ image: /boot/memtest86+/memtest.bin

It looks like it detects the files that Manjaro needs in order to boot but it doesn’t add an entry for it, however it correctly adds the Windows entry.

Related to the Troubleshooting section in the guide, which says:

If Arch Linux wasn’t recognized after an update-grub then probably your Arch installation is missing the package lsb-release.

I found all the files that the lsb-release package installs to the file-system so I don’t think that would be the problem.

Additional information:
sda1 is the System Reserved partition of Windows 7, which is installed on sda2.
Manjaro is installed inside an extended partition which contains two partitions; linux-swap(sda6) and Manjaro(sda7).

Thanks beforehand.

post some more info, i think for you you will need to grub-install. the directions are on that same manjaro wiki page.

inxi -Fxxxz
sudo parted -l
1 Like

I have already done that step, grub is correctly installed, sorry for the lack of information:

[manjaro /]# inxi -Fxxxz

  Host: manjaro Kernel: 4.19.0-3-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 8.2.1 Console: tty 1 wm: xfwm4 dm: LightDM 1.28.0 Distro: Manjaro Linux 
  Type: Laptop System: Intel product: Intel powered classmate PC 
  v: Clamshell serial: N/A Chassis: type: 9 v: 0.1 serial: <filter> 
  Mobo: Intel model: Intel powered classmate PC v: Clamshell 
  serial: <filter> UEFI [Legacy]: Phoenix 
  v: MPSNB10L.10B.0017.2013.0807.1337 date: 08/07/2013 
  ID-1: BAT1 charge: 18.7 Wh condition: 18.9/28.9 Wh (65%) volts: 12.5/11.1 
  model: ECS CMPC type: Li-ion serial: <filter> status: Unknown 
  Topology: Dual Core model: Intel Celeron 847 bits: 64 type: MCP 
  arch: Sandy Bridge rev: 7 L1 cache: 64 KiB L2 cache: 2048 KiB 
  L3 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 4391 
  Speed: 798 MHz min/max: 800/1100 MHz Core speeds (MHz): 1: 798 2: 798 
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Elite Systems driver: i915 v: kernel bus ID: 00:02.0 
  chip ID: 8086:0106 
  Display: server: X.org 1.20.3 driver: intel unloaded: modesetting 
  alternate: fbdev,vesa tty: 80x24 
  Message: Advanced graphics data unavailable for root. 
  Device-1: Intel 7 Series/C216 Family High Definition Audio 
  vendor: Elite Systems driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1e20 
  Sound Server: ALSA v: k4.19.0-3-MANJARO 
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Elite Systems driver: r8169 v: kernel port: 2000 bus ID: 01:00.0 
  chip ID: 10ec:8168 
  IF: enp1s0 state: down mac: <filter> 
  Device-2: Intel Centrino Wireless-N 105 driver: iwlwifi v: kernel 
  port: 2000 bus ID: 02:00.0 chip ID: 8086:0894 
  IF: wlp2s0 state: up mac: <filter> 
  Local Storage: total: 301.78 GiB used: 21.30 GiB (7.1%) 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABF032 size: 298.09 GiB 
  speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A scheme: MBR 
  ID-2: /dev/sdb type: USB model: MXT-USB Storage Device size: 3.69 GiB 
  serial: <filter> rev: 1501 scheme: MBR 
  ID-1: / size: 28.76 GiB used: 21.05 GiB (73.2%) fs: ext4 dev: /dev/sda7 
  ID-2: swap-1 size: 3.81 GiB used: 254.2 MiB (6.5%) fs: swap dev: /dev/sda6 
  System Temperatures: cpu: 61.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  Processes: 182 Uptime: 1h 41m Memory: 1.71 GiB used: 1.14 GiB (66.6%) 
  Init: systemd v: 239 Compilers: gcc: 8.2.1 Shell: bash (sudo) v: 4.4.23 
  running in: mhwd-chroot-she inxi: 3.0.28 

[manjaro /]# parted -l

Model: ATA TOSHIBA MQ01ABF0 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type      File system     Flags
 1      1049kB  106MB  105MB   primary   ntfs            boot
 2      106MB   283GB  283GB   primary   ntfs
 4      283GB   319GB  35.7GB  extended
 7      283GB   315GB  31.4GB  logical   ext4
 5      315GB   315GB  200MB   logical   ext4
 6      315GB   319GB  4095MB  logical   linux-swap(v1)
 3      319GB   320GB  855MB   primary   ntfs            diag

Model: MXT-USB Storage Device (scsi)
Disk /dev/sdb: 3965MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      32.8kB  1994MB  1994MB  primary               boot
 2      1994MB  1998MB  4194kB  primary               esp

[manjaro /]# lsblk

loop0    7:0    0    76M  1 loop 
loop1    7:1    0 273.1M  1 loop 
loop2    7:2    0     1G  1 loop 
loop3    7:3    0 461.5M  1 loop 
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0 263.9G  0 part 
├─sda3   8:3    0   815M  0 part 
├─sda5   8:5    0   191M  0 part 
├─sda6   8:6    0   3.8G  0 part [SWAP]
└─sda7   8:7    0  29.3G  0 part /
sdb      8:16   1   3.7G  0 disk 
├─sdb1   8:17   1   1.9G  0 part 
└─sdb2   8:18   1     4M  0 part 

[manjaro /]# efibootmgr

EFI variables are not supported on this system.

post, each command you issued to restore grub, starting with mounting and chroot

when you reboot, grub comes up but only windows is shown?
maybe @gohlip can jump in on this when and if he gets a chance to, he’s the forum grub wizard.

i can only suggest maybe:
(from live usb)
manjaro-chroot -a
and once at a root #shell
pacman-mirrors -f8 && pacman -Syyu
mkinitcpio -P
then grub-install and grub-update


Correct, only Windows is shown.

Thanks for the suggestion, will try it later. These are the commands I issued:

lsblk -f
sudo pacman -S mhwd-chroot
sudo mhwd-chroot
sudo su
mount /dev/sda7 /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt
cd /mnt
sudo pacman -S mtools os-prober
grub-install /dev/sda
grub-install --recheck /dev/sda

Didn’t notice any errors.

See the first post here. Try the [Simple First Start] first. If it doesn’t boot, try the [More Complicated Setups] method as your commands while in chroot may mess up the original grub.cfg.
If still having problems, provide the data required as listed in that link. If you have to get the information from a live OS, go to the installed manjaro partition with the file manager and get its contents of /etc/fstab as well.

Oh, BTW, your disk is msdos and you should always boot or start the livecd in bios-legacy.
And your os-prober finds windows but you said it does not add an entry for windows (unusual if you booted manjaro in bios-legacy).

Do you have grub-customizer installed?


Hey, thank you! Simple First Start worked and all entries are appearing and working. Looks like you’re a true grub wizard.

Windows was appearing alone in the grub, it was correctly installed just not adding the manjaro entry.

Again thanks to both of you.


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