linux 交换分区修改,linux swap分区修改的2种方式

原帖子写的很好,我把步骤给贴出来,测试系统:rhel6.4 x641.新建磁盘分区作为swap分区[root@localhost /]# free -m //查看当前swap信息total used free shared buffers cachedMem: 1878 348 1530 ...
摘要由CSDN通过智能技术生成

原帖子写的很好,我把步骤给贴出来,测试系统:rhel6.4 x64

1.新建磁盘分区作为swap分区

[root@localhost /]# free -m  //查看当前swap信息

total       used       free     shared    buffers     cached

Mem:          1878        348       1530          0         19        156

-/+ buffers/cache:        172       1706

Swap:         4031          0       4031

[root@localhost /]# swapoff -a      //停用swap空间

[root@localhost /]# free -m         //查看是否停用

total       used       free     shared    buffers     cached

Mem:          1878        345       1532          0         19        156

-/+ buffers/cache:        169       1709

Swap:            0          0          0

[root@localhost /]# fdisk /dev/sdb  //进入sdb硬盘中(sdb硬盘中有多余未使用的磁盘空间)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (co

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值