QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 434|回复: 2

red hat!求助求助求助求助求助求助

[复制链接]
发表于 2003-7-8 09:41:58 | 显示全部楼层 |阅读模式
请问在red hat的安装过程中如何建立交换分区啊
如果安装好后又如何建立呢   
:
发表于 2003-7-8 09:46:42 | 显示全部楼层
用pq
回复

使用道具 举报

发表于 2003-7-8 15:10:38 | 显示全部楼层
Why would you need additional swap area?

Anyway, there are a couple ways to do it.

1.  If you have an additional empty partition, you can do the following as root in single user mode.
#fdisk /dev/hda (assumming your hard drive is hda)
type "t" (to change partition type)
type "*" (where *=partition number for the empty partition)
type "82" (82 is the type number for swap partition)
type "w" (to save changes made)

#vi /etc/fstab (to edit fstab file)

add the following line to the /etc/fstab file
/dev/hd*        swap        swap        defaults        0 0
save the changes and exit vi.

#swapon -a


2.  Use mkswap on /dev/hd*
#mkswap /dev/hd*
edit /etc/fstab as above
#swapon -a

3.  Use mkswap to create a temporary swap file.  Do a man on mkswap.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-19 14:41 , Processed in 0.041672 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表