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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file system swap

Status
Not open for further replies.

unixkid

IS-IT--Management
May 22, 2001
105
US
Cant get pass this error. No matter what text I give it. Just trying to add a 2gb swap file.

# dd if=/dev/zero of=swapfile1 bs=1024 count=2147483648
6171601+0 records in
6171600+0 records out

# mkswap swapfile1
mkswap: error: swap area needs to be at least 40kB
Usage: mkswap [-c] [-v0|-v1] [-pPAGESZ] /dev/name [blocks]

 
Any reason why you don't want a swap partition instead? If you do, run fdisk and create a 2Gb partition set to type 82, which is Linux swap. Then run "mkswap /dev/hda5", or whatever partition number the swap partition resides on.

Remember to add the new swap partition to the /etc/fstab file. I think you need to run the "swapon" command after you create the partition to actually start using it.

ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top