[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No Swap



Curtis Vaughan wrote:

> Can someone help me figure out why I don't seem to be using the swap
> partition.
>
> Here is an output of fdisk -l
>
> Disk /dev/hda: 10.0 GB, 10056130560 bytes
> 16 heads, 63 sectors/track, 19485 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1       18617     9382936+  83  Linux
> /dev/hda2           18618       19485      437472    5  Extended
> /dev/hda5           18618       19485      437440+  82  Linux swap /
> Solaris
>
> Actually, I had it previous set such that hda2 was teh swap and there
> were no other partitions. But this also didn't work.
>
> And here is an output of fstab
>
> proc            /proc           proc    defaults        0       0
> /dev/hda1       /               ext3    defaults,errors=remount-ro
> 0       1
> /dev/hda5       none            swap    sw              0       0
> /dev/hdc        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
> /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
>
>
> Nonetheless, after a reboot top shows:
>
> top - 20:35:11 up 58 min,  3 users,  load average: 0.28, 0.18, 0.11
> Tasks:  91 total,   1 running,  89 sleeping,   0 stopped,   1 zombie
> Cpu(s):  5.9% us,  1.6% sy,  0.0% ni, 92.1% id,  0.0% wa,  0.3% hi,
> 0.Mem:    256728k total,   247288k used,     9440k free,     3864k buffer
> Swap:        0k total,        0k used,        0k free,    70400k cached
>
>
> Why?
> What can I do to get my swap partition being used as swap?
>
>
If "swapon -s" doesn't show any swap being used, I'd try:

mkswap /dev/hda5
swapon -a

-- 
Kent



Reply to: