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: DSL v2.0 on a Dell Latitude XPI with 22 MB RAM, how to enable the RAM/SWAP hack?< Next Oldest | Next Newest >
killerhippy Offline





Group: Members
Posts: 10
Joined: Nov. 2005
Posted: Dec. 19 2005,14:45 QUOTE

How to enable the RAM/SWAP hack of DSL-v2.0?

I have a frugal install on a Dell Latitude XPI with 22 MB RAM and if I boot DSL only single user mode works good, X refuses to start if chosen because of low memory.

edit 2005-12-20:
Found out, that X does not start because of no fbdev available. I have to load fb16vga by hand, then I can use Xfbdev. Or I choose Xvesa, then X starts also. But because of small grafik memory X is unusable, see my other post at http://damnsmalllinux.org/cgi-bin....t=10356
Nevertheless I still wonder about the Mem/Swap hack...

When having read the Changelog of DSL-v2.0 I thought it automatically added SWAP to RAM, but it doesn't.

...or, when having misunderstood the feature of this hack, what does it do?

regards,
killerhippy
Back to top
Profile PM ICQ 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Dec. 19 2005,17:12 QUOTE

Before it will do this, you need to have a configured swap partition.

create a LINUX SWAP partition with

cfdisk /dev/hda

where "hda" is your hard drive device name

In this example, a swap partition is created at partition number 3 (/dev/hda3).

Then format your partition with:

mkswap /dev/hda3

Finally, reboot and your swap partition will be detected and activated.
Back to top
Profile PM 
killerhippy Offline





Group: Members
Posts: 10
Joined: Nov. 2005
Posted: Dec. 20 2005,12:06 QUOTE

Thank you for your answer. I have used frugal install several times before, see my notepad:
Code Sample

handmade hd-install is quite easy, you don't even need the frugal-install.sh script, e.g. in my case in lack of a cdrom attached:

1. Create the partitions e.g. with the harddisk attached to another computer:
- hda1 swap
- hda2 60 (better 65) MB for the dsl-cd.iso contents ext2 formatted.
- hda3 another partition for mydsl (which is the persistant variable part of the frugal hd install) ext2 formatted.
- copy the iso contents (loop mounted) to the hda2 partition.

After having copied the iso contents (which is the KNOPPIX directory and the index.html file if you like) to the selected partition hda2 start with a dsl-floppy and boot from that hd. Mount /mnt/hda2 if nescessary, but it should be mounted at /cdrom.
From floppy copy boot/linux24 and boot/minirt24.gz to /mnt/hda2/boot/.
Now install your grub bootloader with "grub-install --root-directory=/mnt/hda2 /dev/hda". Adjust /mnt/hda2/grub/menu.lst if nescessary.
Ready made.

...the notepad is not public, is it?

The harddisk has the folling partitions:

/dev/hda1 500 MB swap
/dev/hda2 65 MB Linux
/dev/hda3 200 MB Linux

and frugal dsl is using swap as swap.
free shows this:

Code Sample

            total   used       free
Mem:    21472  20564       908
Swap:  500936      108  500828
Total:  522408  20672  501736

which is no difference to a normal linux system using swap space.
I am still missing the hack to be visible somewhere ...

Does it need a kernel parameter or so? Or, still no answer to that question, what does the hack do in detail and how can I verify it is working?
Back to top
Profile PM ICQ 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 20 2005,14:11 QUOTE

Type df look at /ramdisk
The size shown for /ramdisk should be larger than your physical ram
Back to top
Profile PM WEB 
killerhippy Offline





Group: Members
Posts: 10
Joined: Nov. 2005
Posted: Dec. 20 2005,14:16 QUOTE

Now I see!

So the RAM/Swap hack increases the mountpoint /ramdisk and not the RAM itself. This was my wrong assumption.

Thank you for your answer.

BTW: DSL is great. I really do love it. Thanx a lot to all developers and all people involved in this project.
Back to top
Profile PM ICQ 
4 replies since Dec. 19 2005,14:45 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: DSL v2.0 on a Dell Latitude XPI with 22 MB RAM

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