SRX Services Gateway
Highlighted
SRX Services Gateway

mounting a usb to SRX

‎10-04-2015 05:11 PM

Hi all,

 

One USB I have just plugged into the port -USB 0 on SRX and want to mount it to one of the available dasX  under the /dev/

 

 

1-How  do we know which one of them(dev/dasX) is available. when checking them with shell command  (% ls /dev/da*), there are many sit there! please see output below.

 

2-I want to restart usb functionality. Is there a deamon for restating USB functionality within JUNOS on SRX?

 


SRX650FW-02> show log messages | last
Oct 5 10:39:49 SRX650FW-02 login: Login attempt for user from host 1 (0)
Oct 5 10:39:49 SRX650FW-02 login: LOGIN_INFORMATION: User logged in from host 1 on device ttyp0
Oct 5 10:47:09 SRX650FW-02 /kernel: umass0: at uhub1 port 1 (addr 3) disconnected
Oct 5 10:47:09 SRX650FW-02 /kernel: (da0:umass-sim0:0:0:0): lost device
Oct 5 10:47:09 SRX650FW-02 /kernel: (da0:umass-sim0:0:0:0): removing device entry
Oct 5 10:47:09 SRX650FW-02 /kernel: umass0: detached
Oct 5 10:47:15 SRX650FW-02 /kernel: umass0: SanDisk Corporation U3 Titanium, rev 2.00/0.10, addr 3
Oct 5 10:47:17 SRX650FW-02 /kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Oct 5 10:47:17 SRX650FW-02 /kernel: da0: <SanDisk U3 Titanium 3.21> Removable Direct Access SCSI-2 device
Oct 5 10:47:17 SRX650FW-02 /kernel: da0: 40.000MB/s transfers
Oct 5 10:47:17 SRX650FW-02 /kernel: da0: 979MB (2006673 512 byte sectors: 64H 32S/T 979C)

 

{secondary:node1}
@SRX650FW-02> start shell
%
%
%
% ls /mnt
% ls /dev/da*
/dev/da0 /dev/da0s1c /dev/da0s2c /dev/da0s3e /dev/da0s4a
/dev/da0s1 /dev/da0s2 /dev/da0s3 /dev/da0s3f /dev/da0s4c
/dev/da0s1a /dev/da0s2a /dev/da0s3c /dev/da0s4 /dev/da0s4e

 

Thanks

E

1 REPLY 1
Highlighted
SRX Services Gateway

Re: mounting a usb to SRX

‎10-04-2015 09:37 PM

Hi,

 

In response to both your questions;

 

1 - It can change per system, so the best way to identify which device entry is the usb that was inserted is to follow the steps described in the kb. http://kb.juniper.net/InfoCenter/index?page=content&id=KB12880&actp=search

 

2 - There is no service to restart in junos as it is a driver associated with freebsd. Each time a usb is inserted/removed, the device entry is created/destroyed.

 

Looking at your output da0 is your usb and you may have used it as snapshot media due to the number of partitions.

 

Tim

Feedback