LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2017, 05:47 AM   #1
armonja
LQ Newbie
 
Registered: Feb 2017
Location: Jerusalem, Israel
Posts: 10

Rep: Reputation: Disabled
forgotten password recovery, empty GRUB page


I am new at ubuntu. It is on my laptop and seldom in use. So I forgot the password. I saw threads about recovering (restart, press SHIFT - did'nt work but ESC did) now I got a GRUB page without the options to choose from. I ask for advice.[/SIZE][/FONT]
 
Old 02-27-2017, 07:44 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 4,916

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400
Quote:
Originally Posted by armonja View Post
I am new at ubuntu. It is on my laptop and seldom in use. So I forgot the password. I saw threads about recovering (restart, press SHIFT - did'nt work but ESC did) now I got a GRUB page without the options to choose from. I ask for advice.[/SIZE][/FONT]
You may be able to boot from the Ubuntu install CD in LiveCD mode, mount the drive, chroot into the drive, and run passwd to change the password. There are how-to pages on the web about doing this.

If you seldom use this device and have had time to forget the password since using it last I must ask: "is there any data on it worth preserving?". If the answer is "no", why not install a newer version atop of, and blowing away, the old version? This will provide you with the latest software, and allow you to establish a new account and password.
 
1 members found this post helpful.
Old 02-27-2017, 09:05 AM   #3
armonja
LQ Newbie
 
Registered: Feb 2017
Location: Jerusalem, Israel
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you wpeckham

Thank you Wpeckham for your answer. I accept your reasoning and am now downloading the latest ubuntu (16.04.2) and burning it to a DVD.
The laptop does not boot from the CD, and I have no access to the GRUB page where I can set the laptop to boot from CD.

Last edited by armonja; 02-27-2017 at 09:39 AM.
 
Old 02-28-2017, 10:01 PM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 4,916

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400
Quote:
Originally Posted by armonja View Post
Thank you Wpeckham for your answer. I accept your reasoning and am now downloading the latest ubuntu (16.04.2) and burning it to a DVD.
The laptop does not boot from the CD, and I have no access to the GRUB page where I can set the laptop to boot from CD.
Booting from the media drive is not in the grub setup (although there IS a way to set that up IN grub, that is not really what you want). You are looking for system setup menu options at the BIOS level (or UEFI? on new systems). This is usually reached by hitting F2 (or F-10, or ESC) during the boot process but before anything (including grub) can load from the hard drive. Once in that setting menu system ther should be a boot options submenu where you can allow booting from the optical drive.

Alas, more specific I cannot be as there are more differences than there are different manufacturers and I do not know them all.
 
Old 03-01-2017, 03:59 AM   #5
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
>"...now I got a GRUB page..."
Does it mention 'e' to edit? Append to linux line: rw init=/bin/sh
OR is it a prompt?: grub>

Last edited by Jjanel; 03-01-2017 at 04:01 AM.
 
Old 03-01-2017, 06:06 AM   #6
armonja
LQ Newbie
 
Registered: Feb 2017
Location: Jerusalem, Israel
Posts: 10

Original Poster
Rep: Reputation: Disabled
It is a prompt: grub>
I have installed win 8. If I try Ubuntu again I will record my password.
 
Old 03-01-2017, 07:14 AM   #7
kevy
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
Password Recovery

1. Goto GRUB
2. Press e over the first line
3. Find kernel line (starts with linux) and append init=/bin/bash
4. Press ctrl+x
5. Change the password using passwd command
example: passwd root
6. Done
 
1 members found this post helpful.
Old 03-01-2017, 07:53 AM   #8
armonja
LQ Newbie
 
Registered: Feb 2017
Location: Jerusalem, Israel
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you.
I can not apply your suggestion.
I have re-installed windows 8.
I have also unsubscribed to this thread.
Sorry to have caused inconvenience.
Jacob.
 
  


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
forgotten password marinerancien LinuxQuestions.org Member Intro 3 09-10-2014 01:24 PM
[SOLVED] How can I get my password if I have forgotten it? Ajit Gunge Linux - Newbie 4 05-21-2012 08:55 AM
[SOLVED] Windows User Password Forgotten - Linux Recovery? jaycee4 Linux - General 6 09-27-2010 09:23 AM
[SOLVED] Forgotten password rayp Linux - Newbie 3 09-09-2010 11:25 PM
Forgotten Password Love_0 SUSE / openSUSE 3 08-31-2007 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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