enter s to start shell then follow the steps below. Oncwe rebooted, you should be able to log in with the root and no password. If the following fails, you may have to use the USB to install the system again.
. Get into "single user mode" during the boot cycle by first getting to the loader prompt.
- To get to the loader prompt, hit the space bar when you see "Loading /boot/defaults/loader.conf", during the beginning of the boot cycle.
2. Check and mount the /var file system.
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
WARNING: /var was not properly dismounted
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.
4. Create read-write access to the root partition and create the symbolic links to the password files.
- # ln -s /var/etcroot/spwd.db /etc/spwd.db
- # ln -s /var/etcroot/pwd.db /etc/pwd.db
5. Unmount the /var partition.
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