windows file system: NTFS, FAT32
Linux file system xfs (centos7), ext4 (centos6 ), ext3, ext2
centos7 view the current system supports file systems
the mount command to
view the existing disk partitions mounted file system
Formatting commands
The default format command mke2fs ext2
mke2fs -b 2048 -t ext4
mkfs.ext4
mke2fs parameters:
mke2fs -b 8192 / dev / sdb1 # 8K blocks, suitable for storing video, pictures;
mke2fs -b 2048 / dev / sdb1 # 2K pieces, adapted to store a large number of small files;
-m reserved space, reserved for Super User the
the mke2fs 0.1 -m / dev / sdb1 # 0.1 may be reserved only;
ratio inode block ratio is about 14, i.e. corresponding to an inode space 16k (default blocks 4k) If you want more inode, with the following command, so that a space corresponding to the inode of 8k
du see the actual size of the file
blkid / dev / sdb1 review unmounted formatted partition file system (not view the mount is not mounted)
mount / dev / SDB / mnt / SDB # / mnt / SDB is the mount point, mount points read by the partition
umount / dev / sdb umount / mnt / sdb unload mount Note: to exit mount the directory / mnt mount point to uninstall, or use the -l option
The default mount mount command options:
RW can read and write
suid be provided suid
dev /
Exec run
auto automatically mount
nouser normal user can not mount the
async asynchronous (delay written to disk)
other parameters and commands to mount example:
mount - o rw / dev / sdb # reader;
Mount -o RO / dev / SDB # readonly;
Mount the remount -o / dev / SDB # remount;
Mount the remount -o, RO / dev / SDB
The system automatically mount
configuration file / etc / fstab
uuid representatives disk partition device number is the only, followed by file format, defaults are mounted mode (the default), 0 represents whether the dump (do not currently use, namely 0 be), 0 representing whether the detection (0 is not detected, a detection for the root file system, the file system 2 used for other detection)
can be mounted UUID
dd if = / dev / zero of = / tmp / newswap bs = 1M count = 100 #dd for copying files from / dev / zero zero copied to / tmp / newdisk (block size of 1M, number 100)
the mkswap -f / tmp / newswap # format;
the swapon / tmp / newswap # hanging the swap load;
swapoff / tmp / unloading newswap #