Skip to content

Instantly share code, notes, and snippets.

@chendo
Created August 8, 2018 09:47
Show Gist options
  • Save chendo/59c2bfd56c7416b438108641a8630066 to your computer and use it in GitHub Desktop.
Save chendo/59c2bfd56c7416b438108641a8630066 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -e /dev/nvme1n1 ]
then
sudo /etc/init.d/docker stop
sudo mkfs.ext4 /dev/nvme1n1
sudo mount /dev/nvme1n1 /var/lib/docker
sudo /etc/init.d/docker start
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment