Last active
March 12, 2021 09:00
-
-
Save olegbliaher/55dfee8f94bd151a4eea5a9ad33337ba to your computer and use it in GitHub Desktop.
creating and mounting ext4 disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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