Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How do I determine the best number to use for the bs (block size) operand of the dd command? Post 303011890 by Quenz on Thursday 25th of January 2018 05:28:23 AM
Old 01-25-2018
How do I determine the best number to use for the bs (block size) operand of the dd command?

When I create a bootable Linux distro installation USB drive, I use this command:
Code:
sudo dd if=/Path/to/linux_distro.iso of=/dev/rdisk<disk number>
 bs=<number of bytes>

When I look it up, I've seen variations of people choosing 4M, and I think 8M, 2M, and maybe even 1M.

If I leave the operand off, it seems to take a long time (I never let it finish).

How would I determine what number to use to make it go the fastest? Is speed the only factor?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

determine the size of a file???

Hello, Can someone please tell me which command to use to determine the size of a file? When I log in to my shell account, I do this $>% ls -als total 632 8 -rw-r--r-- 1 user01 devgrp1 1558 Jul 30 23:25 .kshrc What is "1158"? Bytes? Kilobytes? I apologize if my... (8 Replies)
Discussion started by: alan
8 Replies

2. HP-UX

determine number of xterm connected

i more than one hp-ux 11.0 application server. some of these application server has an xterminal attached to them. ncd900 and ncd400. i would like to know how many xterm is connected to an application server. without physically checking each xterm, can i identify how many xterm? thanks alot. (0 Replies)
Discussion started by: inquirer
0 Replies

3. Shell Programming and Scripting

$A is a number / any other string? How to determine ?

I have a variable (say $A) and while passing it gets either a number or some other string. Now how can test (with if else) whether the variable is just a ne or something else ? Thanks a lot to all in advance C Saha (2 Replies)
Discussion started by: csaha
2 Replies

4. UNIX for Advanced & Expert Users

How to determine the max file size

Does anyone know a way to determine the maximum filesize on a file system on Solaris, HP-UX, AIX, Linux, and OSF1 using the command line? TIA (2 Replies)
Discussion started by: dknight
2 Replies

5. HP-UX

determine the physical size of the hard disk

Hi is there a cmd in hpux 11 to determine the physical size of the hard disk. not bdf command. i have searched the other threads here but cant find an answer. thank you guys (4 Replies)
Discussion started by: hoffies
4 Replies

6. UNIX for Dummies Questions & Answers

Determine switch buffer size

Hi everybody, I need to calculate the tcp buffer size of a network switch, since it's not specified in the manual; how do I do this? I have some machines connected to the switch and I can run some socket tests written in C between these machines (I can choose how many bytes to send and... (0 Replies)
Discussion started by: dimpim
0 Replies

7. Shell Programming and Scripting

determine the number of spaces

Here is a weird question :) i am trying to create a script written in bash that will create configuration files for nagios. As some of you aware is has to be written in the below format: define service{ option1 value1 option2 value2... (6 Replies)
Discussion started by: ppolianidis
6 Replies

8. UNIX for Dummies Questions & Answers

Command for total number of files (and size) across subdirectories?

Hi all... I have a directory called dbrn. This directory contains an unknown number of subdirectories which in turn contain an unknown number of files. What I want to know is: How many files with extention .ABC can be found in /dbrn across all subdirecties, and what is the total size for... (9 Replies)
Discussion started by: Beun
9 Replies

9. Programming

Perl : Inline program to determine file size

Hi, I have 5 files as below $ ll sam* -rw-rw-rw- 1 sam ugroup 0 Mar 21 06:06 sam3 -rw-rw-rw- 1 sam ugroup 0 Apr 3 22:41 sam2 -rw-rw-rw- 1 sam ugroup 17335 Apr 10 06:07 sam1 -rw-rw-rw- 1 sam ugroup 5 Apr 10 07:53 sam5 -rw-rw-rw- 1 sam ugroup 661 Apr 10 08:16 sam4 I want to list out... (4 Replies)
Discussion started by: sam05121988
4 Replies

10. Programming

How to extract operand size in bits of a C program?

Hi I'm new to shell programming. How do I extract the size of an operand in a simple instruction in a C program? Lets say there is an addition a+b somewhere in a C code where a and b are integers. How to extract the size of a & b in bits? Is there something called intermediate code before an... (4 Replies)
Discussion started by: beginner_99
4 Replies
tz(4)							     Kernel Interfaces Manual							     tz(4)

Name
       tz - SCSI magnetic tape interface

Syntax
       VAX NCR 5380:
	 adapter      uba0    at nexus?
	 controller   scsi0   at uba0	 csr 0x200c0080  vector szintr
	 tape	      tz0     at scsi0	 drive 0

       VAX DEC SII:
	 adapter      ibus0   at nexus?
	 controller   sii0    at ibus?	 vector sii_intr
	 tape	      tz0     at sii0	 drive 0

       RISC DEC SII:
	 adapter      ibus0   at nexus?
	 controller   sii0    at ibus?	 vector sii_intr
	 tape	      tz0     at sii0	 drive 0

       RISC DEC KZQ:
	 adapter      uba0    at nexus?
	 controller   kzq0    at ibus? csr 0761300vector sii_intr
	 tape	      tz0     at kzq0	 drive 0

       RISC NCR ASC:
	 adapter      ibus0   at nexus?
	 controller   asc0    at ibus?	 vector ascintr
	 tape	      tz0     at asc0	 drive 0

Description
       The SCSI tape driver provides a standard tape drive interface as described in This is a driver for any Digital SCSI tape device.

       For  the  TZK10	QIC  format tape drive, the densities supported are QIC-24 (read only) block size of 512 byte blocks, QIC-120, and QIC-150
       read/write block size of 512 byte blocks, and QIC-320 read/write block size of 1024 byte blocks.  With QIC format style tapes all reads and
       writes  must  be  in  multiple  of the block size.  This is a requirement of fixed block tape drives because record boundaries are not pre-
       served.	The QIC densities are selected using the following special device names:

	 QIC-24 Fixed block size.
	 QIC-120 Fixed block size.
	 QIC-150 Fixed block size.
	 QIC-320 Fixed block size.

       With all fixed block tape devices a of a file to the tape must be padded out.  An example of this is a of which has a size of approximately
       3800 bytes.
       dd if=/etc/gettytab of=/dev/rmt0h bs=10k conv=sync
	 or
       dd if=/etc/gettytab of=/dev/rmt0l bs=512 conv=sync
       The option of pads the output to block size.

       This  driver  also  supports  n-buffered  reads	and  writes  to the raw tape interface (used with streaming tape drives).  See for further
       details.

Tape Support
       TZ30, TZK50, TLZ04, TSZ05, TKZ08, TZK10

Diagnostics
       All diagnostic messages are sent to the error logger subsystem.

Files
See Also
       mtio(4), nbuf(4), SCSI(4), MAKEDEV(8), uerf(8), tapex(8)
       Guide to the Error Logger

																	     tz(4)
All times are GMT -4. The time now is 06:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy