You are not logged in.

#1 2017-09-27 12:07:17

saltymonky
Member
Registered: 2016-12-23
Posts: 6

Grub going in rescue mode

Hi everyone,

I had some problem with my grub since an update on windows10

I have a dual boot with Arch on one side and Windows on the other one.

Now every time I start my computer, the grub go in rescue mode, so I have to do

set prefix=(hd0,gpt6)/grub
insmode normal
normal

Then from my research, apparently I only had to do

update-grub

in order to make it work.
But I still go to rescue mode with this.

So I tried to reinstall grub by following the wiki. So my esp is sda1

parted /dev/sda print
Model: ATA TOSHIBA MQ01ABD1 (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  106MB   105MB   fat32           EFI system partition          boot, esp
 2      106MB   123MB   16.8MB                  Microsoft reserved partition  msftres
 3      123MB   789GB   789GB   ntfs            Basic data partition          msftdata
 4      789GB   790GB   922MB   ntfs                                          hidden, diag
 5      790GB   790GB   1049kB                                                bios_grub
 6      790GB   790GB   315MB   ext2
 7      790GB   792GB   2147MB  linux-swap(v1)
 8      792GB   1000GB  207GB   ext4
 9      1000GB  1000GB  524MB   ntfs            Basic data partition          hidden, diag

So I tried to mount sda1 on /boot then grub-install but I get

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/grub'.

and I try to mount on /boot/efi

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
Installing for x86_64-efi platform.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: error: disk `hostdisk//dev/sda1' not found.

After further research I saw that sda6 is mounted on /boot

Finally I don't really know what to do, I'm feeling i'm doing something wrong but can't find what

Thank you !

Offline

#2 2017-09-27 12:48:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Grub going in rescue mode

I couldn't even begin to guess what windows10 did, but it could have changed partition ordering/numbering.

Regardless, though, you should not us block device names for your bootloader (or fstab) switch then to UUIDs:

https://wiki.archlinux.org/index.php/Pe … ice_naming


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB