Advertisement
zombah

zero mbr sgdisk

Mar 2nd, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. # dd if=/dev/urandom of=/dev/mmcblk1 bs=512 count=1
  2. 1+0 records in
  3. 1+0 records out
  4. # sgdisk
  5. Usage: sgdisk [-CDeEfFgGLopPsvVzZ?]
  6. [-A|--attributes=list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]]
  7. [-a|--set-alignment=value] [-b|--backup=file]
  8. [-c|--change-name=partnum:name] [-C|--recompute-chs]
  9. [-d|--delete=partnum] [-D|--display-alignment]
  10. [-e|--move-second-header] [-E|--end-of-largest]
  11. [-f|--first-in-largest] [-F|--first-aligned-in-largest]
  12. [-g|--mbrtogpt] [-G|--randomize-guids]
  13. [-h|--hybrid=partnum[:partnum...]] [-i|--info=partnum]
  14. [-l|--load-backup=file] [-L|--list-types]
  15. [-m|--gpttombr=partnum[:partnum...]] [-n|--new=partnum:start:end]
  16. [-N|--largest-new=partnum] [-o|--clear] [-p|--print] [-P|--pretend]
  17. [-r|--transpose=partnum:partnum] [-R|--replicate=device_filename]
  18. [-s|--sort] [-S|--resize-table=numparts]
  19. [-t|--typecode=partnum:{hexcode|GUID}] [-T|--transform-bsd=partnum]
  20. [-u|--partition-guid=partnum:guid] [-U|--disk-guid=guid]
  21. [-v|--verify] [-V|--version] [-z|--zap] [-Z|--zap-all] [-?|--help]
  22. [--usage] [OPTION...] <device>
  23. # sgdisk -p /dev/mmcblk1
  24. Found valid GPT with corrupt MBR; using GPT and will write new
  25. protective MBR on save.
  26. Disk /dev/mmcblk1: 15515648 sectors, 7.4 GiB
  27. Logical sector size: 512 bytes
  28. Disk identifier (GUID): 87D013CD-A720-4C48-8935-9C3D144F4A6A
  29. Partition table holds up to 128 entries
  30. First usable sector is 34, last usable sector is 15515614
  31. Partitions will be aligned on 2048-sector boundaries
  32. Total free space is 15515581 sectors (7.4 GiB)
  33.  
  34. Number Start (sector) End (sector) Size Code Name
  35. #
  36. # sgdisk -og /dev/mmcblk1
  37. Found valid GPT with corrupt MBR; using GPT and will write new
  38. protective MBR on save.
  39. [ 255.361942] mmcblk1: p1() p2(LNX) p3(MBR)
  40. The operation has completed successfully.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement