Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[NFX] Mounting a USB on NFX



Article ID: KB33116 KB Last Updated: 13 May 2020Version: 3.0

This article details the process to mount a USB drive on an NFX device so that it can be used as a storage device to transfer image files when network access is not available.


This procedure is performed from Hypervisor on the NFX device:

  1. root@jdm: ~#​ ssh hypervisor.


  1. ​​Create a mount directory.

root@localhost:~# mkdir /var/usb 
  1. Mount /dev/sdb /var/usb.

root@localhost:# mount /dev/sdb /var/usb 
  1. After it is mounted, change directory: 

​cd /var/usb   
  1. Show the contents of the directory:

    root@nfx250-host:/var/usb# ls -l
    ​total 96
    ​drwxr-xr-x 2 root root 32768 Jan 30  2017 System Volume Information
    ​drwxr-xr-x 2 root root 32768 Jul 26 20:14 test.img
    ​drwxr-xr-x 2 root root 32768 Jul 26 20:13 text.tgz
  1. Show the partitions:

root@localhost:/var/usb# ​ lsblk  

sda         8:0       	0     	93.2G    0       disk
|-sda1      8:1       	0   	189.8M   0       part    /boot/efi
|-sda2      8:2       	0   	976.6M   0       part    /boot
|-sda3      8:3      	0      	1.9M     0       part    /app_disk
|-sda4      8:4      	0      	1.4G     0       part    /
|-sda5      8:5      	0      	5.7G     0       part    /var
|-sda6      8:6      	0      	7.6G     0       part    /junos
`-sda7      8:7      	0    	77.2G    0       part    /third-party
sdb         8:16    	1      	1.9G     0       disk
`-sdb       8:17   	1       1.9G     0       part    /var/usb   <<<<<< USB
  1. Then copy the desired file from the USB drive to the appropriate directory on the NFX device:

root@nfx250-host:/var/tmp/usb# cp /var/third-party/​test.img ./
Modification History:

2020-02-15: Added note on how to access hypervisor from NFX150, NFX250-NG, NFX350.
2020-05-12: Removed note on accessing hypervisor from NFX150, NFX250-NG, NFX350, since it was considered not supported by Engineering

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search