I am under the following restrictions:
- I have a 1.0 GB
.zip
file on my computer which contains one file, a disk image ofraspbian
. When uncompressed, this file is 3.2 GB large and named2015-11-21-raspbian-jessie.img
. - After having downloaded the zip file, I have just under 1.0 GB of storage space on my computer, not enough space to extract the image to my computer.
- This file needs to be uncompressed and written to an SD card using plain old
dd
.
Is it possible for me to write the image to the SD card under these restrictions?
I know it's possible to pipe data through tar
and then pipe that data elsewhere, however, will this still work for the zip
file format, or does the entire archive need to be uncompressed before any files are accessible?
/dev/sdh
, then rununzip -p file.zip >/dev/sdh
. (I know that the use ofdd
is traditional but it is not necessary.) – John1024 Aug 29 '15 at 05:24dd
? I figured the Block Size parameter would be needed. – CRThaze Aug 29 '15 at 06:46dd
. In the past, block size was very important when writing to tapes. For disks, it doesn't matter. – John1024 Aug 29 '15 at 07:38dd
can only lose data or slow things down (or in rare case speed things up a little, if large enough). Forget aboutdd
, it's very rarely useful. – Gilles 'SO- stop being evil' Aug 29 '15 at 16:25