Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

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.