Solved 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.
-
@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
-
@scottalanmiller but nohup from the live us isn't an option.
-
@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?
-
@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?
-
Centos 7
-
What is the result of this command..
echo $0
-
@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
-
https://unix.stackexchange.com/revisions/284489/1
dd if=/dev/zero | tee >(dd of=/dev/sdb) >(dd of=/dev/sdc) | dd of=/dev/sdd
-
@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?
-
Does writing zeros to an SSD drive affect the drive life?
-
No need to wipe all the disks. It's a waste of time.
- If you wanted to erase the partition table you don't have to erase the whole disk. Just the first / last bytes of the drive. Or just remove it with fdisk or parted.
- If you wanted to remove superblocks after an earlier md raid installation you wouldn't need to wipe the disk either. You do:
mdadm --zero-superblock /dev/sdX
You could also use
wipefs -a /dev/sdX
to remove just partition tables and raid signatures - if you have it installed.And as soon as you put together a raid-10 it will start synchronizing the disk and write the same zeros one more time.
If you really, really wanted to wipe the drive so no residual data where on them, wipe just what is needed to make a raid-10 array out of it. Then wipe the array with zeros, as a block device. It will save a lot of time. As the synchronization process will write the zeros for you on the other drives.
-
@obsolesce 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:
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?
That would be faster. Or RAID 1. Any RAID, actually.