And, I've now tried 3 different USB flash drives.....
Original Message:
Sent: 3/6/2021 2:14:00 PM
From: fred_3
Subject: RE: How to boot the srx from usb
OK. Thank you!
It seems I have a problem with our only SRX340:
When I run a SNAPSHOT, nothing happens.
This is an 8GB FAT32 USB flash drive.
With the USB drive removed
Using
ls /dev/da*
gives the expected table of devs.
Plugging in the USB next does *nothing* all by itself.
(The instructions I'm reading says it will generate the table again WITH the USB included – but nothing happens. If there's a command to use at that point, I believe it is to repeate:
ls /dev/da*
But, again, this does nothing.
It's been suggested that we mount the flash drive. Here is what happens:
from /var/tmp
root@RFB_SRX% cd usb
root@RFB_SRX% ls
root@RFB_SRX% mount_msdosfs /dev/da2s1 /var/tmp/usb
mount_msdosfs: /dev/da2s1: No such file or directory
root@RFB_SRX% ls
root@RFB_SRX%
I'm beginning to wonder if the hardware is faulty or the USB port is somehow blocked.
????
Original Message:
Sent: 02-28-2021 12:42
From: STEVE PULUKA
Subject: How to boot the srx from usb
When you create the bootable USB using the snapshot method it is ready to go and you don't need to do anything else for it to be usable as is.
the ability to "prepare USB boot disk with install-media file" is an alternative way to make a bootable USB should you need to do this without having access to a Junos device of the same model you need the boot media for. It is much more complicated but is possible in most cases.
By default if a bootable USB is plugged into a Junos device it will boot from there first. But you can also force a boot from specific media by specifying that after the reboot command.
request system reboot media usborrequest system reboot media internal
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Original Message:
Sent: 02-27-2021 14:02
From: Unknown User
Subject: How to boot the srx from usb
I can see that this thread is loaded with good information. But many of the terms are a bit strange for me at this point.
I agree with the confusion re: being able to boot from USB and being able to upgrade from USB. They seem mixed here.
"If you have a high end device you can create bootable USB using the image on Juniper site." I don't know what this means......
I have a working SRX340 and am planning to upgrade the firmware.
Because the firmware upgrade is quite a few levels "up", I want to have a bootable USB.
I understand that all I need to do is create a SNAPSHOT from the GUI (or likely equivalent operations from the CLI).
Is that all it takes? If so, then that's Step 1.
OK. So then for Step 2 IF one needs to boot from this USB:
Open the CLI with puTTY.
Then what?
I didn't find anything to download to support: "prepare a USB Boot disk with install-media file:" and don't know that it's needed.
Sorry to be such a noob but after many years of working with a single SRX340, I've not had to deal with dead systems and rarely with firmware upgrades.
Original Message:
Sent: 01-18-2017 01:41
From: Rengaramalingam A
Subject: How to boot the srx from usb
Please check this.. I hope it helps you..
If the router's Junos Software is damaged hence preventing the Junos Software from loading completely, you can use the emergency USB boot disk to revive the router. The emergency boot disk repartitions the primary disk and reloads a fresh installation of the Junos Software. The Junos software is kept as a backup in USB so that if there is any damage to the installed software it can be revived from the USB drive itself.
SOLUTION:
Perform the following procedure to prepare a USB Boot disk with install-media file:
- Download install media file from the Juniper support website.
- Login into a working firewall using root username and password.
- Create the directory /var/tmp/test/: % mkdir /var/tmp/test/
- Use FTP to copy the installation media into the firewall's /var/tmp/test
- Run this command from shell prompt:% dd if=/dev/zero of=/dev/da0 count=20 (Make sure that the USB is on slot0 of routing engine)
- Run this command from shell prompt:% dd if=/var/tmp/test/install-media-package-name of=/dev/da0 bs=64k
Once it completes, unplug the USB and plug into a another firewall (slot0 of routing engine) in which compact flash is corrupted and then reboot the device.
Then you will observe a message that the device is booting from USB
===================================================
FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.2
(xhong@ipg-pool1-11.juniper.net, Thu Aug 21 08:51:56 PDT 2008)
Memory: 1024MB
Trying to boot from USB Loading /boot/defaults/loader.conf
=================== Bootstrap installer starting ===================
Initialized the environment
Routing engine model is RE-SRX3600
Discovered that flash disk = ad0 , hard disk = ad2
Disk to install is ad0 ad2
mfs: available=1923744
Using 1923744 for /tmp
WARNING: The installation will erase the contents of your disks.
Do you wish to continue (y/n)?
Press Y to format the compact-flash and reinstall the Junos packages on it.
Once the installation is complete, the device will reboot automaticaly and prompt for ejecting the USB so that it can boot from the Compact-flash as shown below.
ep: /mnt/etc/db/pkg/*/+COMMENT: No such file or directory machdep.bootsuccess: 0 -> 1 machdep.nextbootdev: usb -> compact-flash
Eject the installation media and hit [Enter] to reboot?
Once the device will reboot completely it will ask for user name, and it will allow you to go inside CLI> of the device.
https://kb.juniper.net/InfoCenter/index?page=content&id=KB19576&smlogin=true&actp=search