dd command to clear the partition table directly under linux (no longer a one fdisk delete it)

Partition table is the hard disk partition information, to delete all of the hard disk partition table a lot of trouble, you need to delete one by one fdisk, in fact dd command to directly remove the partition information, of course, this method is left to seek death linux root user one.
dd command main parameters are as follows
  if = in file input file, the concept of application under linux document quite wide, usually ordinary disc image file or block device
  of = out file output files, typically ordinary disc image file or block device
  bs = buffer size cache size, you can think dd command reads an input file into the buffer (cache), then the contents of the buffer zone sucked into the output file. Bs = 1M generally be bs = 1KB or the like.
  count = read maximum number of input files. By default, dd to input commands directly to the end of the file to read the file is known, this parameter controls the size of the read.
  skip = skip the beginning of the file size. Default wrong to row to the beginning of the file to start reading.
Example:
  Save the current state of U disk as a file down.
  dd if = / dev / sdb of = / backup / ISO / Upan / save.iso
  partition information emptying U disk (use caution)
  dd = IF / dev / ZERO of = / dev / SDB. 1 BS = 512K = COUNT

Guess you like

Origin www.cnblogs.com/idyllcheung/p/11549893.html