[COFF] Shell script advice: using 'dd' to write multiple media

Bakul Shah bakul at iitbombay.org
Tue Jun 27 09:44:07 AEST 2023


On Jun 26, 2023, at 4:09 PM, steve jenkin <sjenkin at canb.auug.org.au> wrote:
> 
> There was a ‘create the distro’ step of the pipeline which gathered the input,
> followed by a loop that used ‘dd’ to block the stream into media-sized parts.

If space is not an issue, you can use split(1) to divide
the input in N pieces and then use a separate loop to copy
them to the media. If you want to stream the distribution
on stdin but still copy to N disks or whatever, you can
write a simple C program that will prompt the user to switch
media, print out checksum etc. If you want to *not* split
files across media (and no file is greater than media size),
you can use makekit from Rich Salz's cshar (comp.sources.unix
Volume 15).


More information about the COFF mailing list