How to load primary or secondary partition in loader prompt.
The Junos software loads but the CLI is not working or the switch may have file system corruption.
Setting the boot partition:
The system disk has two partitions and can have a different software package installed in each partition. You can manually reset the system to boot from the other partition. You can set the system to boot from the other partition on the next reboot only, or make the change permanent so that it will boot from the other partition on all subsequent reboots.
Example:
unload unset vfs.root.mountfrom set currdev=disk0S<disk-number>: boot
Where disk-number indicates the partition number, either 1 or 2 .
unload unset vfs.root.mountfrom set currdev=disk0S2: echo $currdev boot
0
To reset the partition that is designated the active partition, exit the CLI and enter the following commands from the UNIX prompt:
# echo "a<disk-number>" |fdisk –f –/dev/da0 # reboot
Once the system boots up, you can try to see if you can try to perform a system snapshot to copy from the partition you boot it and to the other partition disk.
request system snapshot slice alternate
2020-07-02: Updated entire article.