LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 08-21-2008, 03:51 AM   #1
jampr
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Question dsl install on flash-drive (readonly but with ability to upgrade/update)


Hi,

i have a mini-itx board, 1 gb ram, 1 flash-ide 2gb and a sata-hdd.

the hdd have to be spinned down for the most of the time to save power. that' s quiet easy with jfs and hddparm.

But i want to use the flash-drive for the operating system with the following possibilities:

- small operating system
- ability to install additional programs
- easy to update to latest versions

is it correct, that i can mount / readonly and mount /log with tmpfs?
After that does dsl run without problems?

Can I re-mount / with readwrite without a reboot to update programs like browser or install additional things? And how is it possible?

after that is done, im finish with my storage system....

thanks a lot
and have fun
jampr
 
Old 08-21-2008, 09:01 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You may want to set some directories like /var and /tmp to run on tmpfs; the usual trick is to use tmpfs, copy over the contents of the real /var and /tmp, then mount tmpfs over /var and /tmp; you can do all this in the 'init' script of the initramfs image. The rest of the system should still run from the USB stick except that it is mounted read-only. Even with this scheme there is a danger that /var and /tmp get huge and take up your RAM.

Other problems include:
1. you need to mount r/w to install new programs or change config files (/etc). Some programs like pppd always want to mess with /etc (for /etc/resolv.conf and /etc/ppp/resolv.conf) so you may consider putting /etc on tmpfs as well.

2. When you remount as r/w, be careful what happens to /var and /tmp. Usually /var will have information used by your package manager, so you need to make sure that it is updated as well. If you're not careful with how you handle /tmp, you can mess up the system a little.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! installing dsl on a flash drive chipslq Linux - Newbie 8 04-01-2008 09:07 PM
DSL on USB Flash Drive satimis DamnSmallLinux 8 02-10-2006 07:12 AM
DSL won't boot from USB Flash Drive penguin_asylum DamnSmallLinux 0 02-06-2005 07:23 PM
Installing DSL in a USB Flash Drive GCR DamnSmallLinux 6 11-11-2004 10:40 AM
DSL on a flash drive CamelofCamelot DamnSmallLinux 0 08-30-2004 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration