The system disk is ext4.
The data disk must be formatted with ext3 and mkfs. ext3/dev/xvdb1.
Use in fstab
/Dev/xvdb1/srv ext3 defaults 1 1
/Dev/xvdb2/home ext3 defaults 1 1
Previously, ext4 was used for formatting and 1 2 was written in fstab for mounting. As a result, the system cannot be started until it is started.
View remaining disk space
DF
Usage: DF [Option]... [file]... displays information about the file system where each <File> is located. By default, all file systems are displayed.
Parameters required for long options are also required when short options are used.
-A, -- all includes a file system with a size of 0 blocks.
-B, -- block-size = size block, in bytes of the specified <size>
-H, -- human-readable print the file system size in an easy-to-understand format (for example, 1 K 234 M 2g)
-H, -- Si is similar to-h, but takes the power of 1000 instead of 1024.
-I, -- inodes: displays inode information instead of block usage.
-K is -- block-size = 1 K
-L, -- local only displays the local file system
-- No-Sync: No synchronization action is performed before the data used is obtained (default)
-P, -- portability use POSIX-compatible output format
-- Sync synchronize data before obtaining the used data
-T, -- type = type: only information of the specified file system specified <type> is printed.
-T, -- print-type indicates the file system type.
-X, -- exclude-type = type: only the file system is printed, not the specified <type> Information
-V (ignore)
-- Help: displays the help information and leaves
-- Version: displays the version information and leaves.
Other usefulArticle:
Http://www.cnblogs.com/xiaofengkang/archive/2011/07/02/2096550.html
Http://hi.baidu.com/love100/item/f2fe98ba4bf58aacebba937a