Announcement

Collapse
No announcement yet.

What does DD bs do and whats the maximum i should set it as?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What does DD bs do and whats the maximum i should set it as?

    hello again! I'm looking at the dd command on kubuntu, I know it's a dangerous tool in the wrong hands but I think I have a fair idea of what I'm doing. I know from the man page that bs is bs=BYTES read and write up to BYTES bytes at a time (default: 512);
    ​ is there a maximum setting for this and if so how can i tell?

    #2
    The block size just says how much data dd reads or writes at a time. It can go a lot faster with, say, bs=1M. I suspect the maximum would be limited by how much free RAM is available.

    dd is an ancient command. Originally, the block size was primarily the block size on magnetic tape, or the like.
    Regards, John Little

    Comment


      #3
      Originally posted by jlittle View Post
      dd is an ancient command.
      Yup. 50 years old (so far). https://en.wikipedia.org/wiki/Dd_(Unix)
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Good lord that response was quick!! Ok so i guess dd is deprecated, any clue as to whjat i should be using instead? oh and thanks by the way for the hasty response!

        Comment


          #5
          Nothing wrong with dd at all. It does what you tell it to do.

          My how-to/experiments with it:

          The dd Command
          https://www.kubuntuforums.net/forum/...the-dd-command
          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

          Comment


            #6
            Originally posted by TheYikes2 View Post
            dd is deprecated
            What makes you think that? Old/ancient doesn't imply deprecated. dd is as relevant today, as it was then.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Hey Again Snowhog. I was just basing it on what I read. I honestly don't know why but I'm actually addicted to linux. Is there anything other than dd? I'm only asking because i have to update my ssd to a nvme drive.

              Comment


                #8
                Originally posted by TheYikes2 View Post
                Is there anything other than dd? I'm only asking because i have to update my ssd to a nvme drive.
                Yes, there are tools like Clonezilla and Gparted which can do that. Depending on the file system and what you're actually moving, rsync may be an option also.

                Frankly, they're all safer options than dd. The nickname for dd is "data destroyer" because there's no safety checks - a wrong character or 2 and you've wiped your drive.

                Please Read Me

                Comment


                  #9
                  IF you have to ask what dd is, or how to use it, I suggest you not use it until you learn how. Do that on another installation, or in a VM, until you have mastered it.
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment


                    #10
                    I agree with GreyGeek.
                    I took a special interest in dd, thus my extensive how-to list of examples.
                    BUT ... anyone doing this should/must start out with harmless "toy examples" that you have total control over.
                    (I have made serious mistakes by working too fast and hitting the GO button without looking.)​
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment

                    Working...
                    X