On Sat, 26 Sep 2026 19:21:20 -0400, jayjwa wrote:
... I think I'll stick with "dd".Tips for dd when copying to USB sticks, SD cards, etc:
* Use a larger blocksize (e.g. "bs=65536"). If not specified, the default
In comp.os.linux.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
* Use a larger blocksize (e.g. "bs=65536").
Why so small? bs=1M bs=4M bs=8M
On Sat, 26 Sep 2026 19:21:20 -0400, jayjwa wrote:
... I think I'll stick with "dd".
Tips for dd when copying to USB sticks, SD cards, etc:
* Use a larger blocksize (e.g. rCLbs=65536rCY). If not specified, the default
is to read and write 512 bytes at a time, which can be quite slow.
The device does not need to be an exact multiple of this in size; dd
will correctly cope with a partial block at the end.
* Use lsblk to correctly identify the device before writing. Useful
information columns to ask for: name,size,vendor,model,serial.
* IrCOve starting specifying rCLconv=fsyncrCY, just to be sure buffers are
flushed at the end before removing the stick/card. YourCOve probably
been getting away without this before, and so have I, but I think
itrCOs better to be safe than sorry. ;)
Feel free to offer any other tips you have found useful.
On Sun, 27 Sep 2026 04:18:09 -0000 (UTC), Eli the Bearded wrote:
In comp.os.linux.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
* Use a larger blocksize (e.g. "bs=65536").
Why so small? bs=1M bs=4M bs=8M
I doubt it makes much difference to anything.
On Sat, 26 Sep 2026 19:21:20 -0400, jayjwa wrote:
... I think I'll stick with "dd".
Tips for dd when copying to USB sticks, SD cards, etc:
* Use a larger blocksize (e.g. rCLbs=65536rCY). If not specified, the default
is to read and write 512 bytes at a time, which can be quite slow.
The device does not need to be an exact multiple of this in size; dd
will correctly cope with a partial block at the end.
* Use lsblk to correctly identify the device before writing. Useful
information columns to ask for: name,size,vendor,model,serial.
* IrCOve starting specifying rCLconv=fsyncrCY, just to be sure buffers are
flushed at the end before removing the stick/card. YourCOve probably
been getting away without this before, and so have I, but I think
itrCOs better to be safe than sorry. ;)
Feel free to offer any other tips you have found useful.
On 2026-09-27, Lawrence DrCOOliveiro wrote:
On Sun, 27 Sep 2026 04:18:09 -0000 (UTC), Eli the Bearded wrote:
In comp.os.linux.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
* Use a larger blocksize (e.g. "bs=65536").
Why so small? bs=1M bs=4M bs=8M
I doubt it makes much difference to anything.
I think somebody somewhere compared performance and determined a sweet
spot, but that was, I think, on StackExchange, and all I'd get now
looking for it would be "Enable JavaScript and cookies to
continue"... (or a completely blank page if I enable JavaScript; cookies aren't disabled at all).
On 27/09/2026 09:17, Nuno Silva wrote:
On 2026-09-27, Lawrence DrCOOliveiro wrote:IIRC blocksize made a difference on hard disks, with not of lot of caching
On Sun, 27 Sep 2026 04:18:09 -0000 (UTC), Eli the Bearded wrote:
In comp.os.linux.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
* Use a larger blocksize (e.g. "bs=65536").
Why so small? bs=1M bs=4M bs=8M
I doubt it makes much difference to anything.
I think somebody somewhere compared performance and determined a sweet
spot, but that was, I think, on StackExchange, and all I'd get now
looking for it would be "Enable JavaScript and cookies to
continue"... (or a completely blank page if I enable JavaScript; cookies
aren't disabled at all).
But with modern processors and plenty of memory and even an SSD it is
almost pointless.
On 2026-09-27 13:57, The Natural Philosopher wrote:
IIRC blocksize made a difference on hard disks, with not of lot of
caching
But with modern processors and plenty of memory and even an SSD it is
almost pointless.
Experiments contradict you.
I tested writing a big file to hard disk, with the default blocksize and
a big blocksize, and the difference was measurable (dd).
On 2026-09-27 09:05, Lawrence DrCOOliveiro wrote:
On Sun, 27 Sep 2026 04:18:09 -0000 (UTC), Eli the Bearded wrote:
In comp.os.linux.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
* Use a larger blocksize (e.g. "bs=65536").
Why so small? bs=1M bs=4M bs=8M
I doubt it makes much difference to anything.
Fewer split sectors?
On 27/09/2026 13:23, Carlos E.R. wrote:
On 2026-09-27 13:57, The Natural Philosopher wrote:
IIRC blocksize made a difference on hard disks, with not of lot of
caching
But with modern processors and plenty of memory and even an SSD it is
almost pointless.
Experiments contradict you.
I tested writing a big file to hard disk, with the default blocksize
and a big blocksize, and the difference was measurable (dd).
Which is what I said
"IIRC blocksize made a difference on hard disks, with not of lot of
caching"
On 2026-09-27 05:00, Lawrence DrCOOliveiro wrote:
On Sat, 26 Sep 2026 19:21:20 -0400, jayjwa wrote:
... I think I'll stick with "dd".
Tips for dd when copying to USB sticks, SD cards, etc:
* Use a larger blocksize (e.g. rCLbs=65536rCY). If not specified, the default
-a-a is to read and write 512 bytes at a time, which can be quite slow.
-a-a The device does not need to be an exact multiple of this in size; dd
-a-a will correctly cope with a partial block at the end.
* Use lsblk to correctly identify the device before writing. Useful
-a-a information columns to ask for: name,size,vendor,model,serial.
* IrCOve starting specifying rCLconv=fsyncrCY, just to be sure buffers are >> -a-a flushed at the end before removing the stick/card. YourCOve probably
-a-a been getting away without this before, and so have I, but I think
-a-a itrCOs better to be safe than sorry. ;)
Feel free to offer any other tips you have found useful.
dd if=ISO of=DEV bs=16M oflag=direct status=progress
Otherwise, the iso is cached, using a lot of memory and possibly
starving other processes. Probably this happens severely or nothing at
all depending on the combination of RAM size and ISO size.
On 9/27/26 06:53, Carlos E.R. wrote:
On 2026-09-27 05:00, Lawrence DrCOOliveiro wrote:
On Sat, 26 Sep 2026 19:21:20 -0400, jayjwa wrote:
... I think I'll stick with "dd".
Tips for dd when copying to USB sticks, SD cards, etc:
* Use a larger blocksize (e.g. rCLbs=65536rCY). If not specified, the
default
-a-a is to read and write 512 bytes at a time, which can be quite slow.
-a-a The device does not need to be an exact multiple of this in size; dd >>> -a-a will correctly cope with a partial block at the end.
* Use lsblk to correctly identify the device before writing. Useful
-a-a information columns to ask for: name,size,vendor,model,serial.
* IrCOve starting specifying rCLconv=fsyncrCY, just to be sure buffers are >>> -a-a flushed at the end before removing the stick/card. YourCOve probably >>> -a-a been getting away without this before, and so have I, but I think
-a-a itrCOs better to be safe than sorry. ;)
Feel free to offer any other tips you have found useful.
dd if=ISO of=DEV bs=16M oflag=direct status=progress
Otherwise, the iso is cached, using a lot of memory and possibly
starving other processes. Probably this happens severely or nothing at
all depending on the combination of RAM size and ISO size.
-a TOO large a buffer size and it's also hard
-a to tell WHEN the copy is done unless the
-a target drive has a blinky light. 'progress'
-a is helpful there, but does seem to slow down
-a things just a bit.
-a 512 is VERY old-school. 1M to 8M are maybe the better--
-a modern settings.
-a I've fooled with 'dd' quite a lot. You DO get speed
-a increases, but maybe only worthwhile up until around
-a the 8M mark. HAVE seen comparison charts online.
On 2026-09-28 07:37, c186282 wrote:
[snip]
-a TOO large a buffer size and it's also hard
-a to tell WHEN the copy is done unless the
-a target drive has a blinky light. 'progress'
-a is helpful there, but does seem to slow down
-a things just a bit.
with oflag=direct that's a non issue.
Also with conv=fsync (*not* conv=sync): dd -2 physically write output
file data before finishing -+
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 121:05:38 |
| Calls: | 1,194 |
| Files: | 1,352 |
| Messages: | 290,204 |