How do you flash and OS image to an SD card from within TrueNAS

goody

Cadet
Joined
Aug 5, 2021
Messages
4
Hi Folks, I'm new to TrueNAS so please bare with me.

As the title states, I'm trying to figure out how do you flash and OS image to an SD card from within TrueNAS. I could just share the folder with the img file to my Windows machine and use Etcher or download it to my Windows and then use Etcher but I figured there must be a way to do this directly from TrueNAS thus avoiding the need to download a huge img file.

Hope this makes sense. Happy to elaborate if needed.

Thanks, Goody
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
assuming you can attach the desired SD card via USB reader/converter to the TrueNAS machine and identify it (camcontrol devlist, looking at the last identifier like da1 or ada1 for that USB device)

Using that identifier (let's use ada1) with dd should do it.

dd if=/mnt/path/to/img.iso of=/dev/ada1 bs=1m status=progress

Wait patiently for the return of the outcome.
 

goody

Cadet
Joined
Aug 5, 2021
Messages
4
assuming you can attach the desired SD card via USB reader/converter to the TrueNAS machine and identify it (camcontrol devlist, looking at the last identifier like da1 or ada1 for that USB device)

Using that identifier (let's use ada1) with dd should do it.

dd if=/mnt/path/to/img.iso of=/dev/ada1 bs=1m status=progress

Wait patiently for the return of the outcome.
So I tried the above command, watched the progress and waited for the image write to complete. Unfortunately my Raspberry Pi 4 wouldn't boot from the SD Card. Didn't mention this, but the image is RetroPie compilation. They can be quite large. This one is almost 128gb. Any thoughts?

Thanks, Goody
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Is the image a compressed file, possibly? What's the filename?
 
Top