Solved

Ubuntu 14.04 password lost and can't change boot order

Posted on 2014-10-25
14
520 Views
Last Modified: 2014-11-03
I loaded up a little Intel NUC with Ubuntu 14.04 via a USB drive. I must have messed up the password to the default user because it's not working when the system goes to screen saver mode. I was going to just blast it with a new image. But now it seems to be insisting on booting to the internal hard drive (mSATA) and bypassing the bootable USB. Need help with either recovering the password or getting the thing to boot from the USB instead of the hard drive. Thank you.
0
Comment
Question by:amigan_99
  • 4
  • 4
  • 2
  • +3
14 Comments
 
LVL 19

Expert Comment

by:strivoli
ID: 40404508
Set the BIOS to boot from the USB. If that doesn't work it might be because the USB drive is unbootable. Simply saving data/... on an USB drive doesn't mean it is bootable too.
0
 
LVL 87

Expert Comment

by:rindi
ID: 40404677
Ubuntu usually has repair options in the boot menu, from which you can boot into single mode and then change the user password. When booting press ESC to get to the grub boot menu, and then you should be able to select the repair mode.

If there is no such option in the boot menu, press e to temporarily edit the boot menu, then select the line where it says "quiet splash" and behind that type "single". After that you should be able to boot into single mode and change the password.
0
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 40404792
Try this:

Stop the system at the boot menu
hit 'e' to Edit  the entry

Go down to edit the second line that starts with 'kernel'
hit 'e' to Edit the line

add  init=/bin/sh
to the end of the line
press enter
press 'b' for boot

after the system boots
use the commands
# mount -o remount,rw /
# passwd NameOfYourUser

Type new password.

# mount -o remount,ro /

Reboot system.
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40404807
Press SHIFT while booting to get in to the Grub menu, choose 'Advanced ..' and then the '... recovery' option. From the recovery menu, choose the 'root' prompt item. Then as root change the password of your user account using 'passwd <useraccount>'. Reboot and logon with your user account.
0
 
LVL 1

Author Comment

by:amigan_99
ID: 40405772
Having no luck getting to grub menu. I tried Shift-power on and Esc-power on. Ending up at the gui.
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40405861
But you can get into BIOS using F2 key?

To get into GRUB menu, just reboot and try pressing SHIFT a few times, instead of keeping it pressed, system may think the keyboard is stuck.
0
 
LVL 87

Expert Comment

by:rindi
ID: 40405873
Press esc after powering on, and after post is finished.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 13

Expert Comment

by:Sandy
ID: 40407845
Press the appropriate key being shown on screen to enter in BIOS or select boot options and then select the  boot device you want to go with..

Post you can directly modify system's shadow file for removing encrypted password of root else by pressing keys multiple times you need to move at grub menu and then need to try what above had mentioned.

TY/SA
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 100 total points
ID: 40407934
Usually you can press the following keys to enter BIOS and change boot order to USB:

Dell: F12 or F2
HP: F10 or F12 or F1
Lenovo: F12 or F2
Phoenix BIOS: DEL

When cold booting the machine, press and hold the key for 2 seconds, then briefly lift the key very quickly and then press it again 2 secs, repeat until BIOS is entered or if it didn't work, cold boot the machine again and try another key.
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 400 total points
ID: 40410136
Intel NUC has F2 afaik
0
 
LVL 1

Assisted Solution

by:amigan_99
amigan_99 earned 0 total points
ID: 40411467
Sorry - haven't been able to get back on this. Will try F2 tonight. But now I have found some threads where people can not get to the bios of the NUC in general. Some folks recommended trying a different monitor. ?? I have it attached to my HD TV as I want to use this as a media center once I finally get things going.

https://communities.intel.com/thread/54132
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40411953
Seen those threads as well, what is your NUC device exactly? Does it have another video output than just HDMI? Can you test (maybe with a neighbor or friend) another HDMI display, like a computer monitor? NUC is easy to carry around ;)
0
 
LVL 1

Author Comment

by:amigan_99
ID: 40412591
The NUC is model DCCP847DYE. F2 got me to bios GUI and in there I saw the USB was no longer checked as a boot device. Not sure why that was the case as I was must have booted off USB originally in order to load Ubuntu. Anyhow things are looking up.
0
 
LVL 1

Author Closing Comment

by:amigan_99
ID: 40419046
Ok that did it. Thank you. I am re-imaging from boot USB
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now