seems you missed
mkswap -c  /dev/hda2
before mounting your swap...
See more: man mkswap

mkswap [-c] [-vN] [-f] [-p PSZ] device [size]
.........
.........

Ray


Nick W wrote:


Ok, so in an old thread someone mentioned my out of memory problem was because I wasnt enabling swap. Ive been working on a boot disk [its an old machine no cd-boot] that allows me to do this. After many tries Im so very close but its being stupid. Heres the output from various commands...

[EMAIL PROTECTED] /dev/hda2
unable to find swap-space signature
swapon: /dev/hda2: invalid argument
//thats odd...so I take a longshot

//dont know if this is even feasable
[EMAIL PROTECTED] -t swap swap /dev/hda2
mount: unable to mount /dev/hda2: no such device
//interesting, so now I want to find where hda2 dissappeared to
//by the way swap is listed in fstab and is correct.
//but is not working on boot obviously

[EMAIL PROTECTED] -l /dev/hda2
brw-r-----  1     root   root     3,    2   Nov 20 2003   /dev/hda2

[EMAIL PROTECTED]
/dev/ram0 on / type ext2 (rw)
proc on /proc type proc (rw)
/dev/hda1 on /mnt/gen type ext2 (rw)
//note it sees hda1

[EMAIL PROTECTED] hda
//then I press p to list the partition table

Disk /dev/hda: 255 heads, 63 sectors, 527 cylinders
Units=cylinders of 16065 * 512 bytes

Device       Boot  Begin   Start   End  Blocks    ID    System
/dev/hda1           1          1        447  3590496 83    Linux Native
/dev/hda2           448      448    527  642600   82   Linux Swap

so as it stands, Im clueless...is there a mkswapfs command?

thanks,





_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to