LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2020, 06:33 PM   #1
lmohammeed
Member
 
Registered: Sep 2013
Posts: 61

Rep: Reputation: Disabled
Can't recover grub rescue error on ubuntu 18.04


Dear Linux community,

I intended to restore my grub using live usb stick. I wanted to do this because I couldn't fix the grub rescue error after following so many solutions to the problem. Now I have only blinking cursor on my screen.

I am using HP Pavillion m6 Notebook PC with ubuntu 18.04. I also have ubuntu 18.04 on the live usb. My question is that there is no option for boot repair when I boot the system from the live usb. I can see only option for installation. If I continue with the installation is there any chances of getting my files back? If that is not possible please what is the way out.

Thanks a lot for your time.

Lawal
 
Old 07-05-2020, 10:40 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
when you boot and get to the first screen can you get to a second console with ctrl-alt-f2 or one of the other f-keys?
and log in, I think the username will be ubiquity, live ubunutu, something like that and no password.

Last edited by colorpurple21859; 07-05-2020 at 10:44 PM.
 
1 members found this post helpful.
Old 07-06-2020, 03:25 AM   #3
lmohammeed
Member
 
Registered: Sep 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thank so much.

Yes, I can get to the second console with ctrl+alt+f4. However, it requests for a password. So, I end up with Login incorrect.
 
Old 07-06-2020, 05:26 AM   #4
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
First, if you think you can correct the problem if you can log in, then log in in single user mode. For full instructions:
Code:
https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/recover-your-system-with-single-user-mode-in-ubuntu-ubuntu-11-10.html
Basically at grub boot menu select 'recovery', then 'remount', then 'drop to root'. That leaves you with the system running as root user (DANGEROUS) but allows you to make changes if you know what needs changing.

If that isn't feasible you can try reinstalling grub. There are a number of sites with instructions, some easier than others, but the instructions I use are
Code:
1. Boot an installation live CD/DVD/USB, preferably the one used to install your primary Linux system
(Ubuntu, Mint, . . . .).
2. Using gparted, parted, fdisk or whatever works, identify the disk partition containing the /boot of the
system installed from the CD, or at least the system you want to be primary/default. This is necessary
because the information for booting is still there, the boot loader simply can’t find it or is using a
screwed up one. If gparted is not available and you want it you may be able to install it for the moment although you will lose it as soon as you reboot.
3. Mount that partition somewhere in the live system, for example /mnt.
4. sudo grub-install --root-directory=/mnt/ /dev/sdX
sdX being the device (sda, sdb, whatever) containing the partition.
5. Reboot.
6. sudo update-grub
7. Reboot. It should now show all systems and can boot into any of them. By altering the grub menu
according to the version being used now you should be able to change the default system and perhaps
even the order of the listing and perhaps the wording.
If that doesn't work then go back to the first and get logged in as root. From there create a partition you can use to backup or save all that you don't want to lose. Remember you don't have to back up things you can easily get from repositories, just irreplacible or hard to replace things. This actually would be best on removable media but a separate partition will work. Then go through the reinstallation being sure the installer will NOT use the entire disk, i.e. 'something else' and adjust the partitions so you can install to a new, clean partition. If successful this leaves you with two copies of you old stuff - one on your old system partition that you can mount to /mnt or some other directory and access the files of the backup you made. You can overwrite your old system if you must because you have the backup. Remember you only need a relatively small partition for installation. Once up and running you can edit partitions and enlarge the new, running partition as necessary. All you are trying to do at this point is get a good system running.
 
Old 07-06-2020, 05:35 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
did you try ubuntu without a password?
 
Old 07-06-2020, 07:48 AM   #6
lmohammeed
Member
 
Registered: Sep 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
How do I try it without password please?
 
Old 07-06-2020, 07:52 AM   #7
lmohammeed
Member
 
Registered: Sep 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thanks to all.

@ Agillator,
I will study your suggestions, and report back.
 
Old 07-06-2020, 08:02 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
What is name of ubuntu iso your are using? The login name should match the ubuntu iso name, ie: ubuntu-mate iso username will be ubunt-mate or maybe ubuntumate
login: ubuntu
password: press enter key
 
Old 07-06-2020, 08:06 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
at the first screen of the installer what happens if you click on quit?
 
Old 07-06-2020, 09:29 AM   #10
lmohammeed
Member
 
Registered: Sep 2013
Posts: 61

Original Poster
Rep: Reputation: Disabled
@colorpurple21859

I am using ubuntu-18.04.4-desktop-amd64.iso

I tried it, but still got Login incorrect.
Maybe I'm missing something.

When I pressed quit I got a pop up:
PHP Code:
Sorryubuntu 18.04 has experienced an internal error 
 
Old 07-06-2020, 10:58 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
have you checked the iso with md5sum?
https://help.ubuntu.com/community/Ho...22downloads%22.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Rescue mode and grub rescue beyond my understanding A Novice Linux Mint 9 06-15-2019 11:10 AM
Centos 7 grub rescue issue by mondo rescue hassanbsee2071 Linux - Software 8 12-17-2018 02:42 AM
error: unknown filesystem. entering rescue mode. ..grub rescue> Celsiusrising Linux - Newbie 7 06-29-2018 11:51 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:08 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