Hi, I recently added the system monitor applet to one of my panels and realised that the swap space is never used. I read the Swap FAQ in the community documentation but couldn't solve the problem.
andres@andres-laptop:~$ cat /proc/sys/vm/swappiness
60
(some appications open)
andres@andres-laptop:~$ free
total used free shared buffers cached
Mem: 3018928 1234988 1783940 0 32364 387884
-/+ buffers/cache: 814740 2204188
Swap: 0 0 0
(many applications open)
andres@andres-laptop:~$ free
total used free shared buffers cached
Mem: 3018928 2994644 24284 0 7408 341180
-/+ buffers/cache: 2646056 372872
Swap: 0 0 0
andres@andres-laptop:~$ sudo fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc17b6006
Device Boot Start End Blocks Id System
/dev/sda1 1 1275 10240000 27 Unknown
/dev/sda2 * 1275 8924 61439996 7 HPFS/NTFS
/dev/sda3 8925 30401 172514002+ 5 Extended
/dev/sda5 8925 9653 5855661 82 Linux swap / Solaris
/dev/sda6 9654 30401 166658278+ 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4db9b9e8
Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976760536 7 HPFS/NTFS
andres@andres-laptop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda6
UUID=e154ab05-4256-43fe-ba99-47f94b7f32b7 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=b3790e73-7855-4797-862f-ad8b8a30dcfd none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
andres@andres-laptop:~$ sudo swapoff -a
andres@andres-laptop:~$ sudo /sbin/mkswap /dev/sda5
Setting up swapspace version 1, size = 5855656 KiB
no label, UUID=5372e6d3-3e16-4fdf-9902-4eb4fbe3b3d5
andres@andres-laptop:~$ sudo swapon -a
swapon: cannot find the device for UUID=b3790e73-7855-4797-862f-ad8b8a30dcfd
I guess the last line says sums up the problem.
Any help would be very appreciated.
Bookmarks