Other Help Topics :: swap gone?coul



During my installation of dsl a couple of months ago, I made two primary partitions on a completely cleaned hdu:
- /dev/hda1 - linux swap
- /dev/hda3 - linux ext2

Never a problem, until this morning: during boot I was notified it might be a good idea to create a swap-file on an empty dos-partition...
As the box doesn't have a dos-partition this 'offer' couldn't complete.

I am flabbergastered as to what happened. Does anyone have any idea what might have happened here? And how to solve this?

Thank,

Ton

I can tell you that to "prep" the swap partition you need:
"mkswap /dev/hda1"
And to activate the swap you need:
"swapon /dev/hda1"

So to find the 2nd command just grep your root for it, it will take a while but should work...

If you can't find were it supposed to be, just do the easy solution and throw the 2nd command to wherever script you feel comfortable with playing around that is part of the init\rc process, as long as you have about 16-32ram and the script runs before X, you should be fine...

Thanks.

In the meantime I tried this:

I placed
Code Sample
mount /mnt/hda1
swapon /mnt/hda1/knoppix.swp

in /opt/bootlocal.sh

What's the difference with what you advised?

using .swp is a swapfile for dos formats... win9x style.

His advice requires that your partition be linux swap (type 82).

I don't think it really matters.

Quote
Never a problem, until this morning: during boot I was notified it might be a good idea to create a swap-file on an empty dos-partition...
As the box doesn't have a dos-partition this 'offer' couldn't complete.
Where did this show up - maybe you made that partition a win95 partition but wasn't formatted.

Isn't a swap partition faster than a swap file on a file system (one less level to go through)? If you make a swap partition you can add this to /etc/fstab which should enable swap on boot:
/dev/hda1   swap   swap   defaults   0 0

Next Page...
original here.