search for: start4kblock

Displaying 2 results from an estimated 2 matches for "start4kblock".

2020 Sep 14
0
erasing a disk
...thing like > -erase first N blocks (block defined as 4096) > - Erase <number> blocks starting at block <number> > - erase last <number> blocks Use dd in a script: #!/bin/bash # erase N 4K blocks starting at M # (M=0 means from the start of the disk) # usage: $0 start4Kblock numberof4Kblocks drive M = $1 N = $2 rawdisk = $3 dd if=/dev/zero bs=4096 oflag=direct count=$N seek=$M of=$rawdisk > At least such an algorithm would be quicker than erasing 8 TB of data. > > David > > _______________________________________________ > CentOS mailing list >...
2020 Sep 14
6
erasing a disk
Folks I've encountered situations where I want to reuse a hard-drive. I do not want to preserve anything on the drive, and I'm not concerned about 'securely erasing' old content. I just want to be able to define it as an Physical Volume (in a logical volume set), or make it a ZFS disk, or sometimes make it a simple EXT3, ExFAT or NTFS disk. However, old