Skip to content

Instantly share code, notes, and snippets.

@virullius
Last active March 23, 2016 14:23
Show Gist options
  • Save virullius/caf64ac21df96c659576 to your computer and use it in GitHub Desktop.
Save virullius/caf64ac21df96c659576 to your computer and use it in GitHub Desktop.
view MBR
# view MBR with partition table
sudo dd if=/dev/sda bs=512 count=1 | hexdump -C
# backup MBR without partition table
sudo dd if=/dev/sda of=mbr.backup bs=446 count=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment