Description

The article describe the [EX3300] Root password recovery procedure when there is a failure and not able to enter the recovery mode

 

Symptoms

Interrupt the boot sequence when below prompt seen.

Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [kernel] in 1 second...


At the following prompt, type boot -s to start up the system in single-user mode:

loader> boot -s


Type recovery

Enter the full path of the shell or recovery for the recovery of the root password or RETURN for / bin / sh: recovery


A message will be displayed i.e we are not able to enter the recovery mode.

perform the required operation before exiting and allowing
this script to continue operation.

continue, shell, abort, retry, or reboot ?

Solution


1. Get into u-boot prompt (=>) by pressing [Ctrl + C] key combination at the beginning of the system boot process.

U-Boot 1.1.6 (Feb 6 2008 - 11:27:42)
Board: EX4200-24F 2.20
EPLD: Version 6.1 (0x85)
DRAM: Initializing (1024 MB)
FLASH: 8 MB
USB: scanning bus for devices... 2 USB Device(s) found <<<<< Type Ctrl + C here
scanning bus for storage devices... 1 Storage Device(s) found
=>


2. Remove 'boot_unattended' environment variable

=> printenv
bootdelay=1
baudrate=9600
..
..
boot_unattended=0
..
=> setenv boot_unattended
=> printenv

..
<<<<< /* boot_unattended is not listed anymore */


3. Issue "boot" command to get into "loader>"

=> boot
Consoles: U-Boot console
Found compatible API, ver. 7
FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.1
<snip>
Hit [Enter] to boot immediately, or space bar for command prompt. <<<<< press "Space" here
Type '?' for a list of commands, 'help' for more detailed help.
loader> boot -s
...
System watchdog timer disabled
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery <<<<< enter "recovery" here
<snip>
{linecard:0}
root> configure
Entering configuration mode
{linecard:0}[edit]
root# set system root-authentication plain-text-password
New password:
Retype new password:

{linecard:0}[edit]
root# commit
2010-01-01 00:31:54 UTC: Running FIPS Self-tests
veriexec: no signatures for device. file='/sbin/kats/cannot-exec' fsid=75 fileid=51404 gen=1 uid=0 pid=304
2010-01-01 00:31:57 UTC: FIPS Self-tests Passed
commit complete

 

Modification History

2023-06-16: Content restructured