Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Wernher von Braun settled for a V-2 when he coulda had a V-8.


computers / comp.os.linux.misc / Re: Useless Use of dd

SubjectAuthor
* Useless Use of ddEli the Bearded
+* Re: Useless Use of ddRobert Heller
|+- Re: Useless Use of ddRichard Kettlewell
|`* Re: Useless Use of ddNomen Nescio
| `* Re: Useless Use of ddRichard Kettlewell
|  `* Re: Useless Use of ddRobert Heller
|   +* Re: Useless Use of ddEli the Bearded
|   |`* Re: Useless Use of ddRobert Heller
|   | `* Re: Useless Use of ddEli the Bearded
|   |  +- Re: Useless Use of ddRobert Heller
|   |  `- Re: Useless Use of ddAndrea Croci
|   `- Re: Useless Use of ddRichard Kettlewell
+- Re: Useless Use of ddRichard Kettlewell
+- Re: Useless Use of ddThe Doctor
`* Re: Useless Use of ddToto
 `* Re: Useless Use of ddRichard Kettlewell
  `* Re: Useless Use of ddAndrea Croci
   +- Re: Useless Use of ddDavid W. Hodgins
   `- Re: Useless Use of ddRichard Kettlewell

1
Useless Use of dd

<eli$2106231624@qaz.wtf>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5295&group=comp.os.linux.misc#5295

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.os.linux.misc
Subject: Useless Use of dd
Date: Wed, 23 Jun 2021 20:24:14 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2106231624@qaz.wtf>
Injection-Date: Wed, 23 Jun 2021 20:24:14 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="11822"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
Lines: 26
 by: Eli the Bearded - Wed, 23 Jun 2021 20:24 UTC

I've been using dd for nearly 30 years and I've tended to think of it as
_the_ way to read from and write to block special device files[*]. This
was an interesting read for me:

Useless Use of dd
https://www.vidarholen.net/contents/blog/?p=479

[*] And for some of the cases, it still is the best tool. For me that's
included
1. Reading partitions off a disk armed with knowing the partition
table but not having the OS recongize the partition table. I
did that for Mac System 7 disks (not floppies) to then use the
partition images with Basilisk II.
2. Rapid wiping of partition table prior to reformatting (eg
dd if=/dev/zero of=/dev/to-wipe bs=1M count=10
)
And non-device file uses:
3. Trivial encryption to bypass email / web upload content
inspection, `conv=swab` which is as secure and easily
reversible as rot13, but is also binary safe.
4. Extracting sections of huge log files for easier inspection
with the iseek option.

Elijah
------
article is not new and might be old hat, but still seemed pertinant

Re: Useless Use of dd

<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5296&group=comp.os.linux.misc#5296

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 23 Jun 2021 17:07:46 -0500
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: Useless Use of dd
In-Reply-To: <eli$2106231624@qaz.wtf>
References: <eli$2106231624@qaz.wtf>
Newsgroups: comp.os.linux.misc
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>
Date: Wed, 23 Jun 2021 17:07:46 -0500
Lines: 48
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-pWPCb6o353ymNOIp4k0gT3c4FmnyFdpDGSVVeR5j5bnoZa1XPq/mcLO1U68xDneET79TQU4sbo19Eys!fw9NBXGlkRNuM7/0T3Yif7OCcwBFYp6LXazV/nGbEEwo3lPnBXXZjK+cJ4wJFbgOgEGBGiRljznS!Yp8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3014
 by: Robert Heller - Wed, 23 Jun 2021 22:07 UTC

At Wed, 23 Jun 2021 20:24:14 -0000 (UTC) Eli the Bearded <*@eli.users.panix.com> wrote:

>
> I've been using dd for nearly 30 years and I've tended to think of it as
> _the_ way to read from and write to block special device files[*]. This
> was an interesting read for me:
>
> Useless Use of dd
> https://www.vidarholen.net/contents/blog/?p=479
>
> [*] And for some of the cases, it still is the best tool. For me that's
> included
> 1. Reading partitions off a disk armed with knowing the partition
> table but not having the OS recongize the partition table. I
> did that for Mac System 7 disks (not floppies) to then use the
> partition images with Basilisk II.
> 2. Rapid wiping of partition table prior to reformatting (eg
> dd if=/dev/zero of=/dev/to-wipe bs=1M count=10
> )
> And non-device file uses:
> 3. Trivial encryption to bypass email / web upload content
> inspection, `conv=swab` which is as secure and easily
> reversible as rot13, but is also binary safe.
> 4. Extracting sections of huge log files for easier inspection
> with the iseek option.
>
> Elijah
> ------
> article is not new and might be old hat, but still seemed pertinant

And here is another "novel" use of dd (I do this quite often):

tar czf - -C some/directory/path . | ssh someotherhost dd of=some_directory_path.tar.bz

OR

ssh someotherhost dd if=some_directory_path.tar.bz | tar xf - -C someplace/new

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Useless Use of dd

<87czscgr45.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5297&group=comp.os.linux.misc#5297

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Wed, 23 Jun 2021 23:20:42 +0100
Organization: terraraq NNTP server
Message-ID: <87czscgr45.fsf@LkoBDZeT.terraraq.uk>
References: <eli$2106231624@qaz.wtf>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="30739"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:zm0BAUAIBoNPqgOyaxOsOk0ChoU=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 23 Jun 2021 22:20 UTC

Eli the Bearded <*@eli.users.panix.com> writes:
> I've been using dd for nearly 30 years and I've tended to think of it as
> _the_ way to read from and write to block special device files[*]. This
> was an interesting read for me:
>
> Useless Use of dd
> https://www.vidarholen.net/contents/blog/?p=479

It’s been unnecessary at least since 1979, see e.g.
https://www.freebsd.org/cgi/man.cgi?query=hp&apropos=0&sektion=0&manpath=Unix+Seventh+Edition&arch=default&format=html

(also mentions raw devices, in which dd or something else which either
gets the right block size, or can be told to do so, must be used.)

--
https://www.greenend.org.uk/rjk/

Re: Useless Use of dd

<877dikgr1b.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5298&group=comp.os.linux.misc#5298

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Wed, 23 Jun 2021 23:22:24 +0100
Organization: terraraq NNTP server
Message-ID: <877dikgr1b.fsf@LkoBDZeT.terraraq.uk>
References: <eli$2106231624@qaz.wtf>
<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="30739"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:/P8/ljwQt7Y0ZQRJgbpz0gu5ef8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 23 Jun 2021 22:22 UTC

Robert Heller <heller@deepsoft.com> writes:
> And here is another "novel" use of dd (I do this quite often):
>
> tar czf - -C some/directory/path . | ssh someotherhost dd
> of=some_directory_path.tar.bz
>
> OR
>
> ssh someotherhost dd if=some_directory_path.tar.bz | tar xf - -C someplace/new

You can use ‘cat’ for both, and part of the point of the article is that
it may be faster to do so.

--
https://www.greenend.org.uk/rjk/

Re: Useless Use of dd

<sb0d25$2dmg$12@gallifrey.nk.ca>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5299&group=comp.os.linux.misc#5299

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.nk.ca!.POSTED.doctor.nl2k.ab.ca!not-for-mail
From: doc...@doctor.nl2k.ab.ca (The Doctor)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Wed, 23 Jun 2021 22:36:53 -0000 (UTC)
Organization: NetKnow News
Message-ID: <sb0d25$2dmg$12@gallifrey.nk.ca>
References: <eli$2106231624@qaz.wtf>
Injection-Date: Wed, 23 Jun 2021 22:36:53 -0000 (UTC)
Injection-Info: gallifrey.nk.ca; posting-host="doctor.nl2k.ab.ca:204.209.81.1";
logging-data="79568"; mail-complaints-to="usenet@gallifrey.nk.ca"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: doctor@doctor.nl2k.ab.ca (The Doctor)
 by: The Doctor - Wed, 23 Jun 2021 22:36 UTC

In article <eli$2106231624@qaz.wtf>,
Eli the Bearded <*@eli.users.panix.com> wrote:
>I've been using dd for nearly 30 years and I've tended to think of it as
>_the_ way to read from and write to block special device files[*]. This
>was an interesting read for me:
>
>Useless Use of dd
>https://www.vidarholen.net/contents/blog/?p=479
>
>[*] And for some of the cases, it still is the best tool. For me that's
> included
> 1. Reading partitions off a disk armed with knowing the partition
> table but not having the OS recongize the partition table. I
> did that for Mac System 7 disks (not floppies) to then use the
> partition images with Basilisk II.
> 2. Rapid wiping of partition table prior to reformatting (eg
> dd if=/dev/zero of=/dev/to-wipe bs=1M count=10
> )
> And non-device file uses:
> 3. Trivial encryption to bypass email / web upload content
> inspection, `conv=swab` which is as secure and easily
> reversible as rot13, but is also binary safe.
> 4. Extracting sections of huge log files for easier inspection
> with the iseek option.
>

You must be senile.

>Elijah
>------
>article is not new and might be old hat, but still seemed pertinant

--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Changing the dictionary does not move us forward. -unknown Beware https://mindspring.com

Re: Useless Use of dd

<1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5300&group=comp.os.linux.misc#5300

  copy link   Newsgroups: comp.os.linux.misc
From: nob...@dizum.com (Nomen Nescio)
Subject: Re: Useless Use of dd
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
References: <eli106231624@qaz.wtf>
<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>
Message-ID: <1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com>
Date: Thu, 24 Jun 2021 15:31:46 +0200 (CEST)
Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc3.netnews.com!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128
 by: Nomen Nescio - Thu, 24 Jun 2021 13:31 UTC

Robert Heller <hel...@deepsoft.com> [RH]:
RH> tar czf - -C some/directory/path . | ssh someotherhost dd
RH> of=some_directory_path.tar.bz

And if dd is not readily available (e.g. some low end, firmware
storage space deficient, linux based IoT systems and
modems/routers/set-top boxes)

<from >to cp /dev/stdin /dev/stdout

is practically equivalent to

dd if=from of=to

It can be useful for making automated remote backup copies of their
settings and SD card contents. E.g. one can periodically poll
and get any new messages in their voice mailbox, encrypt them and
upload them to the cloud of their choice, without using the dedicated
cloud based service of their "smart" answering machine.

Re: Useless Use of dd

<87v963fgpl.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5301&group=comp.os.linux.misc#5301

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Thu, 24 Jun 2021 16:03:02 +0100
Organization: terraraq NNTP server
Message-ID: <87v963fgpl.fsf@LkoBDZeT.terraraq.uk>
References: <eli106231624@qaz.wtf>
<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>
<1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="13222"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:/wVw84UFGxYJEFmPpq0/6cwVdac=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Thu, 24 Jun 2021 15:03 UTC

Nomen Nescio <nobody@dizum.com> writes:

> Robert Heller <hel...@deepsoft.com> [RH]:
> RH> tar czf - -C some/directory/path . | ssh someotherhost dd
> RH> of=some_directory_path.tar.bz
>
> And if dd is not readily available (e.g. some low end, firmware
> storage space deficient, linux based IoT systems and
> modems/routers/set-top boxes)
>
> <from >to cp /dev/stdin /dev/stdout

Why would you not just use cat? Is there some kind of contest for
finding the most roundabout way to copy bytes from A to B? If so what is
the prize?

--
https://www.greenend.org.uk/rjk/

Re: Useless Use of dd

<fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5302&group=comp.os.linux.misc#5302

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 24 Jun 2021 11:25:41 -0500
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: Useless Use of dd
In-Reply-To: <87v963fgpl.fsf@LkoBDZeT.terraraq.uk>
References: <eli106231624@qaz.wtf>??<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>??<1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com>
<87v963fgpl.fsf@LkoBDZeT.terraraq.uk>
Newsgroups: comp.os.linux.misc
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com>
Date: Thu, 24 Jun 2021 11:25:41 -0500
Lines: 48
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-T75Qd2q5ob2/OMHao0xcopEsieZwu5aPKsGAYJKy7yrde1GpbkdRs02nnKw73G2LwdUnzrY6RfXrQwL!tEshYBdEcTdQSO/AHFFIaJBbCLbz/CRtNy5QB+p8wthP3edlanV7SfOSGig/O3jQq2kDBz4/qfUf!sM8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2887
 by: Robert Heller - Thu, 24 Jun 2021 16:25 UTC

At Thu, 24 Jun 2021 16:03:02 +0100 Richard Kettlewell <invalid@invalid.invalid> wrote:

>
> Nomen Nescio <nobody@dizum.com> writes:
>
> > Robert Heller <hel...@deepsoft.com> [RH]:
> > RH> tar czf - -C some/directory/path . | ssh someotherhost dd
> > RH> of=some_directory_path.tar.bz
> >
> > And if dd is not readily available (e.g. some low end, firmware
> > storage space deficient, linux based IoT systems and
> > modems/routers/set-top boxes)
> >
> > <from >to cp /dev/stdin /dev/stdout
>
> Why would you not just use cat? Is there some kind of contest for
> finding the most roundabout way to copy bytes from A to B? If so what is
> the prize?

Cat does not take parameter for its output -- it depends on the shell to
manage that.

This command:

tar czf - -C some/directory/path . | ssh someotherhost cat >some_directory_path.tar.bz

is effectively the same as:

tar czf some_directory_path.tar.bz -C some/directory/path .

except that the tar file makes a *round trip* over the network.

Yes you could do this:

tar czf - -C some/directory/path . | ssh someotherhost sh -c '"cat >some_directory_path.tar.bz"'

But that is really cumbersome and involves quoting hell...

(going the other way does work, but using a symetrial set of commands is neat
and elegant.)

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Useless Use of dd

<eli$2106241318@qaz.wtf>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5303&group=comp.os.linux.misc#5303

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Thu, 24 Jun 2021 17:30:34 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2106241318@qaz.wtf>
References: <eli106231624@qaz.wtf><1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com> <87v963fgpl.fsf@LkoBDZeT.terraraq.uk> <fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com>
Injection-Date: Thu, 24 Jun 2021 17:30:34 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="20572"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
 by: Eli the Bearded - Thu, 24 Jun 2021 17:30 UTC

In comp.os.linux.misc, Robert Heller <heller@deepsoft.com> wrote:
> Yes you could do this:
>
> tar czf - -C some/directory/path . | ssh someotherhost sh -c '"cat
> >some_directory_path.tar.bz"'
>
> But that is really cumbersome and involves quoting hell...

I do tar over ssh all the time and I believe you are overthinking the
quoting needs.

For moving a directory of text files:

tar cf - directory/ | gzip -3 | ssh somwhere "cd /base && tar xzf -"

(The -3 was at least at one time measured to be a good choice balancing
time spent compressing and time savings in bandwidth.)

For just archiving remotely:

tar cf - directory/ | bzip2 | ssh somwhere "cat > directory.tbz2"

And for extracting from remote:

ssh somewhere "cat directory.tbz2" | tar xaf -

I can see using a 'dd' as a way to specify a filename _IF_ you also
needed to throw a sudo in the archiving remotely case.

Elijah
------
can see, but hasn't ever needed to

Re: Useless Use of dd

<cYKdnVWJQc2dUkn9nZ2dnUU7-anNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5304&group=comp.os.linux.misc#5304

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 24 Jun 2021 13:29:20 -0500
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: Useless Use of dd
In-Reply-To: <eli$2106241318@qaz.wtf>
References: <eli106231624@qaz.wtf><1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com> <87v963fgpl.fsf@LkoBDZeT.terraraq.uk> <fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com> <eli$2106241318@qaz.wtf>
Newsgroups: comp.os.linux.misc
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <cYKdnVWJQc2dUkn9nZ2dnUU7-anNnZ2d@giganews.com>
Date: Thu, 24 Jun 2021 13:29:20 -0500
Lines: 51
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-3gXlcnOtpJL1+sd/3aHR3zwNBDyKUKkEn8RM+9qHtplbcOKwMh+gLk6ulYVr68rt8XHcJEaMSifqhoT!2bjYLFOZFSefTZ4uiHqvbs7WkkpRSLR+FPJa//OV0Jv8vCllGl1nrjHbhyHdk03/Yn2B+xhpt+3C!8LU=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2892
 by: Robert Heller - Thu, 24 Jun 2021 18:29 UTC

At Thu, 24 Jun 2021 17:30:34 -0000 (UTC) Eli the Bearded <*@eli.users.panix.com> wrote:

>
> In comp.os.linux.misc, Robert Heller <heller@deepsoft.com> wrote:
> > Yes you could do this:
> >
> > tar czf - -C some/directory/path . | ssh someotherhost sh -c '"cat
> > >some_directory_path.tar.bz"'
> >
> > But that is really cumbersome and involves quoting hell...
>
> I do tar over ssh all the time and I believe you are overthinking the
> quoting needs.
>
> For moving a directory of text files:
>
> tar cf - directory/ | gzip -3 | ssh somwhere "cd /base && tar xzf -"

For this I just use rsync...

>
> (The -3 was at least at one time measured to be a good choice balancing
> time spent compressing and time savings in bandwidth.)
>
> For just archiving remotely:
>
> tar cf - directory/ | bzip2 | ssh somwhere "cat > directory.tbz2"
>
> And for extracting from remote:
>
> ssh somewhere "cat directory.tbz2" | tar xaf -
>
> I can see using a 'dd' as a way to specify a filename _IF_ you also
> needed to throw a sudo in the archiving remotely case.
>

I just find dd easier than cat, because that way I don't even need to think
about quoting at all.

> Elijah
> ------
> can see, but hasn't ever needed to
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Useless Use of dd

<87pmwbf3oo.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5305&group=comp.os.linux.misc#5305

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Thu, 24 Jun 2021 20:44:23 +0100
Organization: terraraq NNTP server
Message-ID: <87pmwbf3oo.fsf@LkoBDZeT.terraraq.uk>
References: <eli106231624@qaz.wtf>
<oNednYuDLq8vLU79nZ2dnUU7-SXNnZ2d@giganews.com>
<1c3f4fdd8a18b4a8ce2ac71b3ed39b17@dizum.com>
<87v963fgpl.fsf@LkoBDZeT.terraraq.uk>
<fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="17093"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:zDAzcGDgCjYElXX4Blft+4T0rOc=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Thu, 24 Jun 2021 19:44 UTC

Robert Heller <heller@deepsoft.com> writes:
> Yes you could do this:
>
> tar czf - -C some/directory/path . | ssh someotherhost sh -c '"cat
> >some_directory_path.tar.bz"'
>
> But that is really cumbersome and involves quoting hell...

It can be much simpler:

tar -czf -C some/directory/path . | ssh host 'cat > path.tar.bz'

--
https://www.greenend.org.uk/rjk/

Re: Useless Use of dd

<eli$2106241846@qaz.wtf>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5306&group=comp.os.linux.misc#5306

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!qz!not-for-mail
From: *...@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Thu, 24 Jun 2021 22:46:08 -0000 (UTC)
Organization: Some absurd concept
Message-ID: <eli$2106241846@qaz.wtf>
References: <eli106231624@qaz.wtf><fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com> <eli$2106241318@qaz.wtf> <cYKdnVWJQc2dUkn9nZ2dnUU7-anNnZ2d@giganews.com>
Injection-Date: Thu, 24 Jun 2021 22:46:08 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="16964"; mail-complaints-to="abuse@panix.com"
User-Agent: Vectrex rn 2.1 (beta)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
 by: Eli the Bearded - Thu, 24 Jun 2021 22:46 UTC

In comp.os.linux.misc, Robert Heller <heller@deepsoft.com> wrote:
> Eli the Bearded <*@eli.users.panix.com> wrote:
>> For moving a directory of text files:
>> tar cf - directory/ | gzip -3 | ssh somwhere "cd /base && tar xzf -"
> For this I just use rsync...

I can never remember the exact way to run rsync, so I typically only use
it when I need rsync specific features (like incremental updates to a
remote copy). For tar / cpio and ssh I just know the options from years
of use.

Elijah
------
moves complete things more often than incremental things

Re: Useless Use of dd

<GMOdndz-g7vvjkj9nZ2dnUU7-TfNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5307&group=comp.os.linux.misc#5307

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 24 Jun 2021 18:21:22 -0500
MIME-Version: 1.0
From: hel...@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.12)
Subject: Re: Useless Use of dd
In-Reply-To: <eli$2106241846@qaz.wtf>
References: <eli106231624@qaz.wtf><fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com>
<eli$2106241318@qaz.wtf>
<cYKdnVWJQc2dUkn9nZ2dnUU7-anNnZ2d@giganews.com>
<eli$2106241846@qaz.wtf>
Newsgroups: comp.os.linux.misc
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <GMOdndz-g7vvjkj9nZ2dnUU7-TfNnZ2d@giganews.com>
Date: Thu, 24 Jun 2021 18:21:22 -0500
Lines: 35
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-5DhnxmzFsFfGO+BceQfLcoX4vVDFqhvFg/knZTjc86RiITRYRxieHYmy+6x1y9ZbPAgUsXJXNmtpGUG!IPwgTLcvDqMMeaYmduNUgWR1WyG/yDeSGDwC585ZMlMqFLFPG+kHeHfWD+Pd55lrNJt8sj2n68qa!ou4=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2620
X-Received-Bytes: 2830
 by: Robert Heller - Thu, 24 Jun 2021 23:21 UTC

At Thu, 24 Jun 2021 22:46:08 -0000 (UTC) Eli the Bearded <*@eli.users.panix.com> wrote:

>
> In comp.os.linux.misc, Robert Heller <heller@deepsoft.com> wrote:
> > Eli the Bearded <*@eli.users.panix.com> wrote:
> >> For moving a directory of text files:
> >> tar cf - directory/ | gzip -3 | ssh somwhere "cd /base && tar xzf -"
> > For this I just use rsync...
>
> I can never remember the exact way to run rsync, so I typically only use
> it when I need rsync specific features (like incremental updates to a
> remote copy). For tar / cpio and ssh I just know the options from years
> of use.

rsync -a sourcedir/ host:destdir/

To make a *new* dir, leave off the trailing slash on sourcedir.

'host:' can be swapped to the source side.

What I have described covers like 90%+ of the time.

>
> Elijah
> ------
> moves complete things more often than incremental things
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Useless Use of dd

<sb5ksn$1pju$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5308&group=comp.os.linux.misc#5308

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!BuRZ8ARMONFIJW0pCZkY6g.user.gioia.aioe.org.POSTED!not-for-mail
From: andrea.c...@gmx.de (Andrea Croci)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Sat, 26 Jun 2021 00:21:13 +0200
Organization: Aioe.org NNTP Server
Lines: 30
Message-ID: <sb5ksn$1pju$1@gioia.aioe.org>
References: <eli106231624@qaz.wtf>
<fbGdnWvPmaKYL0n9nZ2dnUU7-V3NnZ2d@giganews.com> <eli$2106241318@qaz.wtf>
<cYKdnVWJQc2dUkn9nZ2dnUU7-anNnZ2d@giganews.com> <eli$2106241846@qaz.wtf>
NNTP-Posting-Host: BuRZ8ARMONFIJW0pCZkY6g.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: de-DE
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrea Croci - Fri, 25 Jun 2021 22:21 UTC

On 25.06.21 00:46, Eli the Bearded wrote:
> In comp.os.linux.misc, Robert Heller <heller@deepsoft.com> wrote:
>> Eli the Bearded <*@eli.users.panix.com> wrote:
>>> For moving a directory of text files:
>>> tar cf - directory/ | gzip -3 | ssh somwhere "cd /base && tar xzf -"
>> For this I just use rsync...
>
> I can never remember the exact way to run rsync, so I typically only use
> it when I need rsync specific features (like incremental updates to a
> remote copy). For tar / cpio and ssh I just know the options from years
> of use.

I'm the exact other way around: I remember rsync parmeters and not tar
ones. You know why? Because I use it more often. So it all boils down to
which one you prefer (or learned first), you remember that and all
others seem more difficult. Sometimes there is indeed a better way to do
things, but most times it's just a matter of preference, as long as the
task gets done in a reasonable time.

It's still good to share experience and command examples on the group
though.

Andrea

>
> Elijah
> ------
> moves complete things more often than incremental things
>

Re: Useless Use of dd

<3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5309&group=comp.os.linux.misc#5309

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 27 Jun 2021 00:42:31 -0500
From: Q27...@buzz.net (Toto)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Sun, 27 Jun 2021 01:42:31 -0400
Message-ID: <3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>
References: <eli$2106231624@qaz.wtf>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 59
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.193
X-Trace: sv3-Hty9iuhidwJcn25in+UyGijklz1q9R3OWfmfD8pQJaUoA4vApAhYwBdD1Sv/5BflSe+oeiWEygJWSlh!JrixfFJ+c9BDaT6xx04qWM7VhXk54k3zxZwPgZvLY4Gy/viOCa8MTZ86T5938eUXWKYGlpfMgpvm!rDfE+I2D5RaFgFs=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3473
 by: Toto - Sun, 27 Jun 2021 05:42 UTC

On Wed, 23 Jun 2021 20:24:14 -0000 (UTC), Eli the Bearded
<*@eli.users.panix.com> wrote:

>I've been using dd for nearly 30 years and I've tended to think of it as
>_the_ way to read from and write to block special device files[*]. This
>was an interesting read for me:
>
>Useless Use of dd
>https://www.vidarholen.net/contents/blog/?p=479
>
>[*] And for some of the cases, it still is the best tool. For me that's
> included
> 1. Reading partitions off a disk armed with knowing the partition
> table but not having the OS recongize the partition table. I
> did that for Mac System 7 disks (not floppies) to then use the
> partition images with Basilisk II.
> 2. Rapid wiping of partition table prior to reformatting (eg
> dd if=/dev/zero of=/dev/to-wipe bs=1M count=10
> )
> And non-device file uses:
> 3. Trivial encryption to bypass email / web upload content
> inspection, `conv=swab` which is as secure and easily
> reversible as rot13, but is also binary safe.
> 4. Extracting sections of huge log files for easier inspection
> with the iseek option.
>
>Elijah
>------
>article is not new and might be old hat, but still seemed pertinant

?Que?

'dd' is good for what 'dd' is good for - no more, no less.

It will NOT fix your mail/file encryption issues. It CAN
"wipe" your old files if you use /dev/urandom or /dev/zero
as the 'source', though not against State-level probers.
Use BleachBit or multiple 'dd' passes for that. Takes a
LONG time. Better yet, disassemble your drives and
physically destroy the pretty silver platters ...... they
do make nice mobiles though ........

E-drives - you have to put a torch, or maybe a stun-gun,
to the things. The leveling algos make them basically
imposssible to erase securely. Buy a surplus neon sign
transformer, put the e-drive between the wires ....

Try to inspect "wiped" drives with 'dd' - output a number
of blocks to a file and LOOK at it with 'ghex' or something.
Anything intelligible left ? Reformatting leaves almost ALL
the old data intact - 'dd' can grab it.

"Encrypted drives" have plusses and minuses. Encryption
makes everything slower, of course. It also makes it harder
to move said drives to other machines in case of emergency.
Finally, encryption is touchy - a single bit error might make
ALL the info un-recoverable. Per-file encryption is safer, but
not as handy.

Re: Useless Use of dd

<87k0mffzj6.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5310&group=comp.os.linux.misc#5310

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Sun, 27 Jun 2021 10:05:33 +0100
Organization: terraraq NNTP server
Message-ID: <87k0mffzj6.fsf@LkoBDZeT.terraraq.uk>
References: <eli$2106231624@qaz.wtf>
<3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="5887"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:gB3t/zyuK8mOx7uA/MFRGTjF8eU=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Sun, 27 Jun 2021 09:05 UTC

Toto <Q274@buzz.net> writes:
> It will NOT fix your mail/file encryption issues. It CAN
> "wipe" your old files if you use /dev/urandom or /dev/zero
> as the 'source', though not against State-level probers.
> Use BleachBit or multiple 'dd' passes for that. Takes a
> LONG time. Better yet, disassemble your drives and
> physically destroy the pretty silver platters ...... they
> do make nice mobiles though ........

One the one hand I’m skeptical that anyone can recover zeroized data
from a modern hard disk surface.

On the other hand:

1) You can’t zeroize a drive that has failed or been lost/stolen. (You
can’t physically destroy them in the latter cases, either.)

2) You can only zeroize physical sectors that are still addressable. On
a hard disk that’s most of them but on an SSD or virtual storage it’s
a trickier question.

My personal solution is OS-level encryption of ordinary drives.

> "Encrypted drives" have plusses and minuses. Encryption makes
> everything slower, of course. It also makes it harder to move said
> drives to other machines in case of emergency. Finally, encryption
> is touchy - a single bit error might make ALL the info
> un-recoverable. [...]

Backups.

--
https://www.greenend.org.uk/rjk/

Re: Useless Use of dd

<sbad9o$36d$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5311&group=comp.os.linux.misc#5311

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!oxWnq9tMuY6MLKHGnAwxyA.user.gioia.aioe.org.POSTED!not-for-mail
From: andrea.c...@gmx.de (Andrea Croci)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Sun, 27 Jun 2021 19:42:18 +0200
Organization: Aioe.org NNTP Server
Lines: 16
Message-ID: <sbad9o$36d$1@gioia.aioe.org>
References: <eli$2106231624@qaz.wtf>
<3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>
<87k0mffzj6.fsf@LkoBDZeT.terraraq.uk>
NNTP-Posting-Host: oxWnq9tMuY6MLKHGnAwxyA.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: de-DE
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrea Croci - Sun, 27 Jun 2021 17:42 UTC

On 27.06.21 11:05, Richard Kettlewell wrote:

> My personal solution is OS-level encryption of ordinary drives.
>
How do you do that? Do you use a software like VeraCrypt or a built in
program in Linux? On a version of Ubuntu I was asked by the installation
if I wanted to encrypt my /home folder, but recently I don't get that
question any more. I guess it's still possible and I could look for a
solution online, but that was specifically for the /home folder. Do you
encrypt the operating system itself too? I remember having read that one
of the possible problems with that is that if you forget the password or
for some reason are unable to unencrypt the folder, than the data there
wouldn't be accessible and one of the thing that was recommended was to
move your ssh keys out of the /home folder, so that you would still have
access to the computer via ssh if something goes wrong. What happens if
you encrypt the whole thing? Any other suggestion to the matter?

Re: Useless Use of dd

<op.05ntdb1aa3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5312&group=comp.os.linux.misc#5312

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Sun, 27 Jun 2021 14:52:13 -0400
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <op.05ntdb1aa3w0dxdave@hodgins.homeip.net>
References: <eli$2106231624@qaz.wtf>
<3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>
<87k0mffzj6.fsf@LkoBDZeT.terraraq.uk> <sbad9o$36d$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="50a14f913fe3b6e511d96dc12221210b";
logging-data="7445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190PSBZT0JvyCC0RDkt+N0/BaAGifdQnNg="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:JwZNTW97ILbrzozLjJg8pd+DT+o=
 by: David W. Hodgins - Sun, 27 Jun 2021 18:52 UTC

On Sun, 27 Jun 2021 13:42:18 -0400, Andrea Croci <andrea.croci@gmx.de> wrote:

> On 27.06.21 11:05, Richard Kettlewell wrote:
>
>> My personal solution is OS-level encryption of ordinary drives.
>>
> How do you do that? Do you use a software like VeraCrypt or a built in
> program in Linux? On a version of Ubuntu I was asked by the installation
> if I wanted to encrypt my /home folder, but recently I don't get that
> question any more. I guess it's still possible and I could look for a
> solution online, but that was specifically for the /home folder. Do you
> encrypt the operating system itself too? I remember having read that one
> of the possible problems with that is that if you forget the password or
> for some reason are unable to unencrypt the folder, than the data there
> wouldn't be accessible and one of the thing that was recommended was to
> move your ssh keys out of the /home folder, so that you would still have
> access to the computer via ssh if something goes wrong. What happens if
> you encrypt the whole thing? Any other suggestion to the matter?

I don't use Ubuntu, but do have some experience with using encrypted file systems.

https://gitlab.com/cryptsetup/cryptsetup/ is what the Mageia installer uses.

Of course you lose access to the data if you forget the passphrase. That's the
whole purpose of using encryption, to ensure a stranger can not access the data.

The cryptsetup program does not store the key on disk. The key is generated using
the encryption passphrase and a hash program. The ssh program has nothing to do with
disk encryption.

The ssh keys used for remote system access, like all important data should be backed
up on external devices, in case of drive failure or device theft.

The installer likely does not show the option to encrypt /home if you're reusing
existing partitions or upgrading, since the partition must be re-formatted when
changing from normal to encrypted.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: Useless Use of dd

<875yxyfg3t.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5313&group=comp.os.linux.misc#5313

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Useless Use of dd
Date: Mon, 28 Jun 2021 11:17:26 +0100
Organization: terraraq NNTP server
Message-ID: <875yxyfg3t.fsf@LkoBDZeT.terraraq.uk>
References: <eli$2106231624@qaz.wtf>
<3o2gdg99bnmbn5n599f68cm0q88h5te0m1@4ax.com>
<87k0mffzj6.fsf@LkoBDZeT.terraraq.uk> <sbad9o$36d$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="10468"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:DPjRse87bPRSktkXPGwup5J9ruI=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Mon, 28 Jun 2021 10:17 UTC

Andrea Croci <andrea.croci@gmx.de> writes:
> On 27.06.21 11:05, Richard Kettlewell wrote:
>
>> My personal solution is OS-level encryption of ordinary drives.
>
> How do you do that? Do you use a software like VeraCrypt or a built in
> program in Linux?

On Linux I use cryptsetup with LUKS.

> On a version of Ubuntu I was asked by the installation if I wanted to
> encrypt my /home folder, but recently I don't get that question any
> more. I guess it's still possible and I could look for a solution
> online, but that was specifically for the /home folder. Do you encrypt
> the operating system itself too?

At present I only encrypt backup drives and (non-Linux) laptops, which
are the things most likely to go missing. The rest can wait for another
day...

> I remember having read that one of the possible problems with that is
> that if you forget the password or for some reason are unable to
> unencrypt the folder, than the data there wouldn't be accessible and
> one of the thing that was recommended was to move your ssh keys out of
> the /home folder, so that you would still have access to the computer
> via ssh if something goes wrong. What happens if you encrypt the whole
> thing? Any other suggestion to the matter?

Remote access won’t help if you’ve forgotten the password.

--
https://www.greenend.org.uk/rjk/

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor