LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-16-2019, 01:12 PM   #1
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Rep: Reputation: 16
Ubuntu 17 reinstall grub issues


Can someone please help? Last time I installed Ub u ntu 17 a grub menu was generated that allowed me to boot to windows or ubuntu. But this time i get a grub> prompt. I don't understand what happened. This is my third install from live cd and the other two times this didn't happen.

https://i.ibb.co/RjKTJXV/20190316-140630.jpg
 
Old 03-16-2019, 01:14 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
probably the installation was not successful. But you need to give more information. What hardware is it, what did you try to install exactly and how.
 
Old 03-16-2019, 02:07 PM   #3
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Original Poster
Rep: Reputation: 16
I discovered that if I type "exit" twice I can get the grub menu. I see Ubuntu, Advanced, and two memtest options. I also discovered that if I change the boot sequence in the bios I can boot to windows 7 directly bypassing the grub bootloader. I just don't understand why grub is not generating the correct boot menu. I've started searching for sample grub files that have a windows 7 boot options and ubuntu boot options so I could manually edit /etc/default/grub but I can't seem to find any working examples.
 
Old 03-16-2019, 02:14 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
grub is a boot loader. probably there is no valid os configured, so grub cannot continue.
 
Old 03-16-2019, 02:59 PM   #5
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pan64 View Post
grub is a boot loader. probably there is no valid os configured, so grub cannot continue.
I believe we already stated as much. Do you have an example grub file that will give me windows 7 and Ubuntu menu options?
 
Old 03-16-2019, 04:41 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
As stated, we don't have enough info - from the liveCD go here and do as it says. Post the entire RESULTS.txt in [code] tags.
 
Old 03-16-2019, 05:39 PM   #7
xucaen
Member
 
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
As stated, we don't have enough info - from the liveCD go here and do as it says. Post the entire RESULTS.txt in [code] tags.
This is a PC 500gb hard drive AMD 64-bit CPU and running Windows and Linux on it for years. I just did a reinstall of Linux and now the boot menu is gone. It's really nothing special. Hopefully someone else running a PC with dual boot windiws and ubuntu will come in with their experience.
 
Old 03-16-2019, 06:16 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
We already have. That will be my last contribution.
 
Old 03-16-2019, 06:48 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
The Ubuntu 17.04/10 versions are no longer supported, use 16.04, 18.04/10. Did you do a Legacy install of Ubuntu? If you have windows 7, it probably doesn't use UEFI but Legacy so you would need to install Ubuntu Legacy. There are a number of possibilities that could be causing this problem and the info requested above would be helpful. Without that information, anyone responding will just be guessing.
 
Old 03-17-2019, 12:41 PM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by xucaen View Post
Hopefully someone else running a PC with dual boot windiws and ubuntu will come in with their experience.
This is not a good idea. I have an ubuntu, a debian a win7 and win10 and all of them are available using grub. So this is my experience and it is doable. And working for years.


What is different: you made a mistake, probably an installation had been corrupted/interrupted/failed. Therefore grub does not work. My experience will not help you anyway, because I could successfully install all of those OSs. But if you can tell us what did really happen probably someone will be able to tell you what's wrong and what should be fixed.
 
Old 03-17-2019, 01:08 PM   #11
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I would live boot and check out the partition where you installed Ubuntu. If everything is there I'd mount the partition to /mnt and bind some system resources as mentioned in the linked guide. chroot in and mount your efi partition(if your pc is efi) to /boot/efi/ then install grub. After that all that's needed is to run update-grub and reboot.

https://help.ubuntu.com/community/Gr...ion_Files_Copy

This has helped me fix unbootable systems(not mine ) many times already.

Hope this helps.
 
Old 03-17-2019, 01:15 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
at least your not getting grub-rescue>
at the grub prompt post the output of set
Code:
grub> set
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] Grub failure and problems with grub or ubuntu reinstall. bboy2448 Linux - General 9 05-12-2011 06:18 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration