From 012c4e225cf13b3014abebd57a1e8fe36695a118 Mon Sep 17 00:00:00 2001 From: cimryan Date: Sun, 14 Oct 2018 22:21:16 -0700 Subject: [PATCH] Create the file system after creating the partition for the backing files If there already happened to be a filesystem there is must be overwritten. --- windows_archive/create-backingfiles-partition.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows_archive/create-backingfiles-partition.sh b/windows_archive/create-backingfiles-partition.sh index ebdb198..0fa45c8 100644 --- a/windows_archive/create-backingfiles-partition.sh +++ b/windows_archive/create-backingfiles-partition.sh @@ -10,4 +10,6 @@ FIRST_BACKINGFILES_PARTITION_SECTOR=$(( $LAST_ROOT_PARTITION_SECTOR + 1 )) parted -m /dev/mmcblk0 u s mkpart primary ext4 "$FIRST_BACKINGFILES_PARTITION_SECTOR" 100% -echo "/dev/mmcblk0p3 $BACKINGFILES_MOUNTPOINT ext4 auto,rw,noatime 0 2" >> /etc/fstab \ No newline at end of file +mkfs.ext4 -F /dev/mmcblk0p3 + +echo "/dev/mmcblk0p3 $BACKINGFILES_MOUNTPOINT ext4 auto,rw,noatime 0 2" >> /etc/fstab