Created
June 29, 2017 14:19
-
-
Save Freccia/750ed5850c2d6016cc9792a8f2cd60c5 to your computer and use it in GitHub Desktop.
Hexdump firsts blocks of drive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DRIVE="/dev/disk2" | |
BLOCK_SIZE="512" | |
N_BLOCKS="100" | |
dd if=$DRIVE bs=$BLOCK_SIZE count=$N_BLOCKS | hexdump -C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment