After installing Linux 19.1 Tessa grub doesn't show Windows 10

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

Hello,
I have a problem that requires urgent solving, since I need both a 64 bit Linux and windows 10 running asap since I have to log in to work from windows, but I also have some other work on 64bit Linux

As listed in the title, I had windows 10 education and needed a Linux to dual boot....I first screwed up by using my old mint 18.3 on 32 bits to install to go with windows, so I realised I need a new 64 bit CD, so i destroyed the Linux partitions from windows 10, and when I restarted I had a crashed GRUB command line...and from here a long list of trouble which is tormenting me and costing me money for 2 days. I have written a mint 21 vanessa CD on 64 bits, but when installing from the CD it could not write the bootloader on /dev/sda, as was the default option....I have tried reinstalling several times. Could only get back to windows when installing mint 18.3.

I have noticed some firmware errors when logging in and out of linux also.

I have planned to repair Windows with a windows 10 recovery disk, but I could not, I have tried all the options there, but none work, includeing the firmware and some commands from the internet, some worked and some not, which resulted in the computer now booting in the network mode, as nothing from the hard drive seems to work.

Before this crash I have tried installing mint 21. over windows and linux18.3 which were working but I couldn't because it tried to write the bootloader again and failed with fatal error. Before starting the install, mint21 only detecte mint 18 as an OS. I ended up with a new 500MB ESP boot partition which was visible as fat32 drive E: in windows.

So i installed mint 19.1 and it worked, but when the PC rebooted it was going directly in mint. During the installation proces it said no OS detected.Found some commands in other results, update-grub something and now I have 4 options, or related to mint 19.1 the menu when pressing FN + F12 on my laptop for BIOS option and boot order has been diminished.
I have an ubuntu efi in that list, which says it can not boot if i try it, probabily the failed grub from previous crashes.

The partitions and the files are accesible from Mint 19.1, just can't find the OS to boot it

found a utility os-prober that does not give any output.

Other outputs that may help:

Code: Select all

mihnea@mihnea-Lenovo-B50-80:~$ sudo tree /boot
/boot
├── abi-4.15.0-20-generic
├── config-4.15.0-20-generic
├── grub
│   ├── fonts
│   │   └── unicode.pf2
│   ├── gfxblacklist.txt
│   ├── grub.cfg
│   ├── grubenv
│   ├── i386-pc
│   │   ├── 915resolution.mod
│   │   ├── acpi.mod
│   │   ├── adler32.mod
│   │   ├── affs.mod
│   │   ├── afs.mod
│   │   ├── ahci.mod
│   │   ├── all_video.mod
│   │   ├── aout.mod
│   │   ├── archelp.mod
│   │   ├── ata.mod
│   │   ├── at_keyboard.mod
│   │   ├── backtrace.mod
│   │   ├── bfs.mod
│   │   ├── biosdisk.mod
│   │   ├── bitmap.mod
│   │   ├── bitmap_scale.mod
│   │   ├── blocklist.mod
│   │   ├── boot.img
│   │   ├── boot.mod
│   │   ├── bsd.mod
│   │   ├── bswap_test.mod
│   │   ├── btrfs.mod
│   │   ├── bufio.mod
│   │   ├── cat.mod
│   │   ├── cbfs.mod
│   │   ├── cbls.mod
│   │   ├── cbmemc.mod
│   │   ├── cbtable.mod
│   │   ├── cbtime.mod
│   │   ├── chain.mod
│   │   ├── cmdline_cat_test.mod
│   │   ├── cmosdump.mod
│   │   ├── cmostest.mod
│   │   ├── cmp.mod
│   │   ├── cmp_test.mod
│   │   ├── command.lst
│   │   ├── configfile.mod
│   │   ├── core.img
│   │   ├── cpio_be.mod
│   │   ├── cpio.mod
│   │   ├── cpuid.mod
│   │   ├── crc64.mod
│   │   ├── cryptodisk.mod
│   │   ├── crypto.lst
│   │   ├── crypto.mod
│   │   ├── cs5536.mod
│   │   ├── ctz_test.mod
│   │   ├── datehook.mod
│   │   ├── date.mod
│   │   ├── datetime.mod
│   │   ├── diskfilter.mod
│   │   ├── disk.mod
│   │   ├── div.mod
│   │   ├── div_test.mod
│   │   ├── dm_nv.mod
│   │   ├── drivemap.mod
│   │   ├── echo.mod
│   │   ├── efiemu32.o
│   │   ├── efiemu64.o
│   │   ├── efiemu.mod
│   │   ├── ehci.mod
│   │   ├── elf.mod
│   │   ├── eval.mod
│   │   ├── exfat.mod
│   │   ├── exfctest.mod
│   │   ├── ext2.mod
│   │   ├── extcmd.mod
│   │   ├── fat.mod
│   │   ├── file.mod
│   │   ├── font.mod
│   │   ├── freedos.mod
│   │   ├── fshelp.mod
│   │   ├── fs.lst
│   │   ├── functional_test.mod
│   │   ├── gcry_arcfour.mod
│   │   ├── gcry_blowfish.mod
│   │   ├── gcry_camellia.mod
│   │   ├── gcry_cast5.mod
│   │   ├── gcry_crc.mod
│   │   ├── gcry_des.mod
│   │   ├── gcry_dsa.mod
│   │   ├── gcry_idea.mod
│   │   ├── gcry_md4.mod
│   │   ├── gcry_md5.mod
│   │   ├── gcry_rfc2268.mod
│   │   ├── gcry_rijndael.mod
│   │   ├── gcry_rmd160.mod
│   │   ├── gcry_rsa.mod
│   │   ├── gcry_seed.mod
│   │   ├── gcry_serpent.mod
│   │   ├── gcry_sha1.mod
│   │   ├── gcry_sha256.mod
│   │   ├── gcry_sha512.mod
│   │   ├── gcry_tiger.mod
│   │   ├── gcry_twofish.mod
│   │   ├── gcry_whirlpool.mod
│   │   ├── gdb.mod
│   │   ├── geli.mod
│   │   ├── gettext.mod
│   │   ├── gfxmenu.mod
│   │   ├── gfxterm_background.mod
│   │   ├── gfxterm_menu.mod
│   │   ├── gfxterm.mod
│   │   ├── gptsync.mod
│   │   ├── gzio.mod
│   │   ├── halt.mod
│   │   ├── hashsum.mod
│   │   ├── hdparm.mod
│   │   ├── hello.mod
│   │   ├── help.mod
│   │   ├── hexdump.mod
│   │   ├── hfs.mod
│   │   ├── hfspluscomp.mod
│   │   ├── hfsplus.mod
│   │   ├── http.mod
│   │   ├── hwmatch.mod
│   │   ├── iorw.mod
│   │   ├── iso9660.mod
│   │   ├── jfs.mod
│   │   ├── jpeg.mod
│   │   ├── keylayouts.mod
│   │   ├── keystatus.mod
│   │   ├── ldm.mod
│   │   ├── legacycfg.mod
│   │   ├── legacy_password_test.mod
│   │   ├── linux16.mod
│   │   ├── linux.mod
│   │   ├── loadenv.mod
│   │   ├── loopback.mod
│   │   ├── lsacpi.mod
│   │   ├── lsapm.mod
│   │   ├── lsmmap.mod
│   │   ├── ls.mod
│   │   ├── lspci.mod
│   │   ├── luks.mod
│   │   ├── lvm.mod
│   │   ├── lzopio.mod
│   │   ├── macbless.mod
│   │   ├── macho.mod
│   │   ├── mda_text.mod
│   │   ├── mdraid09_be.mod
│   │   ├── mdraid09.mod
│   │   ├── mdraid1x.mod
│   │   ├── memdisk.mod
│   │   ├── memrw.mod
│   │   ├── minicmd.mod
│   │   ├── minix2_be.mod
│   │   ├── minix2.mod
│   │   ├── minix3_be.mod
│   │   ├── minix3.mod
│   │   ├── minix_be.mod
│   │   ├── minix.mod
│   │   ├── mmap.mod
│   │   ├── moddep.lst
│   │   ├── modinfo.sh
│   │   ├── morse.mod
│   │   ├── mpi.mod
│   │   ├── msdospart.mod
│   │   ├── mul_test.mod
│   │   ├── multiboot2.mod
│   │   ├── multiboot.mod
│   │   ├── nativedisk.mod
│   │   ├── net.mod
│   │   ├── newc.mod
│   │   ├── nilfs2.mod
│   │   ├── normal.mod
│   │   ├── ntfscomp.mod
│   │   ├── ntfs.mod
│   │   ├── ntldr.mod
│   │   ├── odc.mod
│   │   ├── offsetio.mod
│   │   ├── ohci.mod
│   │   ├── part_acorn.mod
│   │   ├── part_amiga.mod
│   │   ├── part_apple.mod
│   │   ├── part_bsd.mod
│   │   ├── part_dfly.mod
│   │   ├── part_dvh.mod
│   │   ├── part_gpt.mod
│   │   ├── partmap.lst
│   │   ├── part_msdos.mod
│   │   ├── part_plan.mod
│   │   ├── part_sun.mod
│   │   ├── part_sunpc.mod
│   │   ├── parttool.lst
│   │   ├── parttool.mod
│   │   ├── password.mod
│   │   ├── password_pbkdf2.mod
│   │   ├── pata.mod
│   │   ├── pbkdf2.mod
│   │   ├── pbkdf2_test.mod
│   │   ├── pcidump.mod
│   │   ├── pci.mod
│   │   ├── plan9.mod
│   │   ├── play.mod
│   │   ├── png.mod
│   │   ├── priority_queue.mod
│   │   ├── probe.mod
│   │   ├── procfs.mod
│   │   ├── progress.mod
│   │   ├── pxechain.mod
│   │   ├── pxe.mod
│   │   ├── raid5rec.mod
│   │   ├── raid6rec.mod
│   │   ├── random.mod
│   │   ├── read.mod
│   │   ├── reboot.mod
│   │   ├── regexp.mod
│   │   ├── reiserfs.mod
│   │   ├── relocator.mod
│   │   ├── romfs.mod
│   │   ├── scsi.mod
│   │   ├── search_fs_file.mod
│   │   ├── search_fs_uuid.mod
│   │   ├── search_label.mod
│   │   ├── search.mod
│   │   ├── sendkey.mod
│   │   ├── serial.mod
│   │   ├── setjmp.mod
│   │   ├── setjmp_test.mod
│   │   ├── setpci.mod
│   │   ├── sfs.mod
│   │   ├── shift_test.mod
│   │   ├── signature_test.mod
│   │   ├── sleep.mod
│   │   ├── sleep_test.mod
│   │   ├── spkmodem.mod
│   │   ├── squash4.mod
│   │   ├── syslinuxcfg.mod
│   │   ├── tar.mod
│   │   ├── terminal.lst
│   │   ├── terminal.mod
│   │   ├── terminfo.mod
│   │   ├── test_blockarg.mod
│   │   ├── testload.mod
│   │   ├── test.mod
│   │   ├── testspeed.mod
│   │   ├── tftp.mod
│   │   ├── tga.mod
│   │   ├── time.mod
│   │   ├── trig.mod
│   │   ├── tr.mod
│   │   ├── truecrypt.mod
│   │   ├── true.mod
│   │   ├── udf.mod
│   │   ├── ufs1_be.mod
│   │   ├── ufs1.mod
│   │   ├── ufs2.mod
│   │   ├── uhci.mod
│   │   ├── usb_keyboard.mod
│   │   ├── usb.mod
│   │   ├── usbms.mod
│   │   ├── usbserial_common.mod
│   │   ├── usbserial_ftdi.mod
│   │   ├── usbserial_pl2303.mod
│   │   ├── usbserial_usbdebug.mod
│   │   ├── usbtest.mod
│   │   ├── vbe.mod
│   │   ├── verify.mod
│   │   ├── vga.mod
│   │   ├── vga_text.mod
│   │   ├── video_bochs.mod
│   │   ├── video_cirrus.mod
│   │   ├── video_colors.mod
│   │   ├── video_fb.mod
│   │   ├── videoinfo.mod
│   │   ├── video.lst
│   │   ├── video.mod
│   │   ├── videotest_checksum.mod
│   │   ├── videotest.mod
│   │   ├── xfs.mod
│   │   ├── xnu.mod
│   │   ├── xnu_uuid.mod
│   │   ├── xnu_uuid_test.mod
│   │   ├── xzio.mod
│   │   ├── zfscrypt.mod
│   │   ├── zfsinfo.mod
│   │   └── zfs.mod
│   ├── locale
│   │   ├── en_AU.mo
│   │   ├── en_CA.mo
│   │   ├── en_GB.mo
│   │   └── en@quot.mo
│   └── unicode.pf2
├── initrd.img-4.15.0-20-generic
├── memtest86+.bin
├── memtest86+.elf
├── memtest86+_multiboot.bin
├── retpoline-4.15.0-20-generic
├── System.map-4.15.0-20-generic
└── vmlinuz-4.15.0-20-generic

Code: Select all

mihnea@mihnea-Lenovo-B50-80:~$ sudo fdisk -l
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x05808183

Device     Boot      Start        End   Sectors   Size Id Type
/dev/sda1             2048    1026047   1024000   500M  7 HPFS/NTFS/exFAT
/dev/sda2          1026048  465707173 464681126 221,6G  7 HPFS/NTFS/exFAT
/dev/sda3        465709056  466968575   1259520   615M 27 Hidden NTFS WinRE
/dev/sda4       1701335038 1953523711 252188674 120,3G  5 Extended
/dev/sda5  *    1701335040 1702385663   1050624   513M ef EFI (FAT-12/16/32)
/dev/sda6       1793525760 1953523711 159997952  76,3G 83 Linux
/dev/sda7       1785511936 1793513471   8001536   3,8G 82 Linux swap / Solaris
/dev/sda8       1745496064 1785495551  39999488  19,1G 83 Linux

Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.

Code: Select all

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk 
├─sda1   8:1    0   500M  0 part 
├─sda2   8:2    0 221,6G  0 part 
├─sda3   8:3    0   615M  0 part 
├─sda4   8:4    0     1K  0 part 
├─sda5   8:5    0   513M  0 part 
├─sda6   8:6    0  76,3G  0 part /home
├─sda7   8:7    0   3,8G  0 part [SWAP]
└─sda8   8:8    0  19,1G  0 part /
sr0     11:0    1     4G  0 rom  /media/mihnea/ESD-ISO

sda2 is the main windows partition C:, sda1 system reserved and sda3 windows recovery.
sda5 is what i got after puting, mint21 at some point over windows with mint 18.3 the E: mentioned earlier, would it be better if i just delete it?

Image
https://ibb.co/F5JxtVT
AFAIK I have both system installed under Legacy, at least the Mint 19.1

After running the following:

Code: Select all

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
I have this log, posted on pastebin:
http://sprunge.us/I7sULj

didn't see firmware issues when loading, but it still doesn't find windows partition.

will installing a new windows 10 over the old one (so i can keep my user and data) help fix the problem? Window repari with all the other optons didn't work.
Last edited by LockBot on Wed Sep 27, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

It looks like this problem, but I´m not sure about Flexnet warning on BR report.
warning: Sector 32 is already in use by the program `FlexNet'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
That EFI partition or should I say that ubuntu (LM UEFI loader) option on boot menu most probably was left by LM 21 installation. You will be able to remove esp,boot flags on that sda5 partition with Gparted from current Mint installation.
Run Gparted (Menu>Administration>Gparted), select sda5 partition and/or right-click on it>Manage flags and uncheck esp (it would automatically uncheck boot and check msftdata option).
Also you can remove its content as follows but if you want to format/remove that partition you will need to do it from Linux Mint live session.

Code: Select all

sudo mount /sda5 /mnt
sudo rm -R /mnt/EFI
sudo umount mnt
Arrieritos semos y en el camino nos encontraremos.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by AndyMH »

I am not clear from your post whether you can boot mint on your computer? If you can what version?

Looks like win was installed in legacy mode. When you installed LM18 in legacy mode it will have overwritten the win bootloader. Boot into mint or if that is not possible, boot your mint install stick and run efibootmgr, post the output. You say you are booting legacy but you would not see an "ubuntu" entry in BIOS if that was the case. Is the BIOS boot mode set to both[legacy first] or both[uefi first]?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

Notice OP has run Boot Repair from installed Mint (LM 19.1) and as per report it is clear it was installed (no EFI partion is mounted, nor EFI line on fstab) and booting on BIOS legacy mode, Boot mode at BIOS is set to UEFI+CSM/Legacy as per image (so both).
Image
That Linux Mint UEFI (ubuntu) boot option on computer boot menu would be left by pevious Mint 21 installation as I said 'çause UUID on /EFI/efi/ubuntu/grub.cfg is not current sda8 partition UUID so it doesn't work.
===================== sda5/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 09a6b78a-0fa4-46b5-b03f-8b9bd1c59eb6 root hd0,msdos8
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
Last edited by Jo-con-Ël on Tue Mar 28, 2023 2:15 pm, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by AndyMH »

A lenovo laptop of this vintage will have the boot options legacy only, uefi only, both[legacy first] and both[uefi first], there is no CSM switch. I suspect both[legacy first], but would like confirmation.

Looking at the output from boot repair, it should have worked and there should be a grub menu on boot, but I note that update-grub did not find win?

Also noted:

Code: Select all

grub-install: warning: Sector 32 is already in use by the program `FlexNet'; avoiding it.  This software may cause boot or other problems in future.  Please ask its authors not to store data in the boot track.
I wonder if that is causing a problem?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

@AndyMH
I don't know if Windows 10 Education edition needs that FlexNet (see next bootmgr Windows loader is stranger for me) to boot, but BR tried to remove that mess from 32 disk sector, when running following codes before reinstalling grub.
dd if=/dev/sda of=/var/log/boot-repair/20230327_214912/sda/before_wiping.img bs=512 count=2047 seek=1
WIPE sda : 2047 sectors * 512 bytes
dd if=/dev/zero of=/dev/sda bs=512 count=2047 seek=1

grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
It is clear BR did not solve the problem on detecting/including menu entry for Windows. BootInfo summary after repairing match what OP said about os-prober is not working as expected.
====================== sda8/boot/grub/grub.cfg (filtered) ======================

Ubuntu 1e812e97-d8b4-4fa1-a93d-7478006e4568
Ubuntu, with Linux 4.15.0-20-generic 1e812e97-d8b4-4fa1-a93d-7478006e4568
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
Any way I don't like that result when running update-grub by BR
update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 63 (pipe:[103315]) leaked on lvs invocation. Parent PID 26576: /bin/sh

Unhide GRUB boot menu in sda8/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
It looks like BR is running a different GRUB version (2.02-2ubuntu8.9) than current one (2.02-2ubuntu8.25) on Ubuntu bionic (LM 19.1) edition. Maybe OP needs to completely remove and reinstall GRUB and it is worth doing so from Linux Mint live session following pbear's tutorial (Purge-and-Reinstall in chroot for BIOS) better than from installed Mint session or with BR.
@Mihnea
In any case, first I would do as indicated on my first post:
1)Create a custom menu entry for Windows as explained on proposed link to be sure Windows boot is not damage.
Editing /etc/grub.d/40_custom

Code: Select all

xed admin:///etc/grub.d/40_custom
and adding
menuentry "Windows 10" --class windows --class os {
insmod ntfs
search --no-floppy --set=root --fs-uuid 2A72AC1772ABE633
ntldr /bootmgr
}
After saving changes run

Code: Select all

sudo update-grub
2)Remove ubuntu UEFI option (Mint UEFI loader) and empty EFI partition as it is not needed.
Jo-con-Ël wrote: Tue Mar 28, 2023 11:26 am ...remove esp,boot flags on that sda5 partition with Gparted from current Mint installation.
Run Gparted (Menu>Administration>Gparted), select sda5 partition and/or right-click on it>Manage flags and uncheck esp (it would automatically uncheck boot and check msftdata option).
...remove its content as follows...

Code: Select all

sudo mount /sda5 /mnt
sudo rm -R /mnt/EFI
sudo umount mnt
You did not install any updates available on Mint 19.1. I do recommended to it as soon as possible. As LM 19.X EOL is on next month you can try upgrading to LM 19.3 and then to LM 20 (EOL on April 2025).

Once you know Windows boot is not damage and you can boot Windows from custom menu entry, IMO it is worth just installing LM 20.X or LM 21.X from scratch. There will no problem booting Linux Mint live on BIOS mode if you have remove EFI esp,boot flags and clean up that partition before. Then choose Something else option to remove and recreate Mint's partitions. In case of LM 21.X just do no take into account warning about EFI partition is needed.
Last edited by Jo-con-Ël on Tue Apr 04, 2023 11:29 am, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

Jo-con-Ël wrote: Tue Mar 28, 2023 11:26 am

Also you can remove its content as follows but if you want to format/remove that partition you will need to do it from Linux Mint live session.

Code: Select all

sudo mount /sda5 /mnt
sudo rm -R /mnt/EFI
sudo umount mnt
I get this output:

Code: Select all

mihnea@mihnea-Lenovo-B50-80:~$ sudo mount /sda5/mnt
[sudo] password for mihnea:   
mount: /sda5/mnt: can't find in /etc/fstab.
I think you missed an argument for the mount command, somehting like /dev/sda5 or?
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

AndyMH wrote: Tue Mar 28, 2023 1:30 pm I am not clear from your post whether you can boot mint on your computer? If you can what version?

Looks like win was installed in legacy mode. When you installed LM18 in legacy mode it will have overwritten the win bootloader. Boot into mint or if that is not possible, boot your mint install stick and run efibootmgr, post the output. You say you are booting legacy but you would not see an "ubuntu" entry in BIOS if that was the case. Is the BIOS boot mode set to both[legacy first] or both[uefi first]?
I am currently on a perfectly working Mint 19.1 Tessa, but can't boot into windows.

I gave the commands, but from linux, I installed from DVD, not USB:

Code: Select all

mihnea@mihnea-Lenovo-B50-80:~$ efibootmgr
EFI variables are not supported on this system.
mihnea@mihnea-Lenovo-B50-80:~$ sudo efibootmgr
[sudo] password for mihnea:   
EFI variables are not supported on this system.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by AndyMH »

You are booting legacy mode. That means that mint has overwritten the windows bootloader on your drive.

In an earlier post, Jo-con-Ël asked you to boot into mint and sudo update-grub. You did not report back on this. Running this command should find win and next time you boot give you a grub menu with a choice of mint or win.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

AndyMH wrote: Wed Mar 29, 2023 9:50 am You are booting legacy mode. That means that mint has overwritten the windows bootloader on your drive.

In an earlier post, Jo-con-Ël asked you to boot into mint and sudo update-grub. You did not report back on this. Running this command should find win and next time you boot give you a grub menu with a choice of mint or win.
Ran this command multiple time with configuration files from the net, it does not find windows, I have posted the output. The configuration file poste by an answer above yielded some results as I got a crashed blue screen windows boot. will post a picture.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

@Jo-con-Ël

Ok thank you for the configuration file, your worked better than what I found on the net.
I got this fromt he windows 10 boot entry:
Image
https://ibb.co/Fg59N0T

But the windows DVD can't repair windows, said repair failed, as it did before.

I don't think I have to bother reinstalling GRUB clean or with the other EFI partition, think the issue is with windows bootloader, I ruined it with when I ran commands from the repair disk I think. Is there a way to fix windows? should I install a new copy of windows over the old one?
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

Mihnea wrote: Wed Mar 29, 2023 9:39 amI get this output:

Code: Select all

mihnea@mihnea-Lenovo-B50-80:~$ sudo mount /sda5/mnt
[sudo] password for mihnea:   
mount: /sda5/mnt: can't find in /etc/fstab.
I think you missed an argument for the mount command, somehting like /dev/sda5 or?
You forgot to write an empty space between /dev/sda5 and /mnt. Please do not write codes just copy and paste on terminal.

About Windows boot repair (after removing flags and cleaning EFI partition), you can find several ways googling. Try as indicated here first from Command prompt and then from Windows installation media.

Notice repairing Windows boot will destroy Linux Mint loader(grub) on MBR so you will need to reinstall grub following pbear´s instructions as per link on previous post.
Arrieritos semos y en el camino nos encontraremos.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

Ok, to give you an update on what I have done:

The commands in the linux live Cd terminal did not work
Image
https://ibb.co/K0MBKGk

And of course once rebooting windows it still does not work. But the Windows ocmmands were enoguh to screw GRUB again, which i again could not fix. So i reinstalled linux on the former root partition, formatting it.
I have created a new linux user with the same name as the old, I can access my former /home partition as I can the windows partition, they are shown as other partitions. Can I recover the former linux user and remount the former home partition? I think I could have selected a mount point for it without formatting it when I reinstalled linux.

And can I do the same for windows if I reinstall it over the old one? Seems like reinstalling both windows and again linux are the only options in sight for me.

The former partition 5 left over was destroyed from live Cd when i reinstalled linux.

UPDATE: tried to reinstall windows, but it does not recognize the former window partition and says I must format it, because on EFI systems windows can only be installed on GPT partitions. Selected windows 10 education from the list.
Last edited by Mihnea on Tue Apr 04, 2023 8:44 am, edited 2 times in total.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by AndyMH »

I can access my former /home partition as I can the windows partition, they are shown as other partitions.
You need to re-install with the "something else" option, the next screen shows your drives and partitions, click on your existing / partition, click change, tell it to use it for / and reformat it ext4. Click on your existing /home partition, click change and tell it to use it for /home and NOT reformat it.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

As Fixboot failed I would had tried the last two options (ScanOs and RebuildBcd) if you didn´t, before trying to reinstall Winodws.

Also it looks like you were booting Windows installation media on UEFI mode...Correct option on computer's boot menu would be the BIOS legacy one (SATA ODD).
Arrieritos semos y en el camino nos encontraremos.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

I am pretty sure I tried everything on windows command line, didn't work but ruined the MBR.

You were right bout the EFI booting, I had no clue I can control it, especially since I only have a few options when press F12 before the bootloader. Even today I tried again to reinstall linux so I can fix the /home mounting, and I got a fatal error that it can't write grub on sda1 again, and again a long list of EFI warnings and errors. Finally reinstalled with the fatal error and was back to a grub> command line when booting, hardly repaired grub with boot-repair after many error, installed a legacy version of GRUB, but i think it does not refer to legacy BIOS booting.

Now when I turn on the PC i have 3 ubuntu options, but at least linux is running.
So if I boot from live or repair CDs I should always select the legacy boot. Because my DVDs are recognized as UEFI....

The problem is windows didn't allow me anything but a clean install and I would have to lose everything on the windows partition, which was licensed install, with office, and some licensed software on it, and alot of non licensed stuff that will take time to recover...
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

UPDATE:
@Jo-con-Ël
You are a genius, selected what you told me and the commands from the post worked, got accessed denied, but with the other 2 I got my windows back, after typing exit in the CLI i clicked continue to windows 10 and here I am, had a good feeling since i started with bootrec /ScanOs and it found C:\Windows

I am reunited with my windows and my programs and games and teamviewer with sound :D . And it moves 20 times slower than linux as it did....

Now it boots straight into windows, I must struggle after a few days to recover my linux, but for now I need a break, every time i tried to fix it I end up a few hours with nothing :D
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

Jo-con-Ël wrote: Wed Mar 29, 2023 12:25 pm Notice repairing Windows boot will destroy Linux Mint loader(grub) on MBR so you will need to reinstall grub following pbear´s instructions as per link on previous post.
Arrieritos semos y en el camino nos encontraremos.
Mihnea
Level 1
Level 1
Posts: 23
Joined: Mon Mar 27, 2023 1:31 pm

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Mihnea »

And fter following the instructions I am back on linux to write a router dataplane, but without windows again :)
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3598
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: After installing Linux 19.1 Tessa grub doesn't show Windows 10

Post by Jo-con-Ël »

Time to run sudo update-grub on Mint session to see if Windows is detected.

If Window is not detected or is not included on grub menu (see cat /boot/grub/grub.cfg | grep Windows ) do as indicated on previous post to create a custom Windows entry. You will need to replace UUID with current first Windows partition (the one with /bootrngr folder) UUID as per ls blkid -f.
Jo-con-Ël wrote: Wed Mar 29, 2023 3:38 am
Editing /etc/grub.d/40_custom

Code: Select all

xed admin:///etc/grub.d/40_custom
and adding
menuentry "Windows 10" --class windows --class os {
insmod ntfs
search --no-floppy --set=root --fs-uuid XXXXXXXX
ntldr /bootmgr
}
After saving changes run

Code: Select all

sudo update-grub
Arrieritos semos y en el camino nos encontraremos.
Locked

Return to “Installation & Boot”