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

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

reply to topic new topic new poll
Topic: dos swap file, how to set up< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 01 2006,16:15 QUOTE

This is what I have found so far...
Regarding swapon:
The swapon in DSL works fine with dos swap file, i.e., knoppix.swp.
What I have found so far...
If the knoppix.swp is on the same partition as KNOPPIX folder then the swap file is detected and used.
If DSL is installed on another device/partition, then you must mount the device/partition containing the knoppix.swp file and then use the swapon command, e.g.,
mount /mnt/hda1
swapon /mnt/hda1/knoppix.swp

Regarding mkdosswapfile:
If DSL installed on a separate device/partition then mkdosswap works and allows creation of knoppix.swp.
If you have a poormans install, where the KNOPPIX folder is on the Windows partition, then the mkdosswapfile script fails in creating knoppix.swp.

Knowing this, one should be able to work around these issues until they are resolved.
Back to top
Profile PM WEB 
pattmark Offline





Group: Members
Posts: 9
Joined: Oct. 2006
Posted: Nov. 03 2006,06:56 QUOTE

I finally make the DOS swapfile work, from livecd.  :D

you need a hard disk with a dos partition, a partition with win98 should be fine.
these was wath i do, step by step, maybe some step dont be needed or i do redundant things, dont know, im not an expert, but this work for me.

1. in the desktop, rigth-bottom, the box, click the device (cdrom,hda1,fd0,etc) until the one with the DOS partition, should be red unmounted, click to mount and change to green, if pop up advice "mount: you must especify the fylesystem type" you forgot format the partition, do it from windows or dos, if already green skip this step.

2. from menu (rigth click on desktop), menu System select "Setup DOS Swapfile", if advice "sorry, no dos partition available to swapfile", either you have already created one, or the dos partition wasnt mounted rigth(see 1 step), if all ok should be asking you a question select yes to accept, then select the size of the file, ok, shoul take a minute to create the file

3. use emelfm to confirm the exact path of the file, should be /mnt/hdaX/knoppix.swp, where X is the number of the dos partition, should be the same you mounted in step 1

4. open ATerminal and type "sudo swapon" + the path, should be something like this,
sudo swapon /mnt/hda1/knoppix.swp

5. if all ok, you should see the inmediate change in Swap used, on desktop below CPU and RAM usage

Hope this help anyone, take me 7 days and my win98 partition, i know i wasnt the only one trying to make this DOS swapfile work, agree mrs peanut?

i search and ask for help without result, i wish i could read this a week ago, so now, i wish this save u a week. :cool:
Back to top
Profile PM 
mrs peanut Offline





Group: Members
Posts: 24
Joined: Oct. 2006
Posted: Nov. 03 2006,11:45 QUOTE

hey pattmark, glad you got it working at last!

i gave up and just installed in the end, but i'm happy with that!
i think i forgot to mount the partition with the swap and thats why it didnt work, being reasonably new to linux, but you learn fast!

will you have to do "swapon" every time you boot though?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 03 2006,17:25 QUOTE

Quote
will you have to do "swapon" every time you boot though?


No, if the swapfile is on the same partition as the KNOPPIX folder.
Yes, if not, DSL, would not know to go looking for it.
You can place your commands in /opt/bootlocal.sh

mount /mnt/hda1
swapon /mnt/hda1/knoppix.swp

An update:
Based on this thread. I have updated frugal_grub, frugal_lilo, dslhdinstall, mkdosswapfile to support Poormans install, i.e., when the KNOPPIX folder is placed in the root of C:\ and booted from the boot floppy.

Also, have added a new boot option of dosswapfile
This will autoscan looking for knoppix.swp
It also support direct specification via
dosswapfile=hda1

These new updates will be in the next RC3 of DSL 3.1
Hopefully, this will make it easier for users that already have a Win98 older machine with no cdrom and wish to try DSL.
Back to top
Profile PM WEB 
mrs peanut Offline





Group: Members
Posts: 24
Joined: Oct. 2006
Posted: Nov. 03 2006,23:02 QUOTE

thanks for that, i'm going to try that on my main pc now i understand how it works
DSL rocks!
Back to top
Profile PM 
16 replies since Oct. 24 2006,22:33 < Next Oldest | Next Newest >

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

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: dos swap file

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