What is the 'bs' option in dd?

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
I've found conflicting information on the internet on whether the bs in a command like dd bs=512 if=/home/Downloads/ubuntu.iso of=/dev/sdb stands for "bytes per second" or "block size". I couldn't find anything in the man pages, as the only reference to bs is:
bs=BYTES
read and write up to BYTES bytes at a time
dd
add a comment |Â
up vote
1
down vote
favorite
I've found conflicting information on the internet on whether the bs in a command like dd bs=512 if=/home/Downloads/ubuntu.iso of=/dev/sdb stands for "bytes per second" or "block size". I couldn't find anything in the man pages, as the only reference to bs is:
bs=BYTES
read and write up to BYTES bytes at a time
dd
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've found conflicting information on the internet on whether the bs in a command like dd bs=512 if=/home/Downloads/ubuntu.iso of=/dev/sdb stands for "bytes per second" or "block size". I couldn't find anything in the man pages, as the only reference to bs is:
bs=BYTES
read and write up to BYTES bytes at a time
dd
I've found conflicting information on the internet on whether the bs in a command like dd bs=512 if=/home/Downloads/ubuntu.iso of=/dev/sdb stands for "bytes per second" or "block size". I couldn't find anything in the man pages, as the only reference to bs is:
bs=BYTES
read and write up to BYTES bytes at a time
dd
dd
asked Apr 3 at 12:54
NerdOfLinux
1,499830
1,499830
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02
add a comment |Â
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
As with other GNU Coreutils utilities, the primary documentation is the info page.
From info coreutils dd invocation :
âÂÂbs=BYTESâÂÂ
Set both input and output block sizes to BYTES. This makes âÂÂddâÂÂ
read and write BYTES per block, overriding any âÂÂibsâ and âÂÂobsâÂÂ
settings. In addition, if no data-transforming âÂÂconvâ option is
specified, input is copied to the output as soon as itâÂÂs read, even
if it is smaller than the block size.
There are corresponding parameters for the individual read, write and conversion block sizes:
âÂÂibs=BYTESâÂÂ
Set the input block size to BYTES. This makes âÂÂddâ read BYTES per
block. The default is 512 bytes.
âÂÂobs=BYTESâÂÂ
Set the output block size to BYTES. This makes âÂÂddâ write BYTES
per block. The default is 512 bytes.
âÂÂcbs=BYTESâÂÂ
Set the conversion block size to BYTES. When converting
variable-length records to fixed-length ones (âÂÂconv=blockâÂÂ) or the
reverse (âÂÂconv=unblockâÂÂ), use BYTES as the fixed record length.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
As with other GNU Coreutils utilities, the primary documentation is the info page.
From info coreutils dd invocation :
âÂÂbs=BYTESâÂÂ
Set both input and output block sizes to BYTES. This makes âÂÂddâÂÂ
read and write BYTES per block, overriding any âÂÂibsâ and âÂÂobsâÂÂ
settings. In addition, if no data-transforming âÂÂconvâ option is
specified, input is copied to the output as soon as itâÂÂs read, even
if it is smaller than the block size.
There are corresponding parameters for the individual read, write and conversion block sizes:
âÂÂibs=BYTESâÂÂ
Set the input block size to BYTES. This makes âÂÂddâ read BYTES per
block. The default is 512 bytes.
âÂÂobs=BYTESâÂÂ
Set the output block size to BYTES. This makes âÂÂddâ write BYTES
per block. The default is 512 bytes.
âÂÂcbs=BYTESâÂÂ
Set the conversion block size to BYTES. When converting
variable-length records to fixed-length ones (âÂÂconv=blockâÂÂ) or the
reverse (âÂÂconv=unblockâÂÂ), use BYTES as the fixed record length.
add a comment |Â
up vote
3
down vote
accepted
As with other GNU Coreutils utilities, the primary documentation is the info page.
From info coreutils dd invocation :
âÂÂbs=BYTESâÂÂ
Set both input and output block sizes to BYTES. This makes âÂÂddâÂÂ
read and write BYTES per block, overriding any âÂÂibsâ and âÂÂobsâÂÂ
settings. In addition, if no data-transforming âÂÂconvâ option is
specified, input is copied to the output as soon as itâÂÂs read, even
if it is smaller than the block size.
There are corresponding parameters for the individual read, write and conversion block sizes:
âÂÂibs=BYTESâÂÂ
Set the input block size to BYTES. This makes âÂÂddâ read BYTES per
block. The default is 512 bytes.
âÂÂobs=BYTESâÂÂ
Set the output block size to BYTES. This makes âÂÂddâ write BYTES
per block. The default is 512 bytes.
âÂÂcbs=BYTESâÂÂ
Set the conversion block size to BYTES. When converting
variable-length records to fixed-length ones (âÂÂconv=blockâÂÂ) or the
reverse (âÂÂconv=unblockâÂÂ), use BYTES as the fixed record length.
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
As with other GNU Coreutils utilities, the primary documentation is the info page.
From info coreutils dd invocation :
âÂÂbs=BYTESâÂÂ
Set both input and output block sizes to BYTES. This makes âÂÂddâÂÂ
read and write BYTES per block, overriding any âÂÂibsâ and âÂÂobsâÂÂ
settings. In addition, if no data-transforming âÂÂconvâ option is
specified, input is copied to the output as soon as itâÂÂs read, even
if it is smaller than the block size.
There are corresponding parameters for the individual read, write and conversion block sizes:
âÂÂibs=BYTESâÂÂ
Set the input block size to BYTES. This makes âÂÂddâ read BYTES per
block. The default is 512 bytes.
âÂÂobs=BYTESâÂÂ
Set the output block size to BYTES. This makes âÂÂddâ write BYTES
per block. The default is 512 bytes.
âÂÂcbs=BYTESâÂÂ
Set the conversion block size to BYTES. When converting
variable-length records to fixed-length ones (âÂÂconv=blockâÂÂ) or the
reverse (âÂÂconv=unblockâÂÂ), use BYTES as the fixed record length.
As with other GNU Coreutils utilities, the primary documentation is the info page.
From info coreutils dd invocation :
âÂÂbs=BYTESâÂÂ
Set both input and output block sizes to BYTES. This makes âÂÂddâÂÂ
read and write BYTES per block, overriding any âÂÂibsâ and âÂÂobsâÂÂ
settings. In addition, if no data-transforming âÂÂconvâ option is
specified, input is copied to the output as soon as itâÂÂs read, even
if it is smaller than the block size.
There are corresponding parameters for the individual read, write and conversion block sizes:
âÂÂibs=BYTESâÂÂ
Set the input block size to BYTES. This makes âÂÂddâ read BYTES per
block. The default is 512 bytes.
âÂÂobs=BYTESâÂÂ
Set the output block size to BYTES. This makes âÂÂddâ write BYTES
per block. The default is 512 bytes.
âÂÂcbs=BYTESâÂÂ
Set the conversion block size to BYTES. When converting
variable-length records to fixed-length ones (âÂÂconv=blockâÂÂ) or the
reverse (âÂÂconv=unblockâÂÂ), use BYTES as the fixed record length.
answered Apr 3 at 13:00
steeldriver
63k1198166
63k1198166
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021607%2fwhat-is-the-bs-option-in-dd%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
512 Bytes per second would be painfully slow
â RoVo
Apr 3 at 13:01
I know, that was just the first number that popped into my head while writing that
â NerdOfLinux
Apr 3 at 13:02