Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

What are the sizes of the following swap partitions?

root@pc:~# swapon -s -v
Filename                                Type            Size    Used    Priority
/dev/sda5                               partition       4192252 0       -1
/dev/sdc1                               partition       3156736 0       -2
/dev/sdb1                               partition       4194300 0       -3

What does size mean? Is it 4k blocks? Or 512byte blocks?

share|improve this question
up vote 1 down vote accepted

It looks like you got 3 swap partitions. to answer your question, you can type these commands:

fdisk -l /dev/sda5
fdisk -l /dev/sdc1
fdisk -l /dev/sdb1

learn more about Linux swap here

share|improve this answer

The sizes are in kilobytes since swapon -s is equivalent to cat /proc/swaps.

If you want to see the combined swap space use free. It can sum and convert to, for example, megabytes: free -m.

share|improve this answer

It is in kilobytes. 1,024 byte units.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .