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: DSL - Memory run only, DSL only system running in memory< Next Oldest | Next Newest >
mengesb Offline





Group: Members
Posts: 4
Joined: June 2006
Posted: June 18 2006,19:57 QUOTE

Quote (tedmoore99 @ June 18 2006,12:34)
Kerry:
Using the cheat codes modifies the way your data is stored after you shutdown.  For example: mydsl=hda4, home=hda4, etc tells the bootloader that you want those directories stored on hda4.  However the toram cheatcode tells the system to copy the entire system into ram at boot time.  

There is the script "bootlocal.sh" which allows you to have some commands/scripts run at boot time which modifies this.  Entering the command: "mount /dev/hda3 /usr" in bootlocal.sh tells the system to mount the hd as a filesystem at the mount point during boot time.

Enjoy
--Ted

so what I'm looking to do is first install the thing to HD... and use toram boot options?

Basically this will be a server environment; so reboots will be an occurance.

What I've had in previous linux distros was something in the rc.d to auto start my user games in their directories as their users (so they can control the process) - but what I'm trying to do with DSL is to run this system with minimal storage, and brunt of the sys in memory (toram).  During reboots, this data may need to be saved... but I should be able to reference things such as logs to the user's directory.

so here's a more detailed look.  The game will be installed in /etc/hlds (should be completely contained in memory ... approximately 1.6gb), the /usr directory will be in memory, but any /usr/<username> will be on hda?  What this means to me is I'll probably be solinking the game so the user can run the process , and logs will be created on the HD.

At reboot, the data that will need to be saved will be things such as the httpd files (hosting of stats), mysql databases, and logs (which should be already on the hd from what I can think of here)

I hope this helps me a little, but from what I get here, I need to install HD first, then use bootlocal.sh with 'toram' or is that something done at console?

Heh, kinda confused, but I may be looking for a noob installation at some point here.
Back to top
Profile PM 
tedmoore99 Offline





Group: Members
Posts: 67
Joined: Mar. 2006
Posted: June 19 2006,00:42 QUOTE

I can only address what I have done and see if it fits for you.  I installed dsl in what is called a "frugal" install.  This writes the boot image to a small partition (200MB).  Then when I boot I have the following line in the grub boot file "menu.lst":
"dsl toram mydsl=hda4 home=hda4 opt=hda4"  This installs the dsl program to ram, mounts the /home/dsl directory to /mnt/hda4/home/dsl, mounts the /opt directory to /mnt/hda4/opt.  I assume you could do whatever you needed to do this way.  dsl has a backup/restore program which can be set up to copy whatever files you want to be backed up.  The "/home/dsl/.filetool.lst" file controls what files get backed up.  Since I mount the whole /home directory from another drive, my .filetool.lst file is empty.
Enjoy
--Ted
Back to top
Profile PM 
mengesb Offline





Group: Members
Posts: 4
Joined: June 2006
Posted: June 19 2006,07:01 QUOTE

Quote (tedmoore99 @ June 18 2006,20:42)
I can only address what I have done and see if it fits for you.  I installed dsl in what is called a "frugal" install.  This writes the boot image to a small partition (200MB).  Then when I boot I have the following line in the grub boot file "menu.lst":
"dsl toram mydsl=hda4 home=hda4 opt=hda4"  This installs the dsl program to ram, mounts the /home/dsl directory to /mnt/hda4/home/dsl, mounts the /opt directory to /mnt/hda4/opt.  I assume you could do whatever you needed to do this way.  dsl has a backup/restore program which can be set up to copy whatever files you want to be backed up.  The "/home/dsl/.filetool.lst" file controls what files get backed up.  Since I mount the whole /home directory from another drive, my .filetool.lst file is empty.
Enjoy
--Ted

so in your example, the installation will be completely done to RAM with the exception of pre-defined items... such as in your case
Quote
"dsl toram mydsl=hda4 home=hda4 opt=hda4"
means mydsl, home, and opt will be on the HD, everything else will be loaded to memory.

I would also ask the .filetool.lst - would I have to specify every file, or could I specify a directory, because with a game server installation that would be a lot of files that I would have to develop a script for to update when a file change occurs... that may take me a few days to figure out and parse.

something of a traditional application is this:

mysql server may be required - databases would have to be backed up
httpd server may be required - files backed up
game server installation - needs to be backed up - mounted /usr/game/*

Also just to keep straight, I'd be recommended to use DSL or DSL-N for this type of feature.  I am not in need of any gui interface, but just a console in these instances.  This is the only difficulty that I find regarding this distro.
Back to top
Profile PM 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: June 19 2006,18:05 QUOTE

Why have you posted on the embedded forum. It's confusing, I might think you want to use within Windows

--------------
THE QEMU FORUM: http://qemu.dad-answers.com/index.php

QEMU ON WINDOWS: http://www.h7.dion.ne.jp/~qemu-win/

How to use floppy, CD-ROM and hard disk - http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

How to use network - http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html
Back to top
Profile PM 
mengesb Offline





Group: Members
Posts: 4
Joined: June 2006
Posted: June 19 2006,19:13 QUOTE

Quote (pr0f3550r @ June 19 2006,14:05)
Why have you posted on the embedded forum. It's confusing, I might think you want to use within Windows

Actually no - I don't want any windows installation present.  I want only DSL running, but I do have minimum requirements such as : NO X, no GUI, mysqld, httpd, ftpd, enough libs required for running an hlds installation - and at least the core OS and hlds to run completely contained within memory.  Files that will have to be saved will be the mysql databases, webserver files (which httpd process can run from memory, just grabbing the web directory from hda) and likewise for ftp files.  the hlds installation will also have to be backed up becaues the server files do update.  user customizations will be saved on HD, so any additional files that users add to the default game installation will be HD based - my only performance leak in this task.

I posted here, because it is more or less embedded, running from system ram, not a usb drive.  Also I wanted to see if it was feesable to run the 50mb version first instead of DSL-N, if I don't have to use the memory, then I'd rather not jumble up the space.
Back to top
Profile PM 
10 replies since June 18 2006,06:33 < 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: DSL - Memory run only

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