Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
Created September 30, 2017 01:53
Show Gist options
  • Save xiaoysh8/f232d5415381485721e5b4f1796ddb42 to your computer and use it in GitHub Desktop.
Save xiaoysh8/f232d5415381485721e5b4f1796ddb42 to your computer and use it in GitHub Desktop.
format and mount hd
##format and mount HD
###check if there are HD
fdisk -l
###partition
fdisk /dev/vdb
###format
mkfs.ext3 /dev/vdb1
###mount
mount /dev/vdb1 /mounted directory
###boot auto mount
echo '/dev/vdb1 /mounted directory ext3 defaults 0 0' >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment