Skip to content

Instantly share code, notes, and snippets.

@Hodgegoblin
Last active June 29, 2018 14:17
Show Gist options
  • Save Hodgegoblin/f6eb693cbd752b7dde9beeb98ca13688 to your computer and use it in GitHub Desktop.
Save Hodgegoblin/f6eb693cbd752b7dde9beeb98ca13688 to your computer and use it in GitHub Desktop.
dd bs=4M if=./plotfilename | dc3dd of=/path/to/file/plotfilename
du -sb ./plotfilename
dd bs=4M iflag=fullblock if=./plotfilename | pv -s <size like 10G> | dd bs=4M oflag=direct of=/path/to/file/plotfilename
mkfs.ext4 -O ^has_journal -m 0 -L <label> <device>
#Disable journal
tune2fs -O ^has_journal /dev/sdX
#Disable reserved blocks for root (gives you 5% more disk space):
tune2fs -m 0 /dev/sdX
#clean
fsck /dev/sdX
#mount options
UUID=<UUID> <mount-point> ext4 defaults,x-gvfs-show,noatime,nodiratime,nobarrier 0 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment