On Wednesday 18 September 2019 08:57:43 to...@tuxteam.de wrote:

> On Wed, Sep 18, 2019 at 02:42:21PM +0200, Jonas Smedegaard wrote:
> > Quoting Gene Heskett (2019-09-18 13:46:38)
> >
> > > On Tuesday 17 September 2019 22:05:28 David wrote:
> > > > On Wed, 18 Sep 2019 at 08:17, Gene Heskett
> > > > <ghesk...@shentel.net>
> > > >
> > > > wrote:
> > > > > what linux command will unpack the .zip and put it on the
> > > > > card?
> >
> > [...]
> >
> > > > 3) write the SD card
> > > > (replace my /dev/sd_ with your SD card device,
> > > > without any partition number):
> > > >
> > > > # unzip -p raspbian_latest.zip | dd bs=4M of=/dev/sd_
> > > > status=progress conv=fsync
> > >
> > > This last is what I was looking for, thank you, and I'll give it
> > > all a shot later today. In fact, card is written.
> >
> > Essentiall you want to copy all raw content onto the raw device.
> >
> > This works too (and not only with specially crafted zip files):
> >
> >   $ unzip foo.zip
> >   $ su -c "cp image-unpacked-from-foo-zip /dev/sd_"
>
> Also spelt "zcat foo.zip > /dev/sd_" for those who don't want to
> leave a file around they have to delete later.
>
> > dd is *not* a better tool for this task - that's just false rumors.
>
> I don't know about "better", but it's the right tool for that job,
> affording you
>
> - unbuffered output (oflag=direct) for when you don't want
>   to wait for ages after dd has finished while your system
>   is flushing buffers (or worse, pull the stick/card out
>   while buffers are not flushed because you think copy is
>   ready, leading to funny results)
>
> - progress display (either by sending it an USR1 signal or
>   by stating "status=progress".
>
> There's a reason a carpenter's shop has more than one tool,
> but hey, if you insist, you can take out a screw with scissors.
>
And my furniture/carpenter skills mean I have lots of those tools 
available too, I build green and green style stuff, but the green & 
green joints are carved by cnc milling machines running code I wrote. 
Consistent joint fits are an admirable target.

> Cheers
> -- t


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to