OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Can't write image to USB key
« previous next »
  • Print
Pages: [1]

Author Topic: Can't write image to USB key  (Read 1280 times)

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Can't write image to USB key
« on: January 28, 2022, 02:49:00 pm »
Hi,
I ran update yesterday but I had a problem, well, went back to 21.7.
I've downloaded OPNsense-21.7.1-OpenSSL-vga-amd64.img.bz2 and write it to my usb key with Rufus, everything was right
Now I'd like to do the same for testing purpose with 22.1 but writing USB key fail with all images
Try it again with 21.7 and it worked so is there a problem with the new image ?

It's not the first time it fails like that with opnsense images, I can't remember the last time it happened but it happened

Did someone make it work ?
« Last Edit: January 28, 2022, 02:54:21 pm by nemric »
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 665
  • Karma: 38
    • View Profile
Re: Can't write image to USB key
« Reply #1 on: January 28, 2022, 05:43:55 pm »
Have you verified checksums each time? If not, I start from there.
Logged

XeroX

  • Full Member
  • ***
  • Posts: 105
  • Karma: 5
    • View Profile
Re: Can't write image to USB key
« Reply #2 on: January 28, 2022, 06:26:21 pm »
You uncompressed it? bz2 is not the raw image. Use 7zip.
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: Can't write image to USB key
« Reply #3 on: January 29, 2022, 11:52:43 am »
Quote from: cookiemonster on January 28, 2022, 05:43:55 pm
Have you verified checksums each time? If not, I start from there.

Yes I did it and I get files from different mirrors.

Quote from: XeroX on January 28, 2022, 06:26:21 pm
You uncompressed it? bz2 is not the raw image. Use 7zip.

No, I didn't uncompress the files, Rufus allow creating boot key directly from img.bz2 and it works great with v21.7.img.bz2 in the same way
Logged

cookiemonster

  • Hero Member
  • *****
  • Posts: 665
  • Karma: 38
    • View Profile
Re: Can't write image to USB key
« Reply #4 on: January 29, 2022, 09:01:59 pm »
Are you up and running now? I'd decompress it and use another tool or even that one after decompressing first.
Logged

GerdLogan

  • Newbie
  • *
  • Posts: 2
  • Karma: 1
    • View Profile
Re: Can't write image to USB key
« Reply #5 on: January 29, 2022, 09:49:18 pm »
Quote from: nemric on January 28, 2022, 02:49:00 pm
but writing USB key fail with all images
Try it again with 21.7 and it worked so is there a problem with the new image ?

It's not the first time it fails like that with opnsense images, I can't remember the last time it happened but it happened

Did someone make it work ?

What exactely do you mean by writing fails? Is the created USB media not bootable?

In that case, you might try an older version of Rufus. For me, Version 3.x managed to create non-bootalbe USB media at least from the OPNSense 21.1 image. Since then I reverted to Rufus 2.7 which does the job. Note that Version 2.7 still had a dropdown box that let you select the bootable disk type (DD Image should be the right one). Newer versions are claimed to be "smart enough" to automatically detect the bootable disk type. Obviously, they are not...
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: Can't write image to USB key
« Reply #6 on: January 30, 2022, 01:29:02 pm »
Hi,

[/quote]
What exactely do you mean by writing fails? Is the created USB media not bootable?
[/quote]

That means that Rufus fails to write the image on the key near 4% of the writing process.

Do you mean that you have successfully written the image ?
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: Can't write image to USB key
« Reply #7 on: January 30, 2022, 03:39:48 pm »
Hi,
 I finally make it work, in CLI with "dd if=OPNsense-22.1-OpenSSL-vga-amd64.img of=/dev/da0 bs=16k status=progress" command directly from opnsense
Didn't try to boot yet but dd didn't return any errors

I did try with etcher, it fails,with compressed and uncompressed img ....
Logged

karlson2k

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: Can't write image to USB key
« Reply #8 on: January 30, 2022, 04:47:50 pm »
I made my flash drive with the OPNsense installer using Rufus by feeding it an uncompressed image.
Logged

nemric

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: Can't write image to USB key
« Reply #9 on: January 30, 2022, 08:39:42 pm »
Quote from: karlson2k on January 30, 2022, 04:47:50 pm
I made my flash drive with the OPNsense installer using Rufus by feeding it an uncompressed image.

Did you do it on windows ?
I've tried multiple images, and the only one that work was v21.7 :-/

well, It's done now with opnsense command line ...
Logged

karlson2k

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: Can't write image to USB key
« Reply #10 on: January 31, 2022, 09:29:38 am »
Quote from: nemric on January 30, 2022, 08:39:42 pm
Did you do it on windows ?

Yes, on my Windows machine.
I took Rufus 3.17.1846.
Feed it with OPNsense-22.1-OpenSSL-vga-amd64.img (uncompressed) and then boot router PC using USB flash drive.
I suspect that uncompressing was not required, but I didn't try with compressed image.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Can't write image to USB key
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2