Skip to content

Instantly share code, notes, and snippets.

@TheLastCicada
Last active April 30, 2022 14:54
Show Gist options
  • Save TheLastCicada/66ac0c7d2e99881bf9c76e3a8e645fd3 to your computer and use it in GitHub Desktop.
Save TheLastCicada/66ac0c7d2e99881bf9c76e3a8e645fd3 to your computer and use it in GitHub Desktop.
Preparing Hard Drives for Chia
Maybe this is a good way to do it, maybe it isn't - this is my current method.
### List all drives and partitions
`fdisk -l`
### Delete partitions
`gdisk /dev/sdX`
`d`
`1`
`d` (do d until all partitions are deleted)
### Create new partitions
`gdisk /dev/sdX`
`n`
`1`
(accept defaults for the rest)
`w`
### Format with ext4
`mkfs.ext4 /dev/sdX1`
### Get rid of reserved space
`tune2fs -m0 /dev/partition`
### Create mount point
`mkdir -p /plots/USBXTB-Y`
### Find blkid of drive
`blkid`
### Add to fstab
# XTB SATA USB Y
UUID=xxxxxxxx-0b60-4f80-ac38-1c287eba87e8 /plots/USBXTB-Y ext4 noatime,data=writeback,nofail,nofail 0 0
### Create plots and tmp directories
`mkdir -p /plots/USBXTB-Y/chia-plots/tmp1`
`mkdir -p /plots/USBXTB-Y/chia-plots/tmp2`
`mkdir -p /plots/USBXTB-Y/chia-plots/final_plots`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment