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

Re: Knoppix & Swap





Have you verified via `free -m` if the swap partition wasn't even mounted?

I don't think it is:

root@stargazer:~# free -m
            total       used       free     shared    buffers     cached
Mem:           249        188         60          0         32        129
-/+ buffers/cache:         26        222
Swap:            0          0          0
root@stargazer:~#


An fdisk utility would see if the swap partition exists.

Here is what I get:

 Disk /dev/hda: 20.4 GB, 20491075584 bytes
 240 heads, 63 sectors/track, 2646 cylinders
 Units = cylinders of 15120 * 512 = 7741440 bytes

    Device Boot      Start         End      Blocks   Id  System
 /dev/hda1               1        2325    17576968+  83  Linux
 /dev/hda2            2326        2646     2426760   82  Linux swap

man 8 swapon.

Add an fstab entry to automatically mount it everytime your machine
boots up, e.g.:
/dev/hda5 swap swap defaults 0 0

OK I have added this:

 # Added by me
 /dev/hda2       swap    swap    defaults    0       0

And then I do:

 root@stargazer:/home/jhiver# swapon -a
 swapon: /dev/hda2: Argument invalide

Any ideas?

Cheers,
Jean-Michel.



Reply to: