Common disk management tools
1. make2fs - ext series of file system management tool
- -t {ext2 | ext3 | ext4} specifies the file system type
- -b {1024 | 2048 | 4096} specify the file system block size
- -L specified volume label
- -j Create a log function with ext3
- -i bypte-per-inode the inode bytes specified ratio; and the number of bytes not create an inode
- -N directly specify how many inode creation
- -m specified percentage of space reserved for the root user
- -O holding of specified when creating the file system
2. tune2fs - ext modify certain properties
Block size can not be adjusted
-l listed in the superblock
Modify the properties:
-j will upgrade ext2 to ext3
-L modify the label
-m modify the percentage reserved for root
When the holding of the -O [^] mount options specify the file system is created
3. dumpe2fs Show Details ext file system
-h View superblock information
4. fsck manually perform file system detected
-t specifies the file system type (not specified)
-a no need of repair Interactive
-f interactive repair
5. blkid View UUID
The positioning device -L LABEL
The positioning device -U UUID
6. mount
mount [-rwn] [-t vfstype] [-o options] device dir
-r mount read-only
-w write mount
-N By default mount unloading operations will be synchronized to the / etc / mtab -n prohibited under this feature
When the volume label indicates the device mounted -L
-U in a manner specified device UUID
Mount the file system characteristics -o:
sync / async: synchronous / asynchronous
atime / noatime: Update / time stamp is not updated
diratime / dirnoatime directory update / non-update timestamp
remount remount
acl Access Control Lists
ro Tada读
rw read and write
Whether to allow the dev / nodev this device create a device file;
Whether files on exec / noexec equipment executable;
user / nouser whether to allow ordinary users to mount
suid / nosuid suid and sgid on whether to allow the entry into force of the program files
defaults: rw suid dev exec auto nouser async relatime
A tips
mount --bind source directory target directory
7. umount
lsof mount_point
fuser -km mount_point kill all processes of occupation
8. /etc/fstab
- Device file / UUID
- Mount points
- Mount Type
- Mount Options
- Dump frequency
- 0 never Backup
- 1 daily backups
- 2 every other day
- Self-test order
- 0 slatternly
- 1 First self-test, usually only the root file system
- 2 secondary self-test
- ...
- 9