diff --git a/contrib/partitioner/partitioner.py b/contrib/partitioner/partitioner.py index 60a7f17..a154013 100755 --- a/contrib/partitioner/partitioner.py +++ b/contrib/partitioner/partitioner.py @@ -102,8 +102,12 @@ def main(): # if .rekt exists or bitcoin directory doesnt exist if os.path.exists('/mnt/data/.rekt') or not os.path.exists('/mnt/data/bitcoin'): print('REKT file exists so lets format it') + # unmount before format + os.system('/bin/umount /mnt/data') print('Initializing filesystem') os.system('/sbin/mkfs.ext4 -F /dev/' + usb_partitions()[0]) + # remount + os.system('/bin/mount -t ext4 /dev/' + usb_partitions()[0] + ' /mnt/data') ''' Get Size of SDA and partition info '''