Install Emacs
sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs
emacs
// Quit
sudo chown -R ubuntu ~/.emacs.d
Add SSH keys for access, put #name
as a hint towards which key is which
emacs ~/.ssh/authorized_keys
sudo emacs /etc/sysctl.conf
fs.file-max=512000
// save
sudo reboot
lsblk
// You will get the volume name appearing as something like nvme1n1
sudo file -s /dev/nvme1n1
// should show "/dev/nvme1n1: data" meaning empty
sudo mkfs -t ext4 /dev/nvme1n1
// This may take a second
sudo mkdir /blockchain
sudo mount /dev/nvme1n1 /blockchain/
cd /blockchain
df -h .
// should show available space in the volume
sudo cp /etc/fstab /etc/fstab.bak
// copy fstab before editing
sudo emacs /etc/fstab
// Create entry:
/dev/nvme1n1 /blockchain ext4 defaults,nofail 0 0
// Save, test entry
sudo mount -a
// should show no errors
sudo chown `whoami` /blockchain
// taken ownership of the volume