SRX

 View Only
last person joined: 20 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
Expand all | Collapse all

mounting USB issue on SRX240

  • 1.  mounting USB issue on SRX240

    Posted 09-29-2011 07:50

    Hey guys,

    I'm getting the following error when trying to mount my usb key on the SRX240 in a cluster;

     

    % 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
    % umass1: Integral Courier, rev 2.00/1.00, addr 4
    da1 at umass-sim1 bus 1 target 0 lun 0
    da1: <Integral Courier PMAP> Removable Direct Access SCSI-0 device
    da1: 40.000MB/s transfers
    da1: 7640MB (15646720 512 byte sectors: 255H 63S/T 973C)

    % ls /dev/da*
    /dev/da0        /dev/da0s2      /dev/da0s3c     /dev/da0s4a
    /dev/da0s1      /dev/da0s2a     /dev/da0s3e     /dev/da0s4c
    /dev/da0s1a     /dev/da0s2c     /dev/da0s3f     /dev/da1
    /dev/da0s1c     /dev/da0s3      /dev/da0s4      /dev/da1s1
    % mount_msdosfs /dev/da1s1 /mnt
    mount_msdosfs: /dev/da1s1: Operation not permitted

     

    Any ideas why this might be happening?

     

    I only just formatted my usb key in windows to FAT32 and then copied the junos image onto it.

     

    Thanks,

     

    Paul



  • 2.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 08:50

    Hi,

     

    Try the following:

     

    mount -t msdosfs /dev/da1s1 /mnt

     



  • 3.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 09:03

    Hi there,

    thanks for your reply. I tried your suggestion:

     

    --- JUNOS 10.0R3.10 built 2010-04-16 08:47:35 UTC
    {primary:node0}
    pkilcoyne@f1-jrs1> start shell
    % mount -t msdosfs /dev/da1s1 /mnt
    mount_msdosfs: /dev/da1s1: Operation not permitted
    %

     

    Same issue 😞

     

    Paul



  • 4.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 09:10

    Try using da0s1.  I sometimes come across a similar issue and I end up plugging in the stick why consoled in to confirm what to use.  



  • 5.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 10:22

    Hi Firewall,

    thanks for the suggestion. Originally I plugged the USB key into USB-0 on the SRX240, it showed up as da1s1 in the shell, when I moved the USB key to USB-1 it still showed up as da1s1.

     

    How can I select da0s1???

     

    Thanks,

     

    Paul



  • 6.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 11:12

    Try this: mount -t msdosfs /dev/da0s1 /mnt

     

    If that doesn't work.  Have a look at the following:  http://kb.juniper.net/InfoCenter/index?page=content&id=KB16652&smlogin=true#cli_stick



  • 7.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 14:03

    Hi again,

    I tried following that document previously.

     

    Is it possible that my USB key is not compatible?

     

    It is made by a company called "Integral"

     

    Thanks,

     

    Paul



  • 8.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 14:05

     

    Hi it is very possible. I had two of them that would not mount.
    I purchased a Kingston and it worked fine



  • 9.  RE: mounting USB issue on SRX240

    Posted 09-29-2011 14:43

    You need to be root, or a full superuser.

     

    Edit:  Oh, and don't mess with da0, that's your internal compact flash device.  Bad juju.



  • 10.  RE: mounting USB issue on SRX240

    Posted 09-30-2011 02:24

    OK,

    I'm using a different USB key now and logged in as "root".

     

    I can issue the command "mount -t msdosfs /dev/da0s1 /mnt" now no problem.

     

    But when I try the command "mount -t msdosfs /dev/da1s1 /tmp/usb"

     

    it says: "mount_msdosfs: /dev/da1s1: Operation not permitted"

     

    Am I doing anything wrong?

     

    How can I proceed?

     

    Regards,

     

    Paul



  • 11.  RE: mounting USB issue on SRX240

    Posted 09-30-2011 06:59

    Guys,

    I got it working!!!!

     

    I used "da2s1"

     

    Weird but it worked.

     

    Thanks for all your help.

     

    Paul



  • 12.  RE: mounting USB issue on SRX240

    Posted 09-30-2011 09:48

    Guys,

    now that I've all my JUNOS upgrades done, can I ask a few questions as to understanding the process?

     

    1. When I do the "mount -t msdosfs /dev/da2s1 /tmp/usb" does this command copy the junos file to /tmp/usb on the SRX or does it merely link it to /tmp/usb ??

     

    2. What does the command "request system software add /tmp/usb/<junos file name> no-validate no-copy" do exactly, does it copy from the usb key or from the file /tmp/usb to flash memory?

     

    Just trying to understand the process here, once done so I won't have to remember anymore as I'll understand 🙂

     

    Many thanks,

     

    Paul



  • 13.  RE: mounting USB issue on SRX240

    Posted 09-30-2011 10:32

    1- The mount command is a Unix/Linux command that causes the USB to be "mounted" via the /tmp/usb mount point. There is no file transfer occuring. That is simply how you instruct the OS to get to the USB to be able to move files to and from it. So, yes, it is a link.

     

    2- Again, when you do the no-copy the install file is read from the USB key that is accessed via the mount you created.

     

    One key thing about Junos is that all file operations, etc.... are really just Unix commands. Junos is based on the FreeBSD operating system and that is what is executing the underlying commands.

     

     



  • 14.  RE: mounting USB issue on SRX240

    Posted 09-30-2011 10:47

    Kevin,

    thanks for that reply.

     

    On the "request system software add /tmp/usb/<junos> no-validate no-copy" command, what exactly happens when this command is entered?

    Does it just point, to use a cisco term "bootvar",  to the usb key file and then when the command "request system reboot" is entered the device boots and loads from the firmware held on the usb key?

     

     

    i.e. what if I removed the usb key between the two commands, would the srx fail to load the software?

     

    Thanks,

     

    Paul



  • 15.  RE: mounting USB issue on SRX240
    Best Answer

    Posted 10-01-2011 17:22

    Hey Paul - just saw your message  - The software is loaded at the time of the request command. You can remove the USB key prior to the reboot as the software is already installed on the unit. Hope that answers your question.

     



  • 16.  RE: mounting USB issue on SRX240

    Posted 10-03-2011 01:43

    Hi Kevin,

    thanks for that.

     

    Regards,

     

    Paul



  • 17.  RE: mounting USB issue on SRX240

    Posted 10-05-2011 09:03

    Guys,

    I've just noticed that I cannot run the command "mount -t msdosfs /dev/da1s1 /tmp/usb" when in superuser mode, it comes back with the error:

     

    root@%  -t msdosfs /dev/da1s1 /tmp/usb
    root@% sdosfs: /dev/da1s1: Operation not permitted

     

     

    But I can run it while logged in as "root".

     

    Is this normal?

     

    Thanks,

     

    Paul



  • 18.  RE: mounting USB issue on SRX240

    Posted 10-05-2011 11:10

    Paul - that is interesting and something I never tried. But you are 100% correct. I did also do an "su" while logged in as a non root superuser and then the command worked. On the surface I would think this would be a bug.



  • 19.  RE: mounting USB issue on SRX240

    Posted 10-05-2011 11:15

    Hey,

    thanks for the reply. It does seem odd.

    I'm upgradingnew SRX240H's out of the box to the recommended JUNOS version as of 18th of August 2011. I'm just worried if we have to upgrade SRX's that are in production and we can't remember our root password.

     

    Should this be brought to the attention of the developers?

     

    Paul

     

     



  • 20.  RE: mounting USB issue on SRX240

    Posted 10-05-2011 11:23