You are not logged in.

#1 2016-10-25 20:45:23

beachcoder
Member
Registered: 2009-10-08
Posts: 130

[closed] Accidently misspelled passphrase on grub boot -> rescue shell

Hi!

I installed grub with an encrypted /boot partition. This runs  very well.
But when I accidently type in a wrong or mispelled password, grub drops me on a rescue shell I cannot leave. Commands like "help" or "reboot" are always stated as 'Unknown commands'.
The only way working is turn off the entire machine using the power button.

Welcome to GRUB!

Attempting to decrypt master key...
Enter passphrase for hd0,gpt2 (3087869cd7f1b300cb40482e2829f8c8):
error: access denied.
error: no such cryptodisk found.
error: disk `cryptouuid/3087869cd7f1b300cb40482e2829f8c8` not found.
Entering rescue mode...
grub rescue> _

Screenshot:
http://0wx.org/3853678305497ddf41bb18881b474914.jpg

Is there a way to change this behavior, e.g. let me re-enter the correct password or reboot the machine without pushing any buttons?

Any help is appreciated!

Last edited by beachcoder (2016-10-27 08:47:41)

Offline

#2 2016-10-25 20:50:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-25 22:47:21

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

jasonwryan wrote:

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code

Sorry, I fixed it. Anyway, help would be nice.

Offline

#4 2016-10-26 08:38:33

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

In the rescue shell you can use: set, unset, ls, insmod.
There's no way to go back, as GRUB expects you to repair those issues, that's why your directed to the rescue shell in the first place.
GNU-grub_commands
Also look at the link in that part 'GRUB only offers a rescue shell'

Offline

#5 2016-10-26 10:41:09

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

qinohe wrote:

In the rescue shell you can use: set, unset, ls, insmod.

Well okay... so there isn't a way to tell grub to try it again, just because I pressed one wrong button before?

Offline

#6 2016-10-26 10:49:02

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

As far as my understanding for grub goes, no.

Offline

#7 2016-10-26 10:59:24

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

beachcoder wrote:

The only way working is turn off the entire machine using the power button.

Why would this be a problem?

None of the filesystems are mounted at that point so a hard power cycle should cause no issues.

Offline

#8 2016-10-27 08:47:19

beachcoder
Member
Registered: 2009-10-08
Posts: 130

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

Head_on_a_Stick wrote:
beachcoder wrote:

The only way working is turn off the entire machine using the power button.

Why would this be a problem?

Well, its not very user-friendly. But I think there is no way to get around it. Thanks.

Offline

#9 2016-10-27 12:00:41

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [closed] Accidently misspelled passphrase on grub boot -> rescue shell

But it is safe. And safety counts for more than usability when they must trade off. Just don't type your passphrase wrong. smile

Also, don't use [CLOSED] status on this, use [SOLVED].

Last edited by mrunion (2016-10-27 12:01:01)


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB