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: Adding files permanently to be loaded in ram, Sorry, another newbie here...< Next Oldest | Next Newest >
bib_ak Offline





Group: Members
Posts: 7
Joined: July 2007
Posted: July 04 2007,12:50 QUOTE

I need a binary file to be present in RAM at every boot, in the read only fileformat under /bin, and a symlink in /lib as well...

Does this require a remaster of DSL? It seems a little difficult for a newbie - are there a better way?

btw, great product this distro :)
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 04 2007,13:51 QUOTE

/bin ? maybe you meant /usr/bin, etc?

Remastering the image will only be in ram if you boot with toram, or else your best bet would just to make a .dsl extension.

Of course you could just copy your binary and libs manually (you'll probably need to run mkwriteable manually as well though)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 04 2007,20:59 QUOTE

If you don't want to run mkwriteable, which adds a slew of syminks to /ramdisk from /usr, /bin, /lib, and /sbin, the bin file could be added to /opt/bin. I don't think there is a writable lib directory in DSL without running mkwriteable, though, so for this file you'll either need to run mkwriteable (automatically done when installing a *.dsl file), or modify your LD_LIBRARY_PATH variable to include the new lib directory.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
bib_ak Offline





Group: Members
Posts: 7
Joined: July 2007
Posted: July 05 2007,08:56 QUOTE

Alright, let me try to explain better what I try to do:

The application I want to run consist of one binary file, and one config file. It also requires libcrypto.so.0.9.8 in /lib. This library does exist in DSL, but as an earlier version - libcrypto.so.0.9.7. Though, this version works just fine for my needs, I can simply

Code Sample
ln /usr/lib/libcrypto.so.0.9.7 /lib/libcrypto.so.0.9.8


As for the file ment to be in /bin directory, I have found a way to specify a different location for it, so the only thing for me to do is "faking" the existence of /lib/libcrypto.so.0.9.8

Is this a difficult task?
Back to top
Profile PM 
bib_ak Offline





Group: Members
Posts: 7
Joined: July 2007
Posted: July 05 2007,09:20 QUOTE

Additional info, slightly offtoptic, but for what it's worth:

I am booting from a CF card, using an old Neoware thinclient (Eon 2000) as hardware. Nice power from a 300MHz Geode CPU ;) Seriously, it runs very smooth at maximum total power consumption of 15W! 128MB SD-RAM. No fans :)

I may have caused confusion when mixing ramdisk with RO directories, sorry. I see now that only the directories /home, /opt and /var are on ramdisk, and of course that's what makes them RW. Which is making my thread title completely wrong. But it's impossible for me to change it...
Back to top
Profile PM 
7 replies since July 04 2007,12:50 < 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: Adding files permanently to be loaded in 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