ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Dumb question - linux dd write 0s to multiples disks at once

    Scheduled Pinned Locked Moved Solved IT Discussion
    linuxddcommand line
    38 Posts 9 Posters 4.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @DustinB3403
      last edited by

      @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

      So just ctlr alt f2 multiple times and than the dd command for each disk?

      If you don't have windows...

      nohup command &

      Then run each command that way.

      1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403
        last edited by

        Do you know if there are only two shells available in the DVD iso of CentOS 7?

        Seems that way from what I have here.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @DustinB3403
          last edited by

          @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

          Do you know if there are only two shells available in the DVD iso of CentOS 7?

          Seems that way from what I have here.

          Just use nohup andyou can run as many thing as you want at once from a single shell.

          DustinB3403D 1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403 @scottalanmiller
            last edited by

            @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

            @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

            Do you know if there are only two shells available in the DVD iso of CentOS 7?

            Seems that way from what I have here.

            Just use nohup andyou can run as many thing as you want at once from a single shell.

            um ok

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Bash command not found

              Is that not an option with pre installation using a bootable USB?

              1 Reply Last reply Reply Quote 0
              • travisdh1T
                travisdh1 @DustinB3403
                last edited by travisdh1

                @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

                With a single command, no. But you can run several commands at once.

                That would suffice, what would it look like?

                tack a ; to the end of each dd command and put them all on a single line

                dd if=/dev/zero of=/dev/sda bs=4k; dd if=dev/zero of=/dev/sdb bs=4k
                
                DustinB3403D 1 Reply Last reply Reply Quote 1
                • DustinB3403D
                  DustinB3403 @travisdh1
                  last edited by

                  @travisdh1 said in Dumb question - linux dd write 0s to multiples disks at once:

                  @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                  @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

                  With a single command, no. But you can run several commands at once.

                  That would suffice, what would it look like?

                  tack a ; to the end of each dd command and put them all on a single line

                  as

                  dd if=/dev/zero of=/dev/sdb bs=4k; dd if=/dev/zero of=/dev/sdc bs=4k; dd if=/dev/zero of=/dev/sdd bs=4k; dd if=/dev/zero of=/dev/sde bs=4k

                  right?

                  travisdh1T scottalanmillerS 2 Replies Last reply Reply Quote 1
                  • travisdh1T
                    travisdh1 @DustinB3403
                    last edited by

                    @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                    @travisdh1 said in Dumb question - linux dd write 0s to multiples disks at once:

                    @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                    @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

                    With a single command, no. But you can run several commands at once.

                    That would suffice, what would it look like?

                    tack a ; to the end of each dd command and put them all on a single line

                    as

                    dd if=/dev/zero of=/dev/sdb bs=4k; dd if=/dev/zero of=/dev/sdc bs=4k; dd if=/dev/zero of=/dev/sdd bs=4k; dd if=/dev/zero of=/dev/sde bs=4k

                    right?

                    yes

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      It works!

                      Now just to go home and drink and come back to this Monday.

                      Thanks guys!

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller @DustinB3403
                        last edited by

                        @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                        @travisdh1 said in Dumb question - linux dd write 0s to multiples disks at once:

                        @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                        @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

                        With a single command, no. But you can run several commands at once.

                        That would suffice, what would it look like?

                        tack a ; to the end of each dd command and put them all on a single line

                        as

                        dd if=/dev/zero of=/dev/sdb bs=4k; dd if=/dev/zero of=/dev/sdc bs=4k; dd if=/dev/zero of=/dev/sdd bs=4k; dd if=/dev/zero of=/dev/sde bs=4k

                        right?

                        That makes one run right after the other, they don't run at the same time.

                        1 Reply Last reply Reply Quote 2
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          @travisdh1 said in Dumb question - linux dd write 0s to multiples disks at once:

                          dd if=/dev/zero of=/dev/sdb bs=4k

                          nohup dd if=/dev/zero of=/dev/sdb bs=4k &
                          nohup dd if=/dev/zero of=/dev/sdc bs=4k &
                          nohup dd if=/dev/zero of=/dev/sdd bs=4k &
                          

                          Like that 🙂

                          DustinB3403D travisdh1T stacksofplatesS 3 Replies Last reply Reply Quote 2
                          • DustinB3403D
                            DustinB3403 @scottalanmiller
                            last edited by

                            @scottalanmiller but nohup from the live us isn't an option.

                            scottalanmillerS black3dynamiteB 2 Replies Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @DustinB3403
                              last edited by

                              @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                              @scottalanmiller but nohup from the live us isn't an option.

                              Oh, what shell are you in?

                              1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @DustinB3403
                                last edited by

                                @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                                @scottalanmiller but nohup from the live us isn't an option.

                                Using Ubuntu live usb?

                                1 Reply Last reply Reply Quote 0
                                • DustinB3403D
                                  DustinB3403
                                  last edited by

                                  Centos 7

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    What is the result of this command..

                                    echo $0
                                    
                                    DustinB3403D 1 Reply Last reply Reply Quote 0
                                    • DustinB3403D
                                      DustinB3403 @scottalanmiller
                                      last edited by

                                      @scottalanmiller said in Dumb question - linux dd write 0s to multiples disks at once:

                                      What is the result of this command..

                                      echo $0
                                      

                                      Not at the office, so I don't know

                                      1 Reply Last reply Reply Quote 0
                                      • black3dynamiteB
                                        black3dynamite
                                        last edited by

                                        https://unix.stackexchange.com/revisions/284489/1

                                        dd if=/dev/zero | tee >(dd of=/dev/sdb) >(dd of=/dev/sdc) | dd of=/dev/sdd
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • ObsolesceO
                                          Obsolesce @DustinB3403
                                          last edited by

                                          @dustinb3403 said in Dumb question - linux dd write 0s to multiples disks at once:

                                          Is it possible to use linux DD to write 0's to multiple disks at once?

                                          The goal would be to wipe 4 drives at once.

                                          What if you create a SW RAID 10 with them quick, then write zeros?

                                          scottalanmillerS 1 Reply Last reply Reply Quote 1
                                          • A
                                            Alex Sage
                                            last edited by

                                            Does writing zeros to an SSD drive affect the drive life?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post