TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: SCRIPT I
from: A. DUMAS
date: 2018-03-26 09:28:00
subject: Re: Raspian Jessie and St

On 26/03/2018 01:10, Roger Bell_West wrote:
> On 2018-03-25, bob prohaska wrote:
>> What I expected to use was something like
>> sudo unzip -p *.zip | dd of=/dev/sdc
>> but that gives a permissions error, then reports an archive error after the
>> password is entered.
>
> Well, the sudo there only applies to the unzip, not to the dd.

Yeah and you can't pipe to sudo.

> I'd be more inclined to go to a proper root prompt (su -, or sudo su -
> if you have to) and then try the rest of the incantation without the
> sudo. No need for password entry.

It could work but if it fails you have no idea where it went wrong,
unpacking or writing. I would unzip to another disk if you don't have
enough space on your system disk, e.g. a usb stick, verify the .img file
there (see size below), then write to the SDcard using 'sudo dd bs=1m
if=stretch.img of=/dev/whatever'. You probably need to unmount (but not
eject) the SDcard before you can use dd on it safely? That's the way it
works on Mac, anyway. The device to write to is then /dev/rdisk1 (or 2,
3, etc) but I don't know how that works on Linux. On Mac I use this
script I wrote: https://github.com/ednl/shellscripts/blob/master/img2card

> Also probably bs=1M on the dd for faster writes.
>
>> The archive is a little over half a gig, which seems
>> reasonable for a sparse image.
>
> That's not any image I've downloaded recently:
>
> -rw-r--r-- 1 roger roger 1776280071 Mar 14 05:17
2018-03-13-raspbian-stretch.zip
> -rw-r--r-- 1 roger roger  365765304 Mar 14 05:21
2018-03-13-raspbian-stretch-lite.zip

Yes and the unzipped "2018-03-13-raspbian-stretch.img" is 4.6 GB or 4.9
GiB (4949278720 bytes).

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.