Bendihossan
February 11th, 2009, 09:21 PM
Hey all. Been looking for a solution to this but haven't found anything that has helped here or elsewhere.
My swap partition is not in use and for whatever reason I cnn't enable it. The OS seems to run fine without it. After running several processer-intensive application the swap still is left inactive. I've tried the following to no avail:
sudo swapon -a
sudo mkswap /dev/sda4
mkswap /dev/sda4 returns the following strange error:
Setting up swapspace version 1, size = 4038606 kB
no label, UUID=0eca6dc5-55eb-41df-8ae8-2974cbbe59c6
Also /etc/fstab contains the following line:
# /dev/sda4
UUID=d58bf1cb-d27a-487d-b337-056767fd5ad6none swap sw 0 0Also if this helps at all the free command returns the following:
total used free shared buffers cached
Mem: 2066024 1127408 938616 0 59892 581724
-/+ buffers/cache: 485792 1580232
Swap: 0 0 0
fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6503dd57
Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 83 Linux
/dev/sda2 * 1275 10383 73162752 6 FAT16
/dev/sda3 10383 18966 68945312+ 7 HPFS/NTFS
/dev/sda4 18967 19457 3943957+ 82 Linux swap / Solaris
Any help and progress made is greatly appreciated. :)
Ps. As an after thought: is it preferable to have a swap partition or file to use as swap space? It could also be possible to remove that partition and use a swap file instead if recommended? Thanks again!
My swap partition is not in use and for whatever reason I cnn't enable it. The OS seems to run fine without it. After running several processer-intensive application the swap still is left inactive. I've tried the following to no avail:
sudo swapon -a
sudo mkswap /dev/sda4
mkswap /dev/sda4 returns the following strange error:
Setting up swapspace version 1, size = 4038606 kB
no label, UUID=0eca6dc5-55eb-41df-8ae8-2974cbbe59c6
Also /etc/fstab contains the following line:
# /dev/sda4
UUID=d58bf1cb-d27a-487d-b337-056767fd5ad6none swap sw 0 0Also if this helps at all the free command returns the following:
total used free shared buffers cached
Mem: 2066024 1127408 938616 0 59892 581724
-/+ buffers/cache: 485792 1580232
Swap: 0 0 0
fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6503dd57
Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 83 Linux
/dev/sda2 * 1275 10383 73162752 6 FAT16
/dev/sda3 10383 18966 68945312+ 7 HPFS/NTFS
/dev/sda4 18967 19457 3943957+ 82 Linux swap / Solaris
Any help and progress made is greatly appreciated. :)
Ps. As an after thought: is it preferable to have a swap partition or file to use as swap space? It could also be possible to remove that partition and use a swap file instead if recommended? Thanks again!