#My linux mint disappeared

157 messages · Page 1 of 1 (latest)

narrow oak
#

Hello there,
I had to launch windows for something. I restarted after the update and the Lenovo logo was flashing
I shutdowned the laptop and now... I can't boot on linux
Any Idea?
Thanks

rapid stratus
#

Does it boot straight to windows now?

narrow oak
narrow oak
#

I don't have Ubuntu any more

#

Shall i disable it?

unkempt tendon
#

windows probably just nuked grub

#

did u launch windows using grub?

narrow oak
#

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

leaden flume
#

using the BIOS selections

#

then reboot with LInux Mint live USB, and use the boot repair tool in the desktop

narrow oak
#

Oh right i disabled it on my computer but no on the laptop

#

In the desktop i only have "install Linux Mint"

leaden flume
#

look in menu

#

in 'all applications' or in 'administration'

rapid stratus
narrow oak
#

Ok i'll try it when I can thanks

#

I tried earlier with the terminal

rapid stratus
#

It's hard to say without knowing what exactly you tried. We'll try easier options first

narrow oak
#

I tried with the terminal

rapid stratus
#

Well when you'll have time ping me

narrow oak
#

hey @rapid stratus if you're available tell me 🙂

rapid stratus
narrow oak
#

here i am

rapid stratus
#

Then click the menu and start typing boot repair

narrow oak
#

ok

#

it's checking updates

rapid stratus
#

ok

narrow oak
#

i've to chose "recommended repair" ?

#

i guess

rapid stratus
#

Yes, if it's available

narrow oak
rapid stratus
#

Interesting, first reboot and see where it goes

narrow oak
#

i disconnect the usb key when i reboot ?

rapid stratus
#

yes

narrow oak
#

it boots on windows

rapid stratus
#

While you're in windows, check if fast startup is turned on

narrow oak
#

i turned it off before booting on the usb linux mint

rapid stratus
#

Alright, then go to uefi and show us the boot order

narrow oak
#

This ?

rapid stratus
#

Ok, boot back into usb

narrow oak
rapid stratus
#

top one is fine

narrow oak
#

i'm on linux

rapid stratus
#

Go to the terminal and type

efibootmgr

narrow oak
#

i think i used the compatibility mode when i installed linux mint on this laptop

rapid stratus
#

and show the results

narrow oak
rapid stratus
#

Ok, next is

lsblk -f

narrow oak
rapid stratus
#

hmm... you have 2 ext4 partitions?

narrow oak
#

what is ext4 partition

rapid stratus
#

I see. Ok, next type

sudo mount /dev/sda5 /mnt
ls /mnt

narrow oak
#

on the same msg on the terminal or two different msg

rapid stratus
#

these are 2 separate commands

narrow oak
rapid stratus
#

If you go to discord site and login there, it will be easier to copy commands and share screenshots

narrow oak
#

true

rapid stratus
#

Ok, sda5 seems to be your linux data, what's sda7 then? Do this:

sudo umount /mnt
sudo mount /dev/sda7 /mnt
ls /mnt

narrow oak
#

and it opened LINUX MINT THunar

rapid stratus
#

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

narrow oak
#

ok i've EFI in blue

rapid stratus
#

screenshot please

narrow oak
rapid stratus
#

ok, while we're here, show us

cat /mnt/etc/fstab

narrow oak
rapid stratus
#

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

narrow oak
#

i think i did a partition for linux and one for the documents

rapid stratus
#

no errors, good. Next do

sudo chroot /mnt
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi
sudo update-grub

narrow oak
rapid stratus
#

hmm.

#

Do

ls /boot/efi/EFI/

narrow oak
leaden flume
#

kek

rapid stratus
#

ok, then do

sudo rm /boot/efi/EFI/ubuntu/*
sudo rmdir /boot/efi/EFI/ubuntu
ls /boot/efi/EFI/

leaden flume
narrow oak
#

root@mint:/# sudo rm /boot/efi/EFI/ubuntu/*
rm: cannot remove '/boot/efi/EFI/ubuntu/*': Not a directory

rapid stratus
leaden flume
#

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

rapid stratus
#

I don't see the problem?

leaden flume
#

is for an actual command?

narrow oak
rapid stratus
#

Hold on @narrow oak

leaden flume
#

I'm surprised boot repair didn't already fix it

rapid stratus
leaden flume
#

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

rapid stratus
#

Still, I'd like to reinstall grub manually here

leaden flume
#

yeah go ahead

rapid stratus
# narrow oak

@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

narrow oak
rapid stratus
#

hmm.... try

ls -l /boot/efi/EFI/

narrow oak
leaden flume
#

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

rapid stratus
#

Ok... @narrow oak then do

sudo rm /boot/efi/EFI/ubuntu
ls -l /boot/efi/EFI/

narrow oak
rapid stratus
#

@narrow oak do

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi

narrow oak
rapid stratus
#

and do

sudo update-grub

narrow oak
rapid stratus
#

ok, next do

exit
ls /sys/firmware/efi/

narrow oak
#

on two commands ?

rapid stratus
#

yes 2

narrow oak
rapid stratus
#

Ok.... next is

sudo umount -R /mnt

narrow oak
#

tell me this is positive haha

rapid stratus
#

If there are no errors after the last command, remove usb and restart

narrow oak
rapid stratus
#

yeah restart

narrow oak
#

it boots on windows

#

do you want me to check on the bios if I can start on grub ?

rapid stratus
#

Show us uefi settings, not the boot menu

leaden flume
#

yep. u gon' have to dig deep in there.

rapid stratus
# narrow oak

@leaden flume This bothers me, although usb booted in uefi mode

narrow oak
#

Ubuntu is back here. It wasn't here earlier

leaden flume
# narrow oak

this may be another way of saying NVRAM locked, same as what boot repair said.

rapid stratus
leaden flume
#

yup. move to top, then save/exit

narrow oak
#

Ok done.

rapid stratus
#

and see if that boots

narrow oak
#

hallelujah

rapid stratus
#

Finally

narrow oak
#

But why don't I have windows here ?(Anyway i don't wanna go there any more)

leaden flume
#

maybe windows is in legacy

#

in which case, you'd need to boot it straight from BIOS boot menu

#

or maybe not.

narrow oak
#

My session is back thanks a lot 🙂

leaden flume
#

it did have a Microsoft folder in EFI

#

just run sudo os-prober from here and see if it finds it

narrow oak
#

It says
/dev/sda2@/EFI/Microsoft/boot/bootmgfw.efi:Windows Boot Manager: Windows:efi

leaden flume
#

then do sudo update-grub and watch it carefully

#

it should add that new-found entry into the grub menu

narrow oak
#

yes it says found windows boot manager ...
adding boot menu entry for uefi firmware settings
Done

leaden flume
#

that's it then

rapid stratus
#

Alright, restart and see

narrow oak
rapid stratus
#

seems good

narrow oak
#

yes thanks a lot for the time