Skip to content

Instantly share code, notes, and snippets.

@thiagomgo
Created November 14, 2016 12:45
Show Gist options
  • Save thiagomgo/273bf9c2181e8b4c324bf33c8d8d2d90 to your computer and use it in GitHub Desktop.
Save thiagomgo/273bf9c2181e8b4c324bf33c8d8d2d90 to your computer and use it in GitHub Desktop.
Script to re-write the device blocks to the appropriate size.
#/bin/bash
# Issue: Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
#
DEVICE_USB=/dev/sdb
sudo dd if=/dev/zero of=$DEVICE_USB bs=2048 count=32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment