Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: swap gone?coul, swap not found on boot< Next Oldest | Next Newest >
antonino Offline





Group: Members
Posts: 48
Joined: Sep. 2006
Posted: Nov. 10 2006,10:14 QUOTE

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
Back to top
Profile PM WEB 
Ramik Offline





Group: Members
Posts: 53
Joined: Nov. 2006
Posted: Nov. 10 2006,10:43 QUOTE

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...
Back to top
Profile PM 
antonino Offline





Group: Members
Posts: 48
Joined: Sep. 2006
Posted: Nov. 10 2006,14:27 QUOTE

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?
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 10 2006,15:26 QUOTE

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.
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: Nov. 10 2006,15:38 QUOTE

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
Back to top
Profile PM 
13 replies since Nov. 10 2006,10:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: swap gone?coul

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code