Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Brian
On Mon 17 May 2021 at 14:39:47 -0400, Greg Wooledge wrote: > On Mon, May 17, 2021 at 07:25:38PM +0100, Brian wrote: > > On Mon 17 May 2021 at 11:01:33 -0400, Greg Wooledge wrote: > > > > [...] > > > > > Done! Now, let's try that with pinfo date. I ran pinfo date from my > > > shell, which took

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Greg Wooledge
On Mon, May 17, 2021 at 07:25:38PM +0100, Brian wrote: > On Mon 17 May 2021 at 11:01:33 -0400, Greg Wooledge wrote: > > [...] > > > Done! Now, let's try that with pinfo date. I ran pinfo date from my > > shell, which took me to one of the pages within the tree of coreutils > > texinfo documenta

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Brian
On Mon 17 May 2021 at 11:01:33 -0400, Greg Wooledge wrote: [...] > Done! Now, let's try that with pinfo date. I ran pinfo date from my > shell, which took me to one of the pages within the tree of coreutils > texinfo documentation corresponding to the date program. This particular > page is ti

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Thomas Schmitt
Hi, Greg Wooledge wrote: > That's in the info(1) tool. I agree, info has a better search ability > than pinfo(1). Oops. I did not make the connection from your final statement to your mentioning of pinfo. (I could make excuses that you mention "info and pinfo" on the way to the end. But actually

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Greg Wooledge
On Mon, May 17, 2021 at 04:09:37PM +0200, Thomas Schmitt wrote: > Hi, > > Greg Wooledge wrote: > > the inability to *search* within the > > info page to find occurrences of your keyword can be maddening. > > It's not _that_ terrible. Pressing in > info dd > the "/" key, i get a prompt > Regex

Re: OT: minimum bs for dd?

2021-05-17 Thread Brian
On Mon 17 May 2021 at 08:59:43 +0300, Andrei POPESCU wrote: [...] > I'll raise you 'cp': > > cp foo.iso /dev/sdb > > > which is both fast and short to type (apparently it's smart about using > the correct block size). > > Unfortunately it's missing dd's equivalent of status=progress. As

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Thomas Schmitt
Hi, Greg Wooledge wrote: > the inability to *search* within the > info page to find occurrences of your keyword can be maddening. It's not _that_ terrible. Pressing in info dd the "/" key, i get a prompt Regexp search []: The input "dsync" brings me to the ‘dsync’ explanation. Pressing "/" a

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread tomas
On Mon, May 17, 2021 at 09:38:49AM -0400, Greg Wooledge wrote: [...] > Now, as for the info pages themselves: unlike traditional man pages, > where all of the documentation is on one page, in which you can scroll > up and down and search, info pages are chopped up into tiny little > sections, and

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Richard Owlett
On 05/17/2021 08:21 AM, IL Ka wrote: I got the impression from the search hits I got info pages were available on the web complete with useful hyperlinks. In a terminal "info dd" gives an annoying blob of text. Due to visual limits I *MUCH* prefer HTML for large amounts of information. All gn

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Greg Wooledge
On Mon, May 17, 2021 at 03:03:22PM +0200, to...@tuxteam.de wrote: > Try typing in a terminal `info dd' and see what happens :) unicorn:~$ info dd bash: info: command not found ;-) GNU's info pages are a highly debated thing, in some circles. Many people despise them, some people love them, and

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread IL Ka
> I got the impression from the search hits I got info pages were > available on the web complete with useful hyperlinks. > > In a terminal "info dd" gives an annoying blob of text. Due to visual > limits I *MUCH* prefer HTML for large amounts of information. > All gnu info pages are available onl

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Richard Owlett
On 05/17/2021 08:03 AM, to...@tuxteam.de wrote: On Mon, May 17, 2021 at 07:56:45AM -0500, Richard Owlett wrote: On 05/17/2021 03:00 AM, to...@tuxteam.de wrote: ... (this is from the info page, which sometimes is more complete than the man page): My web search turned up only compliments for

Re: info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread tomas
On Mon, May 17, 2021 at 07:56:45AM -0500, Richard Owlett wrote: > On 05/17/2021 03:00 AM, to...@tuxteam.de wrote: > >... (this is from the info page, which sometimes is more complete than the > >man page): > > > > My web search turned up only compliments for info pages. > NOTHING on where to find

Re: OT: minimum bs for dd?

2021-05-17 Thread tomas
On Mon, May 17, 2021 at 03:21:20PM +0300, Andrei POPESCU wrote: [...] > If my understanding from your quotes and David's links is correct > oflag=sync may be slower in specific circumstances, but it depends on so > many factors (hardware, caches, block size used, etc.) that it is hard > to pre

info pages WHERE? -- was [Re: OT: minimum bs for dd?]

2021-05-17 Thread Richard Owlett
On 05/17/2021 03:00 AM, to...@tuxteam.de wrote: ... (this is from the info page, which sometimes is more complete than the man page): My web search turned up only compliments for info pages. NOTHING on where to find :{ Help please.

Re: OT: minimum bs for dd?

2021-05-17 Thread Andrei POPESCU
On Lu, 17 mai 21, 10:00:22, to...@tuxteam.de wrote: > On Mon, May 17, 2021 at 10:29:06AM +0300, Andrei POPESCU wrote: > > > > Hmm, would you (or anyone else) know what is the difference between > > oflags=sync and conv=fsync? > > Let me put the docs next to each other (this is from the info page

Re: OT: minimum bs for dd?

2021-05-17 Thread Andrei POPESCU
On Lu, 17 mai 21, 17:50:24, David wrote: > On Mon, 17 May 2021 at 17:29, Andrei POPESCU wrote: > > > Hmm, would you (or anyone else) know what is the difference between > > oflags=sync and conv=fsync? > > https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html > > https://uni

Re: OT: minimum bs for dd?

2021-05-17 Thread Richard Hector
On 17/05/21 6:30 pm, to...@tuxteam.de wrote: This is one point. The other, which adds more convenience is that dd has an explicit argument for (input and) output file name, whereas cat relies on redirection. This becomes relevant when you try to sudo cat thing > that_other_thing and realise

Re: OT: minimum bs for dd?

2021-05-17 Thread Greg Wooledge
On Sun, May 16, 2021 at 06:43:54PM -0400, The Wanderer wrote: > > cat /dev/sdb > > > > dd /dev/sdb > Is there really no functional difference between the baseline trivial > functionalities of cat and dd? There are two differences: 1) dd is specified to use default input and output block

Re: OT: minimum bs for dd?

2021-05-17 Thread The Wanderer
On 2021-05-17 at 02:57, Thomas Schmitt wrote: > Hi, > > Andrew M.A. Cater wrote: > >>> When copying a file and writing it to another medium, perhaps eg >>> when writing a DVD .iso file directly to a USB stick, it's >>> ideal. > > The Wanderer wrote: > >> Is there really no functional differenc

Re: OT: minimum bs for dd?

2021-05-17 Thread tomas
On Mon, May 17, 2021 at 10:29:06AM +0300, Andrei POPESCU wrote: > On Lu, 17 mai 21, 08:32:28, to...@tuxteam.de wrote: > > On Mon, May 17, 2021 at 08:59:43AM +0300, Andrei POPESCU wrote: > > > > [...] > > > > > I'll raise you 'cp': > > > > > > cp foo.iso /dev/sdb > > > > > > > > > which is

Re: OT: minimum bs for dd?

2021-05-17 Thread David
On Mon, 17 May 2021 at 17:29, Andrei POPESCU wrote: > Hmm, would you (or anyone else) know what is the difference between > oflags=sync and conv=fsync? https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html https://unix.stackexchange.com/questions/508701/dd-command-oflag-dir

Re: OT: minimum bs for dd?

2021-05-17 Thread Andrei POPESCU
On Lu, 17 mai 21, 08:32:28, to...@tuxteam.de wrote: > On Mon, May 17, 2021 at 08:59:43AM +0300, Andrei POPESCU wrote: > > [...] > > > I'll raise you 'cp': > > > > cp foo.iso /dev/sdb > > > > > > which is both fast and short to type (apparently it's smart about using > > the correct block

Re: OT: minimum bs for dd?

2021-05-16 Thread Thomas Schmitt
Hi, Andrew M.A. Cater wrote: > > When copying a file and writing it to another medium, perhaps eg when > > writing a DVD .iso file directly to a USB stick, it's ideal. The Wanderer wrote: > Is there really no functional difference between the baseline trivial > functionalities of cat and dd? cat

Re: OT: minimum bs for dd?

2021-05-16 Thread tomas
On Mon, May 17, 2021 at 08:59:43AM +0300, Andrei POPESCU wrote: [...] > I'll raise you 'cp': > > cp foo.iso /dev/sdb > > > which is both fast and short to type (apparently it's smart about using > the correct block size). I'll be sure to try that some day :) > Unfortunately it's missing

Re: OT: minimum bs for dd?

2021-05-16 Thread tomas
On Sun, May 16, 2021 at 06:33:57PM -0400, Stefan Monnier wrote: > >> On Sun, May 16, 2021 at 01:31:49PM -0500, Richard Owlett wrote: > >> > I'll bite ;} > >> > When is it the right tool? > >> > >> When you're using it to convert ebcdic to ascii, while swapping bytes and > >> reblocking an ancient

Re: OT: minimum bs for dd?

2021-05-16 Thread Andrei POPESCU
On Du, 16 mai 21, 18:33:57, Stefan Monnier wrote: > >> On Sun, May 16, 2021 at 01:31:49PM -0500, Richard Owlett wrote: > >> > I'll bite ;} > >> > When is it the right tool? > >> > >> When you're using it to convert ebcdic to ascii, while swapping bytes and > >> reblocking an ancient file from a ba

Re: OT: minimum bs for dd?

2021-05-16 Thread Stefan Monnier
>> On Sun, May 16, 2021 at 01:31:49PM -0500, Richard Owlett wrote: >> > I'll bite ;} >> > When is it the right tool? >> >> When you're using it to convert ebcdic to ascii, while swapping bytes and >> reblocking an ancient file from a barely readable archival tape. >> >> > When is it not? >> >> W

Re: OT: minimum bs for dd?

2021-05-16 Thread The Wanderer
On 2021-05-16 at 18:33, Stefan Monnier wrote: >> When copying a file and writing it to another medium, perhaps eg when writing >> a DVD .iso file directly to a USB stick, it's ideal. > > Not sure about ideal: > > cat /dev/sdb > > is one char longer than > > dd /dev/sdb > > but it's of

Re: OT: minimum bs for dd?

2021-05-16 Thread Andrew M.A. Cater
On Sun, May 16, 2021 at 02:45:12PM -0400, Michael Stone wrote: > On Sun, May 16, 2021 at 01:31:49PM -0500, Richard Owlett wrote: > > I'll bite ;} > > When is it the right tool? > > When you're using it to convert ebcdic to ascii, while swapping bytes and > reblocking an ancient file from a barely

Re: OT: minimum bs for dd?

2021-05-16 Thread Michael Stone
On Sun, May 16, 2021 at 01:31:49PM -0500, Richard Owlett wrote: I'll bite ;} When is it the right tool? When you're using it to convert ebcdic to ascii, while swapping bytes and reblocking an ancient file from a barely readable archival tape. When is it not? When copying a file.

Re: OT: minimum bs for dd?

2021-05-16 Thread Richard Owlett
On 05/16/2021 12:42 PM, Michael Stone wrote: On Sat, May 15, 2021 at 11:32:31PM +0300, IL Ka wrote:    As noted, is there a minimum bs size for dd? It seems that you can set bs as small as 1. 512 is the default because of HDD block size which used to be 512 bytes for more than 30 years (bef

Re: OT: minimum bs for dd?

2021-05-16 Thread Michael Stone
On Sat, May 15, 2021 at 11:32:31PM +0300, IL Ka wrote: As noted, is there a minimum bs size for dd? It seems that you can set bs as small as 1. 512 is the default because of HDD block size which used to be 512 bytes for more than 30 years (before advanced format was invented) dd wasn't in

Re: OT: minimum bs for dd?

2021-05-16 Thread Bob Bernstein
Thanks to all for your responses! -- "No matter how big the problem is, you can always run away from it." Dom Irrera

Re: OT: minimum bs for dd?

2021-05-15 Thread IL Ka
> > > As noted, is there a minimum bs size for dd? > It seems that you can set bs as small as 1. 512 is the default because of HDD block size which used to be 512 bytes for more than 30 years (before advanced format was invented) >

Re: OT: minimum bs for dd?

2021-05-15 Thread The Wanderer
On 2021-05-15 at 16:19, Bob Bernstein wrote: > As noted, is there a minimum bs size for dd? Yes: 1. dd will not accept a block size of 0, never mind a negative block size. You can try it yourself: $ dd if=/dev/zero of=/tmp/1zerobyte bs=1 count=1 1+0 records in 1+0 records out 1 byte copied, 0.00

Re: OT: minimum bs for dd?

2021-05-15 Thread Linux-Fan
Bob Bernstein writes: As noted, is there a minimum bs size for dd? AFAIK its one byte. HTH Linux-Fan öö pgpQux2oMAtlK.pgp Description: PGP signature

OT: minimum bs for dd?

2021-05-15 Thread Bob Bernstein
As noted, is there a minimum bs size for dd? Thank you. -- I draw from the absurd three consequences, which are my revolt, my freedom, and my passion, Camus