What is the 'bs' option in dd?

The name of the pictureThe name of the pictureThe name of the pictureClash 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











share|improve this question





















  • 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














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











share|improve this question





















  • 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












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











share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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










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.





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.





    share|improve this answer
























      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.





      share|improve this answer






















        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.





        share|improve this answer












        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.






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 3 at 13:00









        steeldriver

        63k1198166




        63k1198166



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Trouble downloading packages list due to a “Hash sum mismatch” error

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Cutting all the characters after the last /