You are not logged in.

#1 2015-05-02 23:19:13

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Reinstalling Grub Question

Hi All

I have to reinstall grub efi on a windows/Arch system and just wanted to clarify something.  I know I can load up the Arch Live CD and then need to mount the sda where arch is installed.  My current partitions are:

sda1 Windows
sda2 Windows Boot efi / Arch Boot efi
sda3 Windows
sda4 Windows
sda5 arch root
sda6 arch
sda7 arch
sda8 arch

if I follow this example mount -t ext4 /dev/sda1 /mnt - Where /dev/sda1 is the partition where Arch Linux is installed.

Which of my partitions would I use ?  Would that be sda5 so mount -t ext4 /dev/sda5 /mnt

Do I also have to mount sda2 partition aswell before running grub-install /dev/sda

Cheers

WT

Last edited by whitetimer (2015-05-02 23:26:39)

Offline

#2 2015-05-02 23:27:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: Reinstalling Grub Question


Jin, Jîyan, Azadî

Offline

#3 2015-05-02 23:34:48

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: Reinstalling Grub Question

So same way I originally installed then.

mount -t ext4 /dev/sda5 /mnt
mount -t ext4 /dev/sda2 /mnt/boot/efi

grub-install /dev/sda

Ok cheers

Offline

#4 2015-05-02 23:40:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: Reinstalling Grub Question

whitetimer wrote:

So same way I originally installed then.

mount -t ext4 /dev/sda5 /mnt
mount -t ext4 /dev/sda2 /mnt/boot/efi

No, the Beginner's Guide recommends mounting /boot to the EFI system partition.

Read the link I posted.


Jin, Jîyan, Azadî

Offline

#5 2015-05-02 23:57:24

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: Reinstalling Grub Question

Head_on_a_Stick wrote:
whitetimer wrote:

So same way I originally installed then.

mount -t ext4 /dev/sda5 /mnt
mount -t ext4 /dev/sda2 /mnt/boot/efi

No, the Beginner's Guide recommends mounting /boot to the EFI system partition.

Read the link I posted.


so mount /dev/sda5 /mnt

mkdir /mnt/boot/efi

mount /dev/sda2 /mnt/boot/efi

arch-chroot /mnt

grub-install /dev/sda

Offline

#6 2015-05-03 14:19:32

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: Reinstalling Grub Question

whitetimer wrote:

so mount /dev/sda5 /mnt

mkdir /mnt/boot/efi

mount /dev/sda2 /mnt/boot/efi

arch-chroot /mnt

grub-install /dev/sda

Well the /boot/efi directory should already exist on your system (no need to `mkdir`) and you can mount /boot/efi to $ESP if you want (it's your system).

However, this will stop you from being able to use gummiboot or direct EFISTUB booting without further workarounds and those methods can be very useful in case of problems.

If you start GRUB-related support threads in future, be sure to mention if you have $ESP mounted to /boot/efi


Jin, Jîyan, Azadî

Offline

#7 2015-05-03 20:15:20

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: Reinstalling Grub Question

Head_on_a_Stick wrote:
whitetimer wrote:

so mount /dev/sda5 /mnt

mkdir /mnt/boot/efi

mount /dev/sda2 /mnt/boot/efi

arch-chroot /mnt

grub-install /dev/sda

Well the /boot/efi directory should already exist on your system (no need to `mkdir`) and you can mount /boot/efi to $ESP if you want (it's your system).

However, this will stop you from being able to use gummiboot or direct EFISTUB booting without further workarounds and those methods can be very useful in case of problems.

If you start GRUB-related support threads in future, be sure to mention if you have $ESP mounted to /boot/efi


Thanks for the advice and yes sda2 was the EFI System partition

Offline

Board footer

Powered by FluxBB