#Can boot into LMDE after boot-repair and can't boot into windows 10 after long time not boot into

256 messages · Page 1 of 1 (latest)

zinc sorrel
#

Pls help pls pls pls

distant locust
#

Could you please provide more information regarding your query?

zinc sorrel
# distant locust Could you please provide more information regarding your query?

Today when I restarted my laptop to boot into Windows(I hadn't booted into it for a long time) I couldn't so I tried boot-repair (via Ventoy USB with mint-lmde .iso in it) it didn't work so I tried using Windows PE iso in Ventoy USB to repair it then I can't boot into LMDE so I tried boot-repair again and get to this situation

cloud gale
#

So you can't boot into any OS-es?

#

@zinc sorrel

zinc sorrel
cloud gale
#

And you had lmde installed on the harddisk?

zinc sorrel
#

Yes

zinc sorrel
cloud gale
#

Do you have lmde iso on the ventoy disk?

zinc sorrel
#

Yes

zinc sorrel
cloud gale
#

Ok. Boot from the LMDE iso again and use the boot repair, with the recommended repair.

zinc sorrel
#

Ok

cloud gale
#

Add a picture with the error you are getting on the process.

zinc sorrel
#

Ok

cloud gale
#

Open the software sources app. Do you have internet access?

cloud gale
#

Ok. Open the software sources app.What does it list?

zinc sorrel
#

Ok i just press ok and it finish repairing

cloud gale
#

It finished repairing?

#

Now you see a grub menu with a list of OS to boot from?

zinc sorrel
#

Yes

cloud gale
#

Great. Reboot and see what it does.

zinc sorrel
cloud gale
#

Yes.

zinc sorrel
cloud gale
#

Hmm. I guess, boot again, and use the recommended repair again.

zinc sorrel
#

Ok

cloud gale
#

First open software sources app to make sure you have the main repo enabled, and then run the boot repair.

zinc sorrel
#

How to enable the main repo?

cloud gale
#

It is already enabled but it detects it as disabled.

#

Maybe just fire up a terminal and do sudo apt update.

zinc sorrel
#

Ok

#

Done

cloud gale
#

Then do the boot repair again.

zinc sorrel
cloud gale
#

Yes.

zinc sorrel
cloud gale
#

Hmm. That seems to be a bug in the boot repair....

#

`cd /etc/apt/sources<tab>(not sure the full path).

zinc sorrel
cloud gale
#

Ah.

zinc sorrel
#

So change one of the lmde in sda6?

#

How?

cloud gale
#

I will come back in 15 minutes.

zinc sorrel
#

Ok

cloud gale
#

I guess you need to mount /dev/sda6 and add/edit the sources.

zinc sorrel
#

Ol

#

Ok

cloud gale
#

Run cat /proc/partitions

zinc sorrel
cloud gale
#

Open the disks app then.

#

Or gparted.

#

Or run blkid in terminal.

zinc sorrel
#

I can say that how I organize my partition at the installation could be a mess

cloud gale
#
mount /dev/sda6 /mnt/a
nano /mnt/a/etc/apt/sources.list```
#

Let's how they look.

zinc sorrel
#

Ok

#

I think something went wrong...?

cloud gale
#

It should be correct.

#

Please share the output of blkid in terminal.

zinc sorrel
cloud gale
#

Share the output of df -h command please.

zinc sorrel
cloud gale
#

sudo nano /mnt/etc/apt/sources.list

#

Seems the boot repair already mounted the partition.

zinc sorrel
cloud gale
#

Seems to be active. Some strange error it seems. Loll.

#

Try boot repair again.

zinc sorrel
#

Press ok?

cloud gale
#

Press OK.

zinc sorrel
zinc sorrel
cloud gale
#

Ok. Now open gparted.

#

On /dev/sda disk we need to add the BIOS boot flag.

zinc sorrel
cloud gale
#

On the /dev/sda5 partition, right click, manage flags.

#

And check the bios boot flag.

zinc sorrel
#

The bios?

#

I didn't see it

cloud gale
#

Check both bls_boot and boot.

zinc sorrel
#

Ok

#

What now?

cloud gale
#

Try to restart and boot from your hard disk

#

Worked?

zinc sorrel
#

Sorry i go to the toilet for a moment

zinc sorrel
#

It didn't work?

zinc sorrel
#

I have to sleep now

cloud gale
#

Ok. So strange issue. I will look on it.

zinc sorrel
cloud gale
#

The only thing I think you can do is to chroot and to upgrade the grub config manually. I will give you some steps.

zinc sorrel
#

Oo

#

Ok

#

Or we manually boot it using the bash command line in grub?

cloud gale
#

Boot from the USB stick, open the terminal and switch to root:

mkdir /mnt
mount /dev/sda6 /mnt
mount /dev/sda5 /mnt/boot/efi
mount --rbind /dev /mnt/dev
mount --rbind /sys /mnt/sys
mount -t proc /proc /mnt/proc

chroot /mnt
grub-install /dev/sda
update-grub
exit
zinc sorrel
#

Ok

cloud gale
#

Then reboot and see if it it can reboot correctly.

cloud gale
zinc sorrel
#

Ok

#

Wait what?

cloud gale
#

Switch to root first

#

If it exist is better.

zinc sorrel
#

So just skip?

cloud gale
#

Yeah

zinc sorrel
cloud gale
#

Skip it. Mount the filesystems.

zinc sorrel
cloud gale
#

mkdir -p /mnt/boot/efi

#

then mount /dev/sda5 /mnt/boot/efi

zinc sorrel
#

Add /dev/sda?

#

@cloud gale Right?

cloud gale
#

No.

zinc sorrel
#

Oh my house lose electricity

cloud gale
#

ls -la /boot/grub

zinc sorrel
#

Wait I will do it later, without electricity my lap can not work

cloud gale
#

One question, have you played with grub customizer or something like this before this problem?

cloud gale
#

The font seems to be missing.

zinc sorrel
#

But those customizers didn't work at all

#

So I just leave it alone and it still works

cloud gale
#

Yeah, they break the system if you are not carefull with them.

zinc sorrel
#

Idk that

#

And I also wonder why I can't boot into Windows after a long time didn't use it

zinc sorrel
#

Do all of those again?

cloud gale
#

Yes.

zinc sorrel
#

Ok

cloud gale
#

Because grub update failed to regenerate the configs.

zinc sorrel
cloud gale
#

now cat /etc/default/grub

cloud gale
zinc sorrel
#

Did

zinc sorrel
cloud gale
#

We need to fix that font path and regenerate the config update-grub command which failed earlier

#

is there a directory /etc/default/grub.d or something?

zinc sorrel
#

Yes

cloud gale
#

cd /etc/default/grub.d

#

then cat each file in there.

zinc sorrel
cloud gale
#

Ok. Into 60_mint-theme.cfg, comment the line with GRUB_FONT, and add under it, GRUB_FONT="/boot/grub/unicode.pf2".

#

You can save a backup of it. cp 60_mint-theme.cfg 60_mint-theme.cfg.bk, and edit it after.

zinc sorrel
#

Like this?

cloud gale
#

Also can you cat /etc/grub/themes/linuxmint/theme.txt?

#

After you save the current file.

zinc sorrel
#

I think it's the wrong path…

cloud gale
#

ls /etc/grub/themes

zinc sorrel
cloud gale
#

cd /etc/default/grub.d.

#

Sorry.

zinc sorrel
#

?

cloud gale
zinc sorrel
#

Change it path?

cloud gale
# zinc sorrel

Leave the file with the theme uncommented, as it was before. Sorry, listed a wrong path.

cloud gale
zinc sorrel
#

No?

cloud gale
#

Is there or not?

zinc sorrel
#

Wait

#

I type cd and it gets me out of the dev/sda6

zinc sorrel
cloud gale
#

Ok, go back to /etc/default/grub.d and comment the GRUB_THEME line.

zinc sorrel
cloud gale
#

Seems good. Save and exit.

zinc sorrel
#

Did

cloud gale
#

Run update-grub now

zinc sorrel
#

Did

#

Ok it finish

#

Wait no LMDE?

cloud gale
#

Now exit, reboot and boot from your USB.

cloud gale
zinc sorrel
cloud gale
#

Can boot into windows?

zinc sorrel
#

Let me try

cloud gale
#

Can you show the menu?

zinc sorrel
#

Ok

cloud gale
#

Interesting. It seems it detected windows but not linux.

zinc sorrel
#

Ok after it tries to boot into Windows the screen literally goes blank

cloud gale
#

Is your uefi drive on other partition for mint?

zinc sorrel
cloud gale
#

Oh... not good.

zinc sorrel
cloud gale
#

Ok, but why were the themes and everything missing. Hmm...

#

Do you have a timeshift snapshot from before messing with the grub?

zinc sorrel
cloud gale
zinc sorrel
#

I don't really think I have one

cloud gale
#

I think at this point the only think left to do is to reinstall linux.

zinc sorrel
#

Wait use os-probe?

#

I think it can help?

cloud gale
#

OS prober is a feature that looks on the drives for other operating systems and adds them to the boot menu.

#

But it run when it added the windows menu entry.

zinc sorrel
#

I think I can use it and try to fix windows after

cloud gale
#

So that was not the problem. The problem seems to be that grub is messed so bad that it can't regenerate or detect menu entries.

#

My advice is to reinstall linux and see how it goes.

zinc sorrel
#

It did find?

cloud gale
#

You can save your data to an external drive or USB drive and then reinstall.

#

Hmm. So all of it is installed on /dev/sda6.

cloud gale
zinc sorrel
#

Like after 40 min

#

I have to eat dinner now

cloud gale
#

Ok. When you can then.

zinc sorrel
cloud gale
#

I can now.

zinc sorrel
#

Ok

zinc sorrel
#

Ok

zinc sorrel
cloud gale
zinc sorrel
#

Oh

#

Still not found lmde

cloud gale
#

Yeah. Just save your files and reinstall.

distant locust
#

I'm so sorry it has gone to this point.

zinc sorrel
distant locust
#

Yeah

cloud gale
#

Unfortunately yes.

zinc sorrel
#

Any chance of using grub-probe or os-prober?

distant locust
#

Please save your time buddy. You two have been on this for a day or so.

zinc sorrel
#

Ol

#

Ok

zinc sorrel
#

I dont really want to reinstall lmde

cloud gale
#

You can do something else. Boot from usb stick, chroot as you did earlier and run a sudo apt update && sudo apt upgrade.

#

Maybe it will fix itself.

zinc sorrel
#

Ok

#

But for now i will try to repair windows first