Skip to content

Instantly share code, notes, and snippets.

@philips
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philips/9339210 to your computer and use it in GitHub Desktop.
Save philips/9339210 to your computer and use it in GitHub Desktop.
How to destroy your disk or make it rw
rootfs=/dev/xvda3
ro_compat_offset=$((0x464 + 3))
printf '\000' | sudo dd of="${rootfs}" seek=$((offset + ro_compat_offset)) \
conv=notrunc count=1 bs=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment