Grub has made windows hdd unbootable

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.
Locked
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Grub has made windows hdd unbootable

Post by Ivanhoe75 »

2 HDDs both were bootable, uefi bios. Mint 19.1 and Windows. And grub made Windows unbootable, I can boot only from grub boot menue. Is it possible to make windows HDD bootable back without reformatting it?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Grub has made windows hdd unbootable

Post by AndyMH »

Have you tried going into BIOS and looking at your boot list - move the entry for 'windows boot loader' to the top of the list if you want win to boot first and give you no choice of win. Alternatively, on boot press whatever Fn key your PC requires to get the one-time boot list where you can select win. The Fn key varies by manufacturer, on my laptops it's F12, on my desktop F11.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

Windows boot loader is unaccessible in F11 boot menue. I can choose my HDD model but there is no booting, just grub resque command line
User avatar
kato181
Level 9
Level 9
Posts: 2577
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Grub has made windows hdd unbootable

Post by kato181 »

Boot into your live session usb and in terminal copy & paste the following command and post the results back here so we can see your specs.
inxi -Fxz
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Grub has made windows hdd unbootable

Post by AndyMH »

2 HDDs both were bootable, uefi bios.
but
Windows boot loader is unaccessible in F11 boot menue. I can choose my HDD model but there is no booting, just grub resque command line
If you are only seeing the drives and not entries for 'ubuntu' or 'windows boot loader' then that suggests you are booting in legacy mode.

What does the output of efibootmgr show?

Code: Select all

andy@T432 ~ $ efibootmgr
EFI variables are not supported on this system.
This is on a system booting in legacy mode.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

AndyMH wrote: Wed May 05, 2021 8:14 am
2 HDDs both were bootable, uefi bios.
but
Windows boot loader is unaccessible in F11 boot menue. I can choose my HDD model but there is no booting, just grub resque command line
If you are only seeing the drives and not entries for 'ubuntu' or 'windows boot loader' then that suggests you are booting in legacy mode.

What does the output of efibootmgr show?

Code: Select all

andy@T432 ~ $ efibootmgr
EFI variables are not supported on this system.
This is on a system booting in legacy mode.
I see ubuntu load string in menue but not windows boot loader

Code: Select all

linux_user@MS-7850:~$ inxi -Fxz
System:
  Host: MS-7850 Kernel: 4.15.0-20-generic x86_64 bits: 64 compiler: gcc 
  v: 7.3.0 Desktop: Cinnamon 4.0.10 Distro: Linux Mint 19.1 Tessa 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 2.8 date: 07/17/2014 
CPU:
  Topology: Dual Core model: Intel Core i3-4150 bits: 64 type: MT MCP 
  arch: Haswell rev: 3 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28000 
  Speed: 1032 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 978 2: 980 
  3: 982 4: 969 
Graphics:
  Device-1: NVIDIA GK104 [GeForce GTX 760] vendor: Gigabyte driver: nouveau 
  v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: nouveau 
  unloaded: fbdev,modesetting,vesa resolution: 1280x1024~60Hz 
  OpenGL: renderer: NVE4 v: 4.3 Mesa 19.0.2 direct render: Yes 
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio 
  vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Device-2: NVIDIA GK104 HDMI Audio vendor: Gigabyte driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k4.15.0-20-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: 2.3LK-NAPI port: d000 
  bus ID: 03:00.0 
  IF: enp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 2.27 TiB used: 9.24 GiB (0.4%) 
  ID-1: /dev/sda vendor: Seagate model: ST3500418AS size: 465.76 GiB 
  ID-2: /dev/sdb vendor: Western Digital model: WD20EFRX-68EUZN0 
  size: 1.82 TiB 
RAID:
  Hardware-1: VIA VT6421 IDE/SATA Controller driver: sata_via v: 2.6 
  bus ID: 05:00.0 
Partition:
  ID-1: / size: 191.25 GiB used: 9.23 GiB (4.8%) fs: ext4 dev: /dev/sdb2 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nouveau temp: 34 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 1380 
Info:
  Processes: 196 Uptime: 2m Memory: 7.72 GiB used: 588.1 MiB (7.4%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.5.0 Shell: bash v: 4.4.20 
Last edited by Ivanhoe75 on Sat May 08, 2021 11:43 am, edited 1 time in total.
User avatar
kato181
Level 9
Level 9
Posts: 2577
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Grub has made windows hdd unbootable

Post by kato181 »

Are you running your system in raid?
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

kato181 wrote: Thu May 06, 2021 3:37 am Are you running your system in raid?
No raid. It was 2 separately working Hdds One with win 7 64 bit and one with Mint 19.1. And Mint made win hdd unbootable.
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Grub has made windows hdd unbootable

Post by AndyMH »

What does the output of efibootmgr show?
As you haven't answered you're on your own.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
kato181
Level 9
Level 9
Posts: 2577
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Grub has made windows hdd unbootable

Post by kato181 »

Then try disconnecting your LM drive, and see if it boots into winwoes.
bendipa
Level 5
Level 5
Posts: 586
Joined: Sat Jan 04, 2020 8:02 pm
Location: NW London. UK

Re: Grub has made windows hdd unbootable

Post by bendipa »

To start with, need to see your partitions. Boot to Live Mint and run sudo parted -l and post up output.
Also what is output of:-test -d /sys/firmware/efi && echo efi || echo bios?
Computer: Dell Vostro 470
Systems: Linux Mint 21.3 Xfce (Una), Manjaro 23.1 Xfce (Vulcan), Windows 10 (22H2) Pro.
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

kato181 wrote: Thu May 06, 2021 9:33 am Then try disconnecting your LM drive, and see if it boots into winwoes.
It do not starts in this pc or in the other pc.
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

efimanager shows that windows boot manager is inactive. I made it active. And after that i see windows boot option in f11 boot menue, and i can boot from it. But i cant change boot sequense using efibootmanager.And i cant with editing bios. Bios editing makes windows boot inactive back.
I use ~$ efibootmgr -o 0001, 000E, {my bootlist}
where 0001 is win boot manager, but efibootmgr writes i write wrongly.
Ivanhoe75
Level 1
Level 1
Posts: 13
Joined: Thu Apr 11, 2019 1:26 pm

Re: Grub has made windows hdd unbootable

Post by Ivanhoe75 »

Code: Select all

sudo parted -l

Модель: ATA WDC WD20EFRX-68E (scsi)
Диск /dev/sdb: 2000GB
Размер сектора (логич./физич.): 512B/4096B
Таблица разделов: gpt
Флаги диска:

Номер Начало Конец Размер Файловая система Имя Флаги
1 1049kB 538MB 537MB fat32 EFI System Partition загрузочный, esp
2 538MB 210GB 210GB ext4
3 210GB 2000GB 1790GB ntfs msftdata

Cant switch bootorder, like efibootmgr refuses to put winbootmgr first
i1@MS-7850:~$ sudo efibootmgr -o 0, 1, F, 10, E, B, 2, 9
Malformed BootOrder order0,
^
i1@MS-7850:~$ sudo efibootmgr
BootCurrent: 0001
Timeout: 5 seconds
BootOrder: 0001,000F,0000,0010,000E,000B,0002,0009
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* UEFI: Built-in EFI Shell
Boot0009* UEFI: JetFlashTranscend 8GB 1.00
Boot000B* CD/DVD Drive
Boot000E* Hard Drive
Boot000F ubuntu
Boot0010 UEFI OS
I can forse it boot windows one time with -n option it boot windows.
Cant switch bootorder, like efibootmgr refuses to put winbootmgr first
Locked

Return to “Installation & Boot”