【原创】linux交换空间管理--交换分区

本文介绍了如何在FC6系统中通过交换分区增加100MB的交换空间。步骤包括查看硬盘空间、创建新的交换分区、格式化分区、激活交换空间以及将其配置为自动加载。
摘要由CSDN通过智能技术生成

要求:以交换分区的方式给系统增加100MB的交换空间

操作系统:FC6

//查看当前系统硬盘空间的使用情况 

[root@localhost ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         255     2048256    7  HPFS/NTFS
/dev/hda2             256        1044     6337642+   f  W95 Ext'd (LBA)
/dev/hda5             256         766     4104544+  83  Linux
/dev/hda6             767         829      506016   82  Linux swap / Solaris

//创建一个交换分区,命名为/hda7(具体命名视实际情况而定)

[root@localhost ~]# fdisk /dev/hda

The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值