xiaolhat 发表于 2003-7-8 09:41:58

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

请问在red hat的安装过程中如何建立交换分区啊
如果安装好后又如何建立呢 :wink::?
:

mozilla 发表于 2003-7-8 09:46:42

用pq

huangdi 发表于 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.
页: [1]
查看完整版本: red hat!求助求助求助求助求助求助