Solved 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.
-
@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 linedd if=/dev/zero of=/dev/sda bs=4k; dd if=dev/zero of=/dev/sdb bs=4k
-
Obviously so I can use these same drives in my other topic regarding RAID.
-
/dev/sdb /dev/sdc /dev/sdd /dev/sde
are the disk that I'd love to just zero out quickly. -
With a single command, no. But you can run several commands 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?
-
I'm at a CLI from a bootable USB, just trying to clear the /dev/sdb1 etc from these repurpose drives quickly so I can move on with creating an OBR10.
-
If this is a one time thing, just open several shells and copy/paste the command and kick it off, one disk in each shell tab.
-
So just ctlr alt f2 multiple times and than the dd command for each disk?
-
That seems like it should work, Let me test a bit.
-
@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.
-
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.
-
@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.
-
@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
-
Bash command not found
Is that not an option with pre installation using a bootable USB?
-
@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 linedd if=/dev/zero of=/dev/sda bs=4k; dd if=dev/zero of=/dev/sdb bs=4k
-
@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 lineas
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?
-
@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 lineas
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
-
It works!
Now just to go home and drink and come back to this Monday.
Thanks guys!
-
@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 lineas
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.
-
@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