{"id":87,"date":"2019-09-26T08:30:55","date_gmt":"2019-09-26T12:30:55","guid":{"rendered":"https:\/\/www.bryanward.net\/wp\/?p=87"},"modified":"2019-09-26T08:30:55","modified_gmt":"2019-09-26T12:30:55","slug":"creating-a-juniper-recovery-usb-drive-the-easy-way","status":"publish","type":"post","link":"https:\/\/bryanward.net\/wp\/2019\/09\/26\/creating-a-juniper-recovery-usb-drive-the-easy-way\/","title":{"rendered":"Creating a Juniper Recovery USB Drive, the Easy Way"},"content":{"rendered":"\n<p>Sure, you could follow the instructions here: <a href=\"https:\/\/www.juniper.net\/documentation\/en_US\/junos\/topics\/topic-map\/recovery-using-emergency-boot.html#id-creating-an-emergency-boot-device-for-routers\">https:\/\/www.juniper.net\/documentation\/en_US\/junos\/topics\/topic-map\/recovery-using-emergency-boot.html#id-creating-an-emergency-boot-device-for-routers<\/a><\/p>\n\n\n\n<p>or just follow these easier instructions instead!<\/p>\n\n\n\n<p>Download the Junos Installation Media for the version you wish to install.  Go to <a href=\"https:\/\/support.juniper.net\/support\/downloads\/\">https:\/\/support.juniper.net\/support\/downloads\/<\/a><\/p>\n\n\n\n<p><em>If you&#8217;re looking to find out which version is the &#8220;gold star&#8221; or JTAC Recommended Version, check this page: <\/em><a href=\"https:\/\/kb.juniper.net\/InfoCenter\/index?page=content&amp;id=KB21476\"><em>https:\/\/kb.juniper.net\/InfoCenter\/index?page=content&amp;id=KB21476<\/em><\/a><\/p>\n\n\n\n<p>To download the gold star\/recommended version, make sure you&#8217;ve selected Junos SR from the drop-down list.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"678\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-1.png\" alt=\"\" class=\"wp-image-89\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-1.png 724w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-1-300x281.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/figure>\n\n\n\n<p>Then, scroll down to Installation Media.  Note, not all versions of Junos have this available as a download.  In that case, you&#8217;ll have to download the most recent previous version of the install media and perform a software update to get to the version you want.<\/p>\n\n\n\n<p>Download the USB version of the file, the .gz filetype, not the .tgz.  Verify the checksum of the file you downloaded matches what Juniper says it should be.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-2-1024x341.png\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-2-1024x341.png 1024w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-2-300x100.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-2-768x255.png 768w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-2-1536x511.png 1536w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-2.png 1807w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you don&#8217;t already have it, download and install Balena Etcher.  <a href=\"https:\/\/www.balena.io\/etcher\/\">https:\/\/www.balena.io\/etcher\/<\/a>  Then, run it.<\/p>\n\n\n\n<p>Click Select Image and browse to the .gz file you just downloaded from Juniper.  Don&#8217;t extract the .gz file, just load it into Etcher as it was when you downloaded it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"615\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-3-1024x615.png\" alt=\"\" class=\"wp-image-91\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-3-1024x615.png 1024w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-3-300x180.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-3-768x461.png 768w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-3-1536x922.png 1536w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-3.png 1598w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Insert your USB drive or select an already inserted drive.<\/p>\n\n\n\n<p>Click Flash!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"615\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-4-1024x615.png\" alt=\"\" class=\"wp-image-92\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-4-1024x615.png 1024w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-4-300x180.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-4-768x461.png 768w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-4-1536x922.png 1536w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-4.png 1598w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Wait.  Get a coffee.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"623\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-5.png\" alt=\"\" class=\"wp-image-93\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-5.png 605w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-5-291x300.png 291w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"202\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-6-1024x202.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-6-1024x202.png 1024w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-6-300x59.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-6-768x152.png 768w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-6.png 1108w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Unmount\/Eject the USB drive from your OS.  You now have a working Junos Recovery USB Drive!<\/p>\n\n\n\n<p>To use it to recover a Juniper Switch, insert the Recovery USB Drive you just created into the switch, connect your console cable, and power on or otherwise reboot the switch.<\/p>\n\n\n\n<p>Pay attention to the boot process.  You&#8217;re watching for &#8220;Autoboot in 3 seconds&#8230; (press Ctrl-C to interrupt)&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"159\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-7.png\" alt=\"\" class=\"wp-image-95\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-7.png 917w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-7-300x52.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-7-768x133.png 768w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p>Press Ctrl-C.  Then, press 4 to enter the Boot Menu.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"573\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-8.png\" alt=\"\" class=\"wp-image-96\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-8.png 658w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-8-300x261.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/figure>\n\n\n\n<p>Press 4 again to boot from your USB Recovery Drive.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"569\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-9.png\" alt=\"\" class=\"wp-image-97\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-9.png 770w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-9-300x222.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-9-768x568.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/figure>\n\n\n\n<p>Junos will boot from the USB Recovery Drive, install it to the flash on the switch, and eventually present you with a login: prompt.  At this point, your switch has been recovered\/upgraded\/downgraded to the version of Junos you flashed to the USB drive.  Remove the USB drive from the switch, and reboot\/powercycle for good measure.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"222\" src=\"http:\/\/bryanward.host.dartmouth.edu\/wp\/wp-content\/uploads\/2019\/09\/image-10-1024x222.png\" alt=\"\" class=\"wp-image-100\" srcset=\"https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-10-1024x222.png 1024w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-10-300x65.png 300w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-10-768x166.png 768w, https:\/\/bryanward.net\/wp\/wp-content\/uploads\/2019\/09\/image-10.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Have fun!<\/p>\n\n\n\n<p>I&#8217;d also like to mention that Juniper devices can only boot from some brands of USB drives.  One brand that I&#8217;ve confirmed does <em>not <\/em>work is OVANUS, found on Amazon.  Finding that out the hard way was a shame because they were cheap.  And purple.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sure, you could try and follow Juniper&#8217;s instructions, but these ones are way easier!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[9,10],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-juniper","tag-junos"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":0,"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bryanward.net\/wp\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}