#Executing 'grub-install/dev/sda' failed This is a fatal error
367 messages · Page 1 of 1 (latest)
it's important to know which way you booted the USB/DVD up in
if this is a modern-ish computer that supports oldskool (legacy/CSM) booting PLUS newskool UEFI booting, it's very important detail to know
- type
efibootmgrin terminal as soon as you boot live to desktop. if it says in first line: "Boot Current: xxxx" then you've booted as UEFI mode
if it says "EFI vars not supported on this system" , you've booted legacy
if looking to do a modern-style UEFI install, then the external hard drive should be set up with GPT (GUID PARTITION TABLE)
and if looking to do legacy, it should be having an MSDOS MBR-scheme partition table
@naive rain ^
I did this before installation I check th hdd properties to GPT and then I Rufus it to GPT because it's a hybrid images according to rufus..
Still get same error
I will recheck it try to reinstall and let you know
don't reinstall right away
just boot the live system
then do efibootmgr and read what I said above, about it
then do sudo parted -l and show results here.
@naive rain
also inxi -SM and show
Ok
I think there are something extra is here
@lofty cobalt can you tell me the issue?
yeah let me read
Ok
Ok
so what's the issue?
does the external hdd not boot?
also, what OS is on the nvme drive?
The grub bootloader cannot execute on the hdd
Windows
only Windows?
Yes
But there is residue of ubuntu also
Like bootloader of ubuntu
Maybe
Because when I boot to bios it shows both
in terminal type gnome-disks
Ok
Wait a minute
got to clean this up a bit
do sudo efibootmgr -b 0001 -B to get rid of Garuda loader
then do sudo efibootmgr -b 000F -B on new line to get rid of Ubuntu loader. that's it. Don't touch anything else and type very precisely.
the the 1 TB HDD
Yes
show it
photograph the window horizontally the whole window, dont cut off
landscape mode camera
ok u see the 3 dots in top right?
Yes
click and do "Format Drive" ... for type choose GPT... and quick mode erase
ok close that app
check all this again. and do the commands i put
This final output after the commands u said
ok good
close terminal, run the Lite installer, and pick the "something else" option
Ok
mention when you're at the partitioning step
So the PARTITIONs will be
- EFI SYSTEM PARTITION 1024
- LINUX SWAP 8000
- EXT4 / 150000
Ok
in landscape, ofc
click free space under /dev/sda in the chart
click the + icon. this must be done all very carefully and slow ok
first partition 315000 MB ; USE AS: "Efi system partition"
Ok
create at "beginning of drive space"
as primary, not logical
don't need more than 300 MiB (315 MB) for EFI
even to put Debian.
Twn
for size, do rest of size ; primary ; use as: ext4 journ. fs
don't need swap cuz it should make swapfile automatically
Moun point?
plus swap is gonna be slow if used a lot on an external drive.
moutnpoint put to
to /
has boot-repair tool been tried yet? I'm fairly certain just running it would fix this in 1 minute
Is this ok ?
Ok ok
ok hit ok
you're giving linux root about 669 GiB
now show window.
this next part is very important
wait i saw an error
Ok ok
I was also thinking like it's just a bootloader 🙃
put 315 MB for new sda1
How
Should I change the size first ?
highlight sda1 , then clik the minus button
ok u can also do that
highlight sda1, then "CHANGE" button
Now sda1 is free space
ok so repeat like before
but with this value
yes
sda1
hit ok
then delete sda2
and redo it. for ext4 full remaining size of drive
then fix bootloader box back to sda1 and show final pic
It automatically switches to window
still wrong
I don't know but it happens last time also
yep hit install button.
yes u can see what it's going to do there
hm
it shouldn't be.
one moment.
ok try this please.
close that box, and do reboot
back to the USB
@naive rain
idk why u keep disappearing.
Sry
Wait
Hey I was thinking like if I do both hdd and usb drive car to MBR
Will it work
idk . last resort i guess. but show DISKS app from live AFTER fresh reboot to live
Back to linuz
showing the sda2 highlighted, and hit play button
run gnome-disks again
or type-search disks in the start menu there
.
for sda2 only . then show
come on.....
What
read what i said
yeah it shows used some, but still i want more info
in terminal, do lsblk -o name,type,size,fstype,fssize,fsused,fsavail,mountpoint
can you please run boot-repair?
that's fair. 8.5 gigs for the OS is alredy installed
Yes
hm try just boot
if not, connect to internet there
make sure internet works..
do ping msn.com
if u get replies, then do ctrl-c to stop
then do :
sudo apt install software-properties-common;
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe";
sudo add-apt-repository -y ppa:yannubuntu/boot-repair;
sudo apt-get update;
sudo apt-get install -y boot-repair
you can do each line without the backslashes, one line at a time, pressing enter
Ok
well, @naive rain ?
ooof
well Lite is based on Ubuntu already so try this
sudo apt update
then apt search boot-repair
see if it finds the program
plus u put damn comma instead of period in the repo information before. no wonder it errored
I make this one like I have ventoy in pc installed it just takes 4-5 minutes
go back to Windows. make ventoy USB IN GPT MODE
Ok
put linuxmint ISO (any kind) on it. that has boot repair tool included
Ok
Ok ok
dont click clear, that's just there underlined for information purposes
afterwards, boot Mint from ventoy to live desktop, and run boot repair tool. choose Advanced option so u can tell it WHICH efi partition to put on. (the sda1, not nvme p1)
MINT
You mean lite right ?
just ventoy it
Ok
in GPT,
that will blank the USB.
then copy Mint ISO (to use it for repair purposes)
ok
Putting mint 22.1 cinnamon iso file here
Ok
then all this
he could if it came with that distro's live ISO 😛
yeah make sure u are in EFI mode. do df -h in terminal
it should mention a line about efivars. if it does, then continue with Advanced Repair in tool
check the next tab and show
what's in Main Options
cool
summary?
no.
Which option
click no, but read the summary
This is all summary
Yes
maximize and show landscape
im reading
the ubiquity installer is so ass.
Wait a sec I will send. You the file
scroll down and show more of it
just dont waste time, take another pic of the rest
and send pic
i can read from photo just fine
I think it worked anyway. disregard the "locked NVRAM" thing.
that just means you gotta adjust boot order in BIOS yourself later.
To access the boot menu on an ASUS ROG Strix laptop, you typically need to press the Esc key repeatedly while the computer is starting up. Alternatively, some models might use F2 to enter the BIOS, which can then be used to access the boot menu or change the boot order
I know this I open the usb file in that way
so you should be able to find new entry here called "linux lite" or maybe just "ubuntu"
ubuntu WD
Yes
loading Lite?
What's the issue than ?
did it load?
It finally worked 🤩🤩💯🎉🎉🎉🎉
I named it stunner
I will never forget you
Thanks bro 👍
You are the angel sent by God 🙏🏻
@lofty cobalt
heh
do df -h and show plz
or lsblk -f
it should NOT show any live loop device
@naive rain and also do cat /proc/swaps
good, it's installed where it should be.. both sda1 for booting stuff, and sda2 for main OS. now show the swap thing i mentioned plz
Yeah like we didn't make
I really did believe it would auto-make a swap FILE
but I'll send u a simple vid on how to make one
and u only need 2 GiB (2048 MiB)
absolutely not
Why
dont mess with running system. follow this guide:
https://www.youtube.com/watch?v=UXhcnoVPpHQ&pp=ygUgam9lIGNvbGxpbnMgY3JlYXRpbmcgYSBzd2FwIGZpbGU%3D
In this video, I show you how to create a swap file on Ubuntu/Linux Mint.
How To Create A Swap File
Stat swap:
sudo swapon -s
free -m
Turn swap off:
sudo swapoff -av
Create new swap file:
sudo fallocate -l 4G /.swapfile
Secure the swap file:
…
Ok tell me what was the main issue ?
Pls
i think main issue was u didnt remove the nvme physically from the PC, and the dumb installer kept getting screwed because of the existing EFI there
as Lot said earlier that particular installer which Mint and Lite use, called "Ubiquity" has some bugs these days
follow this accurately, he is very easy to understand
Ok once again thanks man you help me alot 💯
you're welcome.
What is nvme here ?
The bootloader ?
@jade vigil SOLVED using new GPT on external HDD, and the linux mint BOOT REPAIR APP from live mode to fix stubborn bootloader and force it to go on
Because now I can install
Mint
Zorin os easily
lsblk -f will show u
Ok
it's ur other efi
Ok ok
ur ssd
The ubuntu one ?
idk
ahhh
that's probably what happened. the dumb ubiquity installer tried to put it onto nvme DESPITE our manual install instruction to put it on sda1
Ohh ok ok
next time, open PC back cover, unscrew nvme drive, and take out.
Wait you all are managing the linux lite here
You work as a linux lite maintanence
Ook
The way explain and knowledge like you are the developer
Is it important to make swap ?
i've just become used to helpin on here with many boot issues.
yes put some. 1 or 2 gigs
helps system not overflow main RAM and then crash, especialy if gaming or something heavy in apps
You should make your own OS now
I think you achieve the level to build your own OS
And I believe it will be the most stable and easy to install os
Honestly you deserve man 🫡
Ok ok
SOLVED using new GPT on external HDD, and the linux mint BOOT REPAIR APP from live mode to fix stubborn bootloader and force it to go on ESP of HDD
👍👍
@lofty cobalt it worked I think the setup is completed now