Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download and directly write to a USB device #1

Open
probonopd opened this issue Aug 28, 2020 · 2 comments
Open

Download and directly write to a USB device #1

probonopd opened this issue Aug 28, 2020 · 2 comments

Comments

@probonopd
Copy link

Here is an alternative way to download and at the same time directly write to a USB storage device without the need to store the compressed file to local storage first, hence saving both space and time:

root@host:/home/me# wget "https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-dvd1.iso" -O /dev/sdX

Maybe it could be mentioned on the website.

@ghost
Copy link

ghost commented Oct 14, 2022

Hello, sorry for posting on a 2 year old issue, but the image is unable to be directly written to an external drive, due to its extra LZMA compression, meaning that it needs to be stored locally, extracted, an optionally verified using sha256sum, before being written to an external drive.

Unless there's a way to automate that too, then the command you written wouldn't be usable. If there's a way to automate all of those I've mentioned above, please let me know. Thank you.

@probonopd
Copy link
Author

Not tested yet, but maybe a pipe along the lines of wget "https://...iso.lz" -O - | lzcat - > /dev/sdX might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant