Daehyun
1/20/2019 - 8:10 AM

Create a sparse file and format it as ext4

#!/bin/bash
truncate -s 1T path/to/block
mkfs -t ext4 path/to/block
mount -t ext4 path/to/block path/to/mountpoint