Created
October 21, 2016 08:34
-
-
Save dungmanh88/16a65ae2c2eb6523d1794313176ecf75 to your computer and use it in GitHub Desktop.
Partitioning and Formatting a new 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
parted /dev/sdb | |
(parted) mklabel msdos | |
(parted) mkpart primary ext4 0% 100% | |
(parted) print | |
Partition Table: msdos | |
Number Start End Size Type File system Flags | |
1 1049kB 107GB 107GB primary ext4 | |
(parted) quit | |
vi /etc/fsta | |
/dev/sdb1 /data ext4 defaults 1 1 | |
mkfs.ext4 /dev/sdb1 | |
mount /dev/sdb1 /data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment