Junos OS

 View Only
last person joined: 19 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  Creating bootable USB drive of Junos Install Media with Linux?

    Posted 08-09-2022 06:11
    Hi. I would like to ask. I experienced to install JUNOS using USB install media. Then I use tool by using Win32DiskImager.exe and PHYSDISKWRITE.EXE on Windows. It's worked well. And some of my colleagues are using Rufus to do. They are described just like as following link. 

    https://supportportal.juniper.net/s/article/Junos-How-to-copy-Junos-from-a-computer-to-bootable-media?language=en_US

    Then now I'm using Fedora Linux. Do yo have any article to how to create the same way?


  • 2.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 08-09-2022 06:14

    Hi,

    It's easy on Linux. Just format USB partition to FAT32 with mkfs command and copy image to it.




  • 3.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 08-09-2022 20:30
    Hi Gabriel. Can you tell me more on you said "copy image on it"? Did you mean to extract the .img file and copy to USB?


  • 4.  RE: Creating bootable USB drive of Junos Install Media with Linux?
    Best Answer

    Posted 08-10-2022 06:20
    Edited by gedebook2009 10-31-2022 22:57
    If you download a file like this one for MX960:

    junos-install-media-usb-mx-x86-64-22.2R1.9.img.gz

    You have to decompress it with:

    gzip -d junos-install-media-usb-mx-x86-64-22.2R1.9.img.gz

    Now you should have the file:

    junos-install-media-usb-mx-x86-64-22.2R1.9.img

    (without .gz in the filename)

    Then you can prep your USB drive:

    dd if=junos-install-media-usb-mx-x86-64-22.2R1.9.img of=/dev/usbdev1 bs=10M

    And wait for it to complete





  • 5.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 08-22-2022 23:55
    Thanks. I think I am getting familiar with the dd command.

    dd if=junos-install-media-usb-mx-x86-64-22.2R1.9.img of=/dev/usbdev1 bs=10M​

    But can you tell me why it should use parameter of "bs=10M"? What is up with the default value?


  • 6.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 08-30-2022 16:11
    "bs=10M" makes the write action faster. I believe it limits the amount of acknowledgements required between kernel and hardware device and saves you from waiting.


  • 7.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 10-31-2022 23:03
    Thanks people. I am sorry for late replying. It is good to use dd for copy the image content. But it is recommended to create partition table as MBR or GPT before by using fdisk to make the flash drive is bootable.


  • 8.  RE: Creating bootable USB drive of Junos Install Media with Linux?

    Posted 09-02-2022 19:51
    You can also use Popsicle. Thats what i use all the time. 

    https://appimage.github.io/Popsicle/



    ------------------------------
    Jimmy Walker
    ------------------------------