Device Boot Start End Blocks Id System /dev/sda1 * 1 1913 15360000 83 Linux /dev/sda2 1913 1978 524288 82 Linux swap / Solaris q退出 这里可以看到交换分区的信息,如果用df是看不到交换分区的信息的。关于fdisk这个分区命令的使用,后面还会详细介绍。
-o [^]mount-option[,...] Set or clear the indicated default mount options in the filesystem. 设置或清除默认挂载的文件系统选项 tune2fs -o ^acl /dev/sda1清除acl属性 tune2fs -o +acl /dev/sda1