Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to define swap (8G usage) on disk partition: /dev/cciss/c0d0p6 ( i have Linux red hat 5.3)

for example:
in my machine I not have swap definition 

Swap:            0          0          0

the target is to create the following swap:
swapon -s 

Filename                                Type            Size    Used    Priority
/dev/cciss/c0d0p6                       partition       8385888 0       -1
share|improve this question
up vote 1 down vote accepted
mkswap /dev/cciss/c0d0p6
echo '/dev/cciss/c0d0p6 none swap sw 0 0' >> /etc/fstab
swapon -a
share|improve this answer
please fix to /etc/fstab – klod Mar 11 '11 at 15:02
@klod: Thanks, fixed! – Teddy Mar 14 '11 at 18:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.