I kept two windows open so I could copy the blkid from one to the fstab in the other.
Sheila
I kept two windows open so I could copy the blkid from one to the fstab in the other.
Sheila
You might need to use gparted again, and put an EFI system flag on the EFI partition.
Dont worry, that will not hurt the rest of your partitions.
Yes then you can write grub to the sda disk
and dont forget… hide /boot/grub/grub.cfg
and again be careful where you are
use pwd again
should be in /mnt/Linux/boot/grub
So sitting at:
/mnt/Linux/boot$
I enter:
cd /mnt/Linux/boot/efi
and I get
bash: cd: /mnt/Linux/boot/efi: Permission denied.
But if I mkdir /mnt/Linux/boot/efi
File exists.
How do I get to the right prompt/directory to use
grub-install /dev/sda
And you probably missed it with my 100s of posts LOL but I already made the flag so it shows boot, esp.
Thanks,
Sheila
Sheesh! I’ve written so many of the same commands today, my brain is having trouble remembering when.
So no wonder stuffs not working. I need to go back to /mnt/boot where I mounted /efi or sda1 CORRECT?
LOL
Sheila
You dont need to be in there to do grub-install.
You are using grub-install from the live system… you can be anywhere… the parameters tell grub-install where to put grub.
grub-install /dev/sda should do it
You may need to mount the efi system partition
mount /dev/sda1 /boot/efi
That mounts it in the live system… iI guess that will be OK…
it is only temporary
If you mount it anywhere else you have to use
–efi-directory=whereyoumountedit
on the grub-install statement
okay, so I am @ mint@mint:~$
grub-install /dev/sda
returns:
grub-install: error: cannot find EFI directory
See above, you need to mount it
so probably error because I mounted sda1 to /mnt/boot and that is where it is currently mounted.
Change from /mnt/boot to mnt/boot/efi?
No, I would mount it at /boot/efi ie in the live system
see reply above
mounted /dev/sda1 to /mnt/boot/efi
No problem
grub-install /dev/sda
Still returns error: cannot find EFI
It does not compute to me. If I cd /mnt/boot and ls
I get efi
So we know efi is there.
Why does it keep saying can’t find EFI
I can cd /mnt/boot/EFI (not /efi) and am there.
But grub-install /dev/sda still returns error no matter where I am.
Sigh.
Does it need to be exactly as fstab? Cause that is /boot/efi NOT /boot/EFI
Is that the issue?
I you have it there, you need
grub-install --efi-directory=/mnt/boot/efi /dev/sda
If you mounted it to /boot/efi you can just do
grub-install /dev/sda
because /boot/efi is the default place it looks for the efi directory
[quote=“Sheila Flanagan, post:151, topic:11669, username:Sheila_Flanagan”]
Why does it keep saying can’t find EFI
With Gentoo one has to mkdir -p /efi mount /dev/sda1 /efi then the command to install grub is grub-install --efi-directory=/efi
Yes, the mount point can be anywhere, as long as you tell grub-install where it is.
Gentoo has its own peculiar conventions.
Are you following this topic?
It looks like the conclusion is going to be … Timeshift will restore system files, but if you want to properly back up all of a disk with grub and bootability, use a dedicated backup utility like Clonezilla.
I have mounted to mnt/boot/;efi
Cannot just do
grub-install /dev/sda1
whether I am at mint@mint (live session)
or whether I cd to /mnt/boot/efi
cause it still is saying can’t find EFI
and that uppercase EFI is not consistent with /efi
So did I do something wrong earlier wher I maybe made a dir called EFI?
Yes, a little!!! To be quite honest, I quit using Timeshift a long time ago, just not worth the trouble, clonezilla is fine, if one wishes to keep it separated from the main drive. All I do now is to copy and paste the files I wish to keep to a different partition or a different drive, usually an ntfs drive so Windows can use.
If TS can restore anything other than files, it would have to be ran from a live session so all drives and partitions are unmounted.
I have unmounted /dev/sda1 and then remounted 2x to:
/mnt/boot/efi
and mnt/boot/EFI
and it mounted both times.
And fstab has /efi
So is that confusing it trying to isntall grub?
Grasping at straws now, eh?
OK. What if the EFI it is searching for is because blkid states
/dev/sda1: …PARTLABEL=“EFI”
Could that be the issue?
Unmount all that
Go back abd read reoly #152
You dont need to make any directories, just mount the partition.
You must be tired, you are losing the thread,…
Go have a break
You dont need to make any directories, just mount the partition.
I know that now. But I DID mkdir before.
But now I don’t think that is the issue. Could be EFI (vs efi) is partlabel in blkid and so it keeps looking for EFI?
I have the sda1 mounted on /mnt/boot/efi and there is nothing in that dir. So should be able to grub-install, but whether I do grub-install /dev/sda or sda1 it still gives error of cannot find EFI (uppercase).
You must be tired, you are losing the thread,…
I am, but we are so close…lol