Tag Info

New answers tagged

0

You can get OpenSSL to encrypt /dev/zero with a randomized password, giving decent pseudorandom data very fast (if your CPU supports accelerating it). openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | dd of=/dev/sda You could pipe this through pv to get progress/ETA. The command I'm ...


0

The actual definition may have been a joke, keyboard shorthand, or obscure reference. Wikipedia has this: The name dd may be an allusion to the DD statement found in IBM's Job Control Language (JCL),[3] where the initials stand for "Data Description."[4] The command's syntax resembles the JCL statement more than it does other Unix commands, so the ...


1

You want to delete a partition based on its label ? What if you have two or more partitions with the same label ? You can delete a partition with parted in command line mode (non-interactive) but it won't take partition label as an argument. You have to invoke parted with a device name as argument and pass the partition number to rm command: parted $device ...


2

Loop devices have some pitfalls. Many operations are not instant, for example, when you losetup -d the loop device will be kept alive until it is no longer in use. Devices can be in use even if you're not aware of it, due to background processes scanning devices for uuids and other things. Maybe you should leave the choice of loop device to losetup by using ...



Top 50 recent answers are included