#My linux mint disappeared
157 messages · Page 1 of 1 (latest)
Does it boot straight to windows now?
Yes I guess grub has been erased? I need to reinstall it?
try
windows probably just nuked grub
did u launch windows using grub?
I launched windows using grub. I rebooted and grub wasn't here any more
I tried to reinstall grub with the help of chatgpt but it didn't work
boot to Windows directly
using the BIOS selections
once there, check and make sure this is off #1193345280733622272 message
then reboot with LInux Mint live USB, and use the boot repair tool in the desktop
Oh right i disabled it on my computer but no on the laptop
In the desktop i only have "install Linux Mint"
Click the menu and start typing boot repair
It's hard to say without knowing what exactly you tried. We'll try easier options first
I tried with the terminal
Well when you'll have time ping me
hey @rapid stratus if you're available tell me 🙂
Ok, first you boot into mint usb
here i am
Then click the menu and start typing boot repair
ok
Yes, if it's available
Interesting, first reboot and see where it goes
i disconnect the usb key when i reboot ?
yes
it boots on windows
While you're in windows, check if fast startup is turned on
i turned it off before booting on the usb linux mint
Alright, then go to uefi and show us the boot order
This ?
Ok, boot back into usb
top one is fine
i'm on linux
Go to the terminal and type
efibootmgr
i think i used the compatibility mode when i installed linux mint on this laptop
and show the results
Ok, next is
lsblk -f
hmm... you have 2 ext4 partitions?
what is ext4 partition
I see. Ok, next type
sudo mount /dev/sda5 /mnt
ls /mnt
on the same msg on the terminal or two different msg
these are 2 separate commands
If you go to discord site and login there, it will be easier to copy commands and share screenshots
true
Ok, sda5 seems to be your linux data, what's sda7 then? Do this:
sudo umount /mnt
sudo mount /dev/sda7 /mnt
ls /mnt
That's something else.... maybe you setup separate home for some reason, either way sda5 is your system partition
Do this next:
sudo umount /mnt
sudo mount /dev/sda5 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
ls /mnt/boot/efi
ok i've EFI in blue
screenshot please
ok, while we're here, show us
cat /mnt/etc/fstab
Ok so sda7 is home folder
Alright, next do this
for i in /dev /dev/pts /proc /sys; do sudo mount --bind $i /mnt$i; done
no errors, good. Next do
sudo chroot /mnt
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo update-grub
ok, then do
sudo rm /boot/efi/EFI/ubuntu/*
sudo rmdir /boot/efi/EFI/ubuntu
ls /boot/efi/EFI/
i dont think this was done properly
root@mint:/# sudo rm /boot/efi/EFI/ubuntu/*
rm: cannot remove '/boot/efi/EFI/ubuntu/*': Not a directory
What exactly?
look at pic
attached
for i in /dev /dev/pts /proc /sys; do sudo mount --bind $i /mnt$i; done
they typed that in literally
I don't see the problem?
is for an actual command?
Hold on @narrow oak
I'm surprised boot repair didn't already fix it
As I understand that command is supposed to do the same as binding /proc /sys and stuff no?
it seems it did, as in it made a grub efi and ubuntu folder
but it's not showing in BIOS cuz of dumb bios
probably have to look in BBS UEFI priorities
some are so shit they hide it there
Still, I'd like to reinstall grub manually here
yeah go ahead
@leaden flume But it says it can't create ubuntu folder, although it's there?
So.... I'm trying to remove it first
@narrow oak do
ls /boot/efi/EFI/
ls /boot/efi/EFI/ubuntu/
please
hmm.... try
ls -l /boot/efi/EFI/
ubuntu is in green, so ... whatever it is, (probably an executable) it's not a directory
no d at the front. definitely not a directory
Ok... @narrow oak then do
sudo rm /boot/efi/EFI/ubuntu
ls -l /boot/efi/EFI/
Could it be that the d flag got removed somehow so mint thinks it's a file now?
@narrow oak do
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
and do
sudo update-grub
ok, next do
exit
ls /sys/firmware/efi/
on two commands ?
yes 2
Ok.... next is
sudo umount -R /mnt
tell me this is positive haha
If there are no errors after the last command, remove usb and restart
yeah restart
Show us uefi settings, not the boot menu
yep. u gon' have to dig deep in there.
@leaden flume This bothers me, although usb booted in uefi mode
this may be another way of saying NVRAM locked, same as what boot repair said.
place ubuntu first
yup. move to top, then save/exit
Ok done.
and see if that boots
hallelujah
Finally
maybe windows is in legacy
in which case, you'd need to boot it straight from BIOS boot menu
or maybe not.
My session is back thanks a lot 🙂
it did have a Microsoft folder in EFI
just run sudo os-prober from here and see if it finds it
It says
/dev/sda2@/EFI/Microsoft/boot/bootmgfw.efi:Windows Boot Manager: Windows:efi
then do sudo update-grub and watch it carefully
it should add that new-found entry into the grub menu
yes it says found windows boot manager ...
adding boot menu entry for uefi firmware settings
Done
that's it then
Alright, restart and see
seems good
yes thanks a lot for the time