LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   restoring grub for dual boot with windows (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/restoring-grub-for-dual-boot-with-windows-4175648938/)

Ai_Programmer 02-23-2019 10:33 PM

restoring grub for dual boot with windows
 
I had this problem with 3 different distros each one says install complete & then won't boot from linux. Current & final favourite is debian. I followed directions from this site while using a live ubuntu:

boot-repair freezes along with the rest my system & my mouse on the last step so I generated this report this time

let me know if there is any other information that you need.

colorpurple21859 02-24-2019 03:13 PM

hit one of the fkeys or esc key. to get into the bios when you first turn on you computer to change the boot order to your linux installation.

syg00 02-24-2019 05:14 PM

No chance of that booting grub - regardless of what the message(s) said, grub is not installed properly. If the rest of the system is ok, you should be able to boot into the on-disk system and re-install grub from there. That way you'll get to see any errors along the way, rather than them getting lost during install.
Here is a link I just posted in another thread - if you don't get the option to boot into the on-disk system from the USB boot menu, you'll need to chroot (see link above for a link). Then you can do the re-install from a root terminal.

Ai_Programmer 02-25-2019 07:28 AM

Syg00 I'm trying to follow your directions with chroot but I get stuck at step 9 & 10.
it says folder doesn't exist

colorpurple21859 02-25-2019 08:14 AM

what was the commands that you issued for for steps 7 & 8 and what was the ouput of 'sudo blkid'

Ai_Programmer 02-25-2019 11:44 AM

Where it started to go wrong
 
1 Attachment(s)
I took a picture before I left for workAttachment 29922
This is the best that I can do right now. I have to get back to work

Thank you
Nick

colorpurple21859 02-25-2019 12:00 PM

do this first:
Code:

sudo mount /dev/sdb4 /mnt
sudo mount /dev/sdb1 /mnt/boot/efi

then do the 'for i in /dev..' command

Ai_Programmer 02-25-2019 06:43 PM

1 Attachment(s)
It worked until the last step again but this time I trust you. How long should I wait for my system to respond again?

colorpurple21859 02-25-2019 06:54 PM

it shouldn't take long a few minutes at the most.
after the "chroot /mnt" what is the output of
Code:

lsblk

Ai_Programmer 02-25-2019 10:44 PM

It's still stuck. Should I reboot & try the same thing again?

Brains 02-25-2019 11:00 PM

Quote:

Originally Posted by Ai_Programmer (Post 5966897)
It worked until the last step again but this time I trust you. How long should I wait for my system to respond again?

Your attachment shows you did not do exactly what colorpurple21859 told you to do, you mounted /dev/sdb1 (EFI partition) to /mnt.
Try again and mount /dev/sdb4 to /mnt, then mount /dev/sdb1 to /mnt/boot/efi
EDIT: Reboot and try again

Brains 02-25-2019 11:19 PM

FWIW:
Everything looks proper in the bootinfo script and Debian should boot just fine, you need to figure out which F key gives a boot menu. Most computers use F10 or F11. Google the make and model of computer with keywords: "Make model boot menu hotkey" to figure out which F key brings up the boot menu, you usually hit that key when the splash appears when first booting up the computer. If you know how to get into settings (BIOS), you may be able to figure it out in the "Boot" tab.

yancek 02-26-2019 06:23 AM

Quote:

Everything looks proper in the bootinfo script and Debian should boot just fine,
I would have to agree with the post above by syg00. Grub not installed on the internal drive, only on the flash drive used to install. Has the proper efi files, at least appears to but no grub files on the system partition. I notice in the bootinfoscript output that this is an Acer and from the info in the initial post which indicates a failure to install another OS, have you tried setting a supervisor password in the BIOS and enabling trust to install another OS other than windows? Check your Acer manual.

Ai_Programmer 02-26-2019 08:07 AM

2 Attachment(s)
Yes I put a supervisor password this is how I was able to install Linux which said completed successfully. This is running from a live Ubuntu, should I use debian instead?
I already found the parameters for bcdedit so if someone could tell me how to get the uuid for sdb1 I could at least setup the windows bootloader

colorpurple21859 02-26-2019 09:35 AM

If the grub bootloader was installed correctly you would have a ubuntu and/or Debian bootloader on the boot priority screen.


All times are GMT -5. The time now is 03:52 PM.