创建swap文件系统: mkswap命令: mkswap - set up a Linux swap area mkswap [options] device 常用选项: -f, --force:强制执行; -L LABEL:设置交换分区的卷标; -U UUID:指定交换分区的UUID,建议让系统自动生成;
完成挂载操作,使用mount命令; mount命令: mount - mount a filesystem 格式: mount [-lhV] mount -a [-fFnrsvw] [-t vfstype] [-O optlist] mount [-fnrsvw] [-o option[,option]...] device|dir mount [-fnrsvw] [-t vfstype] [-o options] device dir