linux交换分区
来源:互联网 发布:数据库的报表 编辑:程序博客网 时间:2024/06/08 02:53
--1.新建分区swap格式#fdisk –l #fdisk /dev/hdb Command ( m for help):n //创建新的分区 Command action E extend P primary partition(1-4) P //分区类型为主分区 Partition number(1-4):1 First cylinder (1-2080,default 1): Using default value 1 Last cylinder or + size or +sizeM or +sizeK(1-2080,default 2080): Using default value 2080 Command(m for help):t //更改分区格式 Selected partition 1 Hex code (type L to list codes):82 //Linux swap 的16进制编码为82 Command(m for help):p Disk /dev/hab:1073 MB,1073479680 bytes 16 heads,63 sectors/track,2080 cylinders Units = culinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 2080 1048288+ 82 Linux swap Command(m for help):wq //保存分区的信息--2.使用mkswap命令设置交换分区 命令为: #mkswap /dev/hdb1 //将分区格式化为交换分区格式 Setting up swapspace version 1, size = 1073442 kB --3.启动(swapon)交换分区 #swapon /dev/hdb1 //启用交换分区 --4.编辑/etc/fstab文件,使交换分区在引导时启用 编辑后的fstab文件关于交换分区的内容为: /deb/hdb1 swap swap defaults 0 0 这样,我们已经创建了一个新的交换分区。重新启动系统,验证交换分区添加是否正确。
0 0
- 【Linux交换分区】 交换分区格式浅析
- linux 添加交换分区
- 管理Linux交换分区
- linux交换分区回收
- Linux 交换分区
- Linux管理交换分区
- Linux添加交换分区
- Linux增加交换分区
- Linux交换分区
- linux增大交换分区
- 设置Linux交换分区
- linux交换分区
- Linux 交换分区
- Linux 交换分区
- Linux 增加交换分区
- linux 交换分区 swap
- linux 设置交换分区
- linux 交换分区
- Unity AssetBundles 使用指南
- Primitive Roots(Poj1284)(欧拉函数+原根)
- Linux权限——用户权限修改
- Python:浅拷贝与深拷贝copy.deepcopy()
- Android Studio 一 安装
- linux交换分区
- sass安装
- 【杭电oj】2028-Lowest Common Multiple Plus(最小公倍数)(水)
- iOS---通知传值的使用
- java中的数组
- 01背包
- 第十六周实践—归并排序算法的改进
- php中的魔术方法
- oracle--1