The file system is the basis for all folders and files, the disk is the basis of the file system, the file system is disk-based storage files.
One, the Linux file system type
1.ext Extended file system /ext2 level Two extended file system /ext3 journaled file System (default)
2.swap file system for Linux swap partitions, 2 times the size of physical memory
3.vfat is a generic term for the FAT file system under Linux for Windows Systems
4.NFS Network File system for file sharing over the network
5.ISO 9660 is a standard file system used by optical discs 6. log File system:ext3,reiserfs,JSF
6.proc is a pseudo file system in Linux system, as the interface of connecting kernel data structure
Second, hard disk partitioning and formatting
1.fdisk Disk Partitioning command
Common parameters: fdisk-l Viewing system disk device partitioning
fdisk device name
submenu:n Create a disk partition
D Delete a disk partition
W writes modifications to the disk partition table
2.du Statistics directory for disk usage : du [-A] directory name
3.DF to count unused disk space in a file system
Common parameters:DF Displays disk space usage for all mounted file systems
Df-a displaying information for all file systems
The Df-h is displayed in the most appropriate capacity unit
Df-i showing the number of nodes in a file inode usage
Df-l only shows the usage of the local file system
4.partprobe re-initializing partition table information for in-memory kernel
5.MKFS Format partition / Create file system
Common parameters:mkfs-t ext3/dev/sda2 formatted partition
mkfs. Ext3/dev/sda2
Mkfs-b ( chunk size ) 4096-i ( number of bytes for an i - node ) 8192/dev/sda2 Custom File system The size
6.TUNE2FS Adjusting File system parameters
7.edquota Editing disk quotas
Third, the disk file system mount and Uninstall
once the file system is established, it is also necessary to install the file system to a location in the Linux tree to be used, a process known as Mount, and the directory to which the file system is mounted is called a mount point. Releasing the mounted directory is called unloading.
1. Manually mount with commands
Mount Mount File System command:Mount [-t file system type ] [-o usage ] device name mount point (linux directory name)
such as:mount/dev/sda1/mnt/c
after the mount is complete,cd/mnt/c enters the mount point directory using this file system
2. Uninstall
Umount [ device name ] [ mount point directory ] Select one to uninstall
such as:umount/dev/sda1 or UMOUNT/MNT/C
Linux commands (v)--disk operations and file system management