Restore GRUB after Windows 10 reinstall

Hi.

I need help to reinstall GRUB after a format/reinstall of Windows 10. Now, as the computer starts, it goes directly into Windows 10, ignoring the Manjaro. Here is my terminal output after following this turotial:
https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader

I couldn’t progress any further as I did not know what to do next. My windows is located in the sda. The manjaro is on sdd.

[manjaro-gnome manjaro]# pacman -S mhwd-chroot
resolving dependencies...
looking for conflicting packages...

Packages (1) mhwd-chroot-1.4-1

Total Download Size:   0.00 MiB
Total Installed Size:  0.02 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 mhwd-chroot-1.4-1-any      2.9 KiB  0.00B/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing mhwd-chroot                       [######################] 100%
Optional dependencies for mhwd-chroot
    gksu: gnome gui for su
    kdesu: kde gui for su
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...
[manjaro-gnome manjaro]# mhwd-chroot
gnome-terminal -e mhwd-chroot-shell
[manjaro-gnome manjaro]# mhwd-chroot-shell
/dev/sdd1
[manjaro-gnome /]# lsblk -f
NAME   FSTYPE   LABEL    UUID                                 MOUNTPOINT
loop0  squashfs                                               
loop1  squashfs                                               
loop2  squashfs                                               
loop3  squashfs                                               
sda                                                           
├─sda1 ntfs              CE98BEB098BE9685                     
└─sda2 ntfs              2C1AC6221AC5E8C2                     
sdb                                                           
└─sdb1 ntfs     Games    01D2D0DF4A49CA40                     
sdc                                                           
├─sdc1                                                        
└─sdc2                                                        
sdd                                                           
└─sdd1 ext4              b24a1936-96c2-42f4-ad0a-d785bd9cd2ae /
sde                                                           
└─sde1 vfat     MJRO1702 8C9A-3367                            
[manjaro-gnome /]# mount /dev/sdd1 /mnt
[manjaro-gnome /]# cd /mnt
[manjaro-gnome mnt]# mkdir /boot/efi
[manjaro-gnome mnt]# mount /dev/sdXY /boot/efi
mount: /boot/efi: special device /dev/sdXY does not exist.

Here is the fdisk -l output:

[manjaro@manjaro-gnome ~]$ sudo su
[manjaro-gnome manjaro]# fdisk -l
Disk /dev/loop0: 57 MiB, 59723776 bytes, 116648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 288.2 MiB, 302231552 bytes, 590296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 567.4 MiB, 594948096 bytes, 1162008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 387.4 MiB, 406159360 bytes, 793280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
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: gpt
Disk identifier: 0A8CEEEF-D095-4AB6-B541-036DAC071C98

Device      Start        End    Sectors  Size Type
/dev/sdc1      34     262177     262144  128M Microsoft reserved
/dev/sdc2  264192 3907028991 3906764800  1.8T Microsoft basic data

Partition 1 does not start on physical sector boundary.


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
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: 0x9fdcbc33

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953523711 1953521664 931.5G  7 HPFS/NTFS/exFAT


Disk /dev/sdd: 111.8 GiB, 120034123776 bytes, 234441648 sectors
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: gpt
Disk identifier: 9FDF81EB-2E90-4CB4-B4C3-50BCA6C5F50A

Device     Start       End   Sectors   Size Type
/dev/sdd1   2048 234441614 234439567 111.8G Linux filesystem


Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
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: 0x406de1f5

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1  *       2048   1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2       1026048 488394751 487368704 232.4G  7 HPFS/NTFS/exFAT


Disk /dev/sde: 7.2 GiB, 7747397632 bytes, 15131636 sectors
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: 0x045d5819

Device     Boot Start      End  Sectors  Size Id Type
/dev/sde1  *     2048 15131635 15129588  7.2G  c W95 FAT32 (LBA)
[manjaro-gnome manjaro]# 

Thanks so much, guys! :slight_smile:

Seeing as you have two HDD. Boot up & get into the bios. Go to boot order & set sdd as first boot.

That will get you in Manjaro. Update grub.

1 Like

Use this or this.

Don’t forget after booting up,
sudo grub-install /dev/sda
sudo update-grub

2 Likes

@Hipster I already did that. Tried to boot directly into Manjaro SSD from BIOS. Didn’t work… :frowning:

Sorry, I forget to mention that in my message.

Edit:
@gohlip The second solution worked (tried that first). Thanks so much!
It seems now that the bootlooder is better. It shows only “one Windows 10” option, rather than two like before. :slight_smile:

1 Like

I remember now. That will only work if grub is install on sdd not sda.

I usually put grub on the same drive as linux then I can change from one system to another if anything goes bottoms up.

1 Like

@Hipster I would like to do that too, but for some reason, I can’t change the boot order in my motherboard to put Manjaro SSD in 1°. :frowning:

I think I’ll leave this way for now. :slight_smile:

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