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: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Swapp file blues, How to reuse the swappfile ?< Next Oldest | Next Newest >
wavetel Offline





Group: Members
Posts: 48
Joined: Mar. 2006
Posted: Nov. 09 2007,11:29 QUOTE

Ive been messing with DSL4.0 for a while now on an old laptop with 128Megs of ram. Its ok most of the time but a DOS swapp file helps. I notice on my other machines which sport multiple drives it detects my perminent linux swapp file on hdc every time on boot and uses it. However on the laptop I have 2 FAT32 drives. The bootable drive is hda1 and there is another smaller non bootable partition hda5 . If I get DSL4 to make a DOS swapp file it puts it on hda5 and runs with it ok. Next time I boot up DSL I have to delete the DOS swappfile and then make a new one yet again.

Why cant DSL see the existing DOS swapp file from last session and run with it? I cant find any boot cheat codes that would help either. If DSL can see and run with a Linux swapp file without being pushed then whats the problem with it grabbing and running with a DOS swapp?

Any ideas?
Back to top
Profile PM 
sheldonisaac Offline





Group: Members
Posts: 53
Joined: Dec. 2004
Posted: Nov. 09 2007,13:17 QUOTE

Quote

Any ideas?


Perhaps something like the folowing excerpt from my
/opt/bootlocal.sh

However, I am re-using the swapfile created by MS-Windows 98; still, maybe the startup code will work even though you create the swapfile another way.

Code Sample

mount -t msdos /dev/hdb5 /mnt/
mkswap -v1 /mnt/win386.swp
sync
swapon /mnt/win386.swp 2>/dev/null
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 09 2007,13:56 QUOTE

The DOS Swap File is a file and not a partition. That is why it is not automaticlly recognized. However, I have made a boot code to specify it's location or have it autoscaned. Just use the following:

dosswapfile=hda5

or

dosswapfile

The second option will cause DSL to autoscan for it.
Of course the boot option only works when you have used the mkdosswapfile as provided by DSL, i.e., file name is knoppix.swp


Edited by roberts on Nov. 09 2007,15:42
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 09 2007,15:37 QUOTE

Quote (sheldonisaac @ Nov. 09 2007,08:17)
Code Sample

mount -t msdos /dev/hdb5 /mnt/
mkswap -v1 /mnt/win386.swp
sync
swapon /mnt/win386.swp 2>/dev/null

I'd just like to point out that using /mnt/ as your mountpoint probably isn't a good idea.
Back to top
Profile PM 
sheldonisaac Offline





Group: Members
Posts: 53
Joined: Dec. 2004
Posted: Nov. 09 2007,19:09 QUOTE

Quote

I'd just like to point out that using /mnt/ as your mountpoint probably isn't a good idea.


I'm sorry, I posted the one I used with BasicLinux.

Here's the one I use with DSL 3.45:

Code Sample

#!/bin/bash
# put other system startup command here
mount /dev/hdb5
mkswap /mnt/hdb5/win386.swp
swapon /mnt/hdb5/win386.swp
sudo modprobe fuse
Back to top
Profile PM 
5 replies since Nov. 09 2007,11:29 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Swapp file blues

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