apt install partedlsblkthese commnads are using "sdb" just for the example
parted -a opt /dev/sdb
mklabel gpt
mkpart primary 0% 100%
quit
mkfs.ext4 -L labelname /dev/sdb1
lsblk -f to get the UUID for an fstab entrymount -ae2label /dev/sdb1 newLabelarg1 and arg2 are optional
curl -s http://server/path/script.sh | bash -s arg1 arg2
cant edit files in emergency mode
mount -o remount,rw / --target /, now / should be mounted with read/write permissions making it possible to edit files againufw creating un-wanted ipv6 rules
edit the file /etc/default/ufw and near the top of the file you should see "IPV6=yes" change the value to no, save and exit the file