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
 

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

reply to topic new topic new poll
Topic: swap file still won't initalize, I can dd but I'm not sure that's OK< Next Oldest | Next Newest >
adamsjw2 Offline





Group: Members
Posts: 17
Joined: Jan. 2004
Posted: Jan. 18 2004,02:10 QUOTE

Hi all,
I've set up my swap file with CFDISK to be 250meg, Type 82.
In the fstab I have  /dev/hda2   none     swap   0   0, but the swap file still isn't working. I've checked this with TOP and with the swap file monitor in the slit.

I found the following on the internet:

dd if=/dev/zero of=/swapfile bs=1M count-100 && chmod 600 /swapfile $$ mkswap /swapfile

I take out my swap file entry in the fstab and substitute
/swapfile  none swap swap defaults 0  0

When I reboot the swap file now works, but it doesn't show the 250 meg of the /hda2  partition, but 102209.

First, what do I have to do with get the swapfile to work with my original entry  /dev/hda2  none .......etc;

Second what is the dd command doing? How should I change it to use the 250meg partition, if this is the only way to get the swap file on?

Other than that, DSL rocks. Now I'm trying to get dpkg to work so I can install the debian-specific linux driver for my Conexant linmodem---but that will be in another post.
TIA,
Jim
Maysville KY USA
Back to top
Profile PM 
adamsjw2 Offline





Group: Members
Posts: 17
Joined: Jan. 2004
Posted: Jan. 18 2004,02:11 QUOTE

Oops......I have DSL installed on my hd.
Jim
Back to top
Profile PM 
John Offline





Group: Super Administrators
Posts: 697
Joined: Sep. 2003
Posted: Jan. 18 2004,04:03 QUOTE

Adamsjw2, you really don't want swap on compact flash, swap will kill a flash card rather quick.  If you are working with flash consider upping the ram instead.
Back to top
Profile PM 
adamsjw2 Offline





Group: Members
Posts: 17
Joined: Jan. 2004
Posted: Jan. 18 2004,18:33 QUOTE

Hi John, thanks for your quick and helpful response.
I'm not using compact flash, but dedicated partition on my hard drive. Rather than using dd, I tried
mkswap -c /dev/hda2
swapon /dev/hda2
swapon -s
That appears to have worked as well. Maybe I was working under the misconception that after I created a swap file with cfdisk, that DSL would automatically format it and use it after after hd-install.
Back to top
Profile PM 
3 replies since Jan. 18 2004,02:10 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: swap file still won't initalize

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