#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)
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
Yes from when I tried boot-repair from ventoy mint iso
And you had lmde installed on the harddisk?
Yes
I had it dual booted with windows 10(lite version)
Do you have lmde iso on the ventoy disk?
Yes
That how i use boot-repair
Ok. Boot from the LMDE iso again and use the boot repair, with the recommended repair.
Ok
Add a picture with the error you are getting on the process.
This error?
Open the software sources app. Do you have internet access?
Yes, i do
Ok. Open the software sources app.What does it list?
Isn't this software sources of the live boot?
Ok i just press ok and it finish repairing
Great. Reboot and see what it does.
Reboot to see it?
Yes.
Hmm. I guess, boot again, and use the recommended repair again.
Ok
First open software sources app to make sure you have the main repo enabled, and then run the boot repair.
The sources of the live session?
How to enable the main repo?
Yes.
It is already enabled but it detects it as disabled.
Maybe just fire up a terminal and do sudo apt update.
Then do the boot repair again.
Recommended repair?
Yes.
Ok and continue?
Hmm. That seems to be a bug in the boot repair....
`cd /etc/apt/sources<tab>(not sure the full path).
Wait it said the software sources of LMDE(sda6)?
Ah.
I will come back in 15 minutes.
Ok
I guess you need to mount /dev/sda6 and add/edit the sources.
Run cat /proc/partitions
Maybe change something?
Here
Share the output of df -h command please.
sudo nano /mnt/etc/apt/sources.list
Seems the boot repair already mounted the partition.
Press ok?
Press OK.
An error?
How?
Check both bls_boot and boot.
Sorry i go to the toilet for a moment
Maybe we continue to fix it at 14:50~16:00 utc+7 tomorrow
I have to sleep now
Ok. So strange issue. I will look on it.
I have free time now, can you continue?
The only thing I think you can do is to chroot and to upgrade the grub config manually. I will give you some steps.
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
Ok
Then reboot and see if it it can reboot correctly.
From the live usb.
So just skip?
Yeah
Skip it. Mount the filesystems.
No.
Oh my house lose electricity
ls -la /boot/grub
Wait I will do it later, without electricity my lap can not work
One question, have you played with grub customizer or something like this before this problem?
Yes, I did
The font seems to be missing.
But those customizers didn't work at all
So I just leave it alone and it still works
Yeah, they break the system if you are not carefull with them.
Idk that
And I also wonder why I can't boot into Windows after a long time didn't use it
The electricity come back
Do all of those again?
Yes.
Ok
Because grub update failed to regenerate the configs.
So what I need to do?
now cat /etc/default/grub
We need to finish regenerating the config.
How?
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?
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.
Like this?
yes
Also can you cat /etc/grub/themes/linuxmint/theme.txt?
After you save the current file.
ls /etc/grub/themes
Get back to this file and comment GRUB_THEME line.
cd /etc/default/grub.d.
Sorry.
It should be /boot/grub/themes/linuxmint/theme.txt
Change it path?
Leave the file with the theme uncommented, as it was before. Sorry, listed a wrong path.
can you cat it?
No?
Is there or not?
I think it's not there
Ok, go back to /etc/default/grub.d and comment the GRUB_THEME line.
Ok
Seems good. Save and exit.
Did
Run update-grub now
Now exit, reboot and boot from your USB.
What?
I don't see found LMDE
Can boot into windows?
Let me try
Can you show the menu?
Interesting. It seems it detected windows but not linux.
Ok after it tries to boot into Windows the screen literally goes blank
Is your uefi drive on other partition for mint?
Oh... not good.
my lap uses legacy bios?
Ok, but why were the themes and everything missing. Hmm...
Do you have a timeshift snapshot from before messing with the grub?
Idk what is timeshift
Linux Mint - Community
I don't really think I have one
I think at this point the only think left to do is to reinstall linux.
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.
I think I can use it and try to fix windows after
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.
How? I don't really want to lose all my data
It did find?
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.
Do this again but without mount /dev/sda5 /mnt/boot/efi.
Ok. When you can then.
Can you continue now?
I can now.
Ok
It run into an error
Do not mount /dev/sda5. Continue without.
Yeah. Just save your files and reinstall.
I'm so sorry it has gone to this point.
Have to reinstall?
Yeah
Unfortunately yes.
Any chance of using grub-probe or os-prober?
Please save your time buddy. You two have been on this for a day or so.
Maybe i will try to completely remove grub and uninstall it later
I dont really want to reinstall lmde