Hello,
I am trying to reser root password from a EX4300 but I facing the following problems:
— When I try by LCD display, nothing happens
— When I try CLI recovery, I get the following situation:
loader > boot -s
then i have write reconvery as documents. then i have found some errors as below..
==============================================
Starting CLI …
invalid user: getpwuid failsCLI invocation failed
Continue, Abort, or Start Shell? ([c],a,s)
==============================================
Does anybody can help?
I had exactly the same problem on ex4300. The cause was that password files were not created properly. I followed this procedure: http://kb.juniper.net/InfoCenter/index?page=content&id=KB29113&actp=RSS&smlogin=true
1. Get into «single user mode» during the boot cycle by first getting to the loader prompt.
loader> boot -s
2. Check and mount the /var file system.
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/da0s1a 647748 349172 246760 59% /
devfs 2 2 0 100% /dev
/dev/md0 436012 436012 0 100% /packages/mnt/junos
# mount /dev/da0s3e /var
WARNING: /var was not properly dismounted
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/da0s1a 647748 349172 246760 59% /
devfs 2 2 0 100% /dev
/dev/md0 436012 436012 0 100% /packages/mnt/junos
/dev/da0s3e 347504 13932 305772 4% /var <===da0s3e mounted
3. Check the password files in the root directory.
# ls -lrt /var/etcroot
4. Create read-write access to the root partition and create the symbolic links to the password files.
# mount -uw /
# ln -s /var/etcroot/spwd.db /etc/spwd.db
# ln -s /var/etcroot/pwd.db /etc/pwd.db
5. Unmount the /var partition.
# cd /
# umount /var
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/da0s1a 647748 349172 246760 59% /
devfs 2 2 0 100% /dev
/dev/md0 436012 436012 0 100% /packages/mnt/junos
# exit
6. This will boot the EX4300 into amnesiac mode. Log into the device using the login ‘root’