Skip to content

Instantly share code, notes, and snippets.

@olegbliaher
Last active March 12, 2021 09:00
Show Gist options
  • Save olegbliaher/55dfee8f94bd151a4eea5a9ad33337ba to your computer and use it in GitHub Desktop.
Save olegbliaher/55dfee8f94bd151a4eea5a9ad33337ba to your computer and use it in GitHub Desktop.
creating and mounting ext4 disk
# This uses /var/lib/docker as an example.
zpool labelclear -f /dev/sdb1 # if device was a zpool earlier on
fdisk /dev/sdb
d
n
w
mkfs.ext4 /dev/sdb1
echo "/dev/sdb1 /var/lib/docker ext4 defaults 0 0" > /etc/fstab
mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment