Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Swap Problem

Status
Not open for further replies.

danhodges99

IS-IT--Management
Feb 6, 2003
21
GB
Hey all,

We have a small desktop PC running RedHat 8. This works fine, but we had major performance probs due to swap being on the same HD. We added a second HD, and would like to put swap on this disk only, but can't find an option in the RedHat OS to specify where to put a swap area. Does anybody know a command/way to do this?

Thanks.
 

1. Use 'fdisk' to create a partition with ID 82
2. Run 'mkswap <partition'
3. Run 'swapon <partition>'

And you're done.

To start this up on future reboots add a line to fstab:

/dev/<parttition> none swap defaults 0 0 # (From memory)

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top