LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-09-2004, 10:37 AM   #1
ducksew
LQ Newbie
 
Registered: Nov 2004
Location: Idaho
Posts: 5

Rep: Reputation: 0
Question Linux on a Compact Flash


Hello,

I am installing Mandrake 9.2 on a compact flash drive. Long ago I used a RedHat 6.2 system installed on a compact flash drive and it was configured to be a read-only files system. If my memory is correct that was because the compact flash only has a finite number of writes and the linux logging can quickly comsume those writes. Again I recall having to pass the 'ro' kernel parameter. Other than those recollections I have no idea of the specifics for creating the system.

QUESTION/S: Is my recollection antiquated? Does anyone have advice for creating developer linux installs on compact flash drives? If so I would really appreciate your input, otherwise I am proceding with the normal install and hoping for the best.

Thanks,
 
Old 11-09-2004, 10:52 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
I don't know that "ro" is neccessary, but noatime (man fstab, man mount) sure is. Otherwise, every time a file is accessed, a write will be generated. What is your goal with this installation?
 
Old 11-09-2004, 11:41 AM   #3
ducksew
LQ Newbie
 
Registered: Nov 2004
Location: Idaho
Posts: 5

Original Poster
Rep: Reputation: 0
Matir,


Thanks for the quick reply. I am building a system that is going to be placed on an outdoor research robot. In being such I need the hardened aspects of the compact flash as well as the ability to develop code for robot control.
 
Old 11-09-2004, 12:37 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
I guess the question then is this: will there be any need for data collection or storage? I don't think mounting the system ro is really neccessary, though I would NOT put any sort of swapping on compact flash
 
Old 11-09-2004, 12:54 PM   #5
ducksew
LQ Newbie
 
Registered: Nov 2004
Location: Idaho
Posts: 5

Original Poster
Rep: Reputation: 0
Matir,

No Data collection or storage on the robot. All information gets packaged and sent to the user interface via wireless serial radios or a cell phone.

I currently have a bear bones install on the compact flash drive.

My fstab set noatime for the / and /home partitions. It also has a swap partition. Should I change the swap partition to be on a ramdisk?
 
Old 11-09-2004, 01:32 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Yes, having swap on the flash drive would certainly cause a LOT of write activity. However, swap on a ram disk would rather defeat the point. I would just try to build a system with sufficient ram, or use a secondary drive for swap. (If a flash drive, it will probably need to be tested and/or replaced often).
 
Old 11-23-2004, 03:13 PM   #7
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
DuckSew,

I am about to do basically the same thing you are working on now.. I am using a small, old desktop PC (basically just the motherboard/proc/ram) as a kind of "fake embedded" system.

My approach is to build a working system on a real hard drive partition until I get it down to the correct size (128MB) and with the correct read-only/ramdisk setup.

I am about to start the ramdisk part of the process... do you have any documentation or references on creating and using a ramdisk in this type of application?


Thanks,
RG
 
Old 11-23-2004, 03:40 PM   #8
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
Don't you just love it when you ask a question, then 2 minutes later find the answer yourself?

http://silent.gumph.org/content/4/1/...nux-on-cf.html

That howto explains it very well...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running linux off of CF (Compact Flash) Card?!?! lsakhvoruk Linux - Hardware 10 06-21-2009 08:30 PM
Linux on Compact Flash (CF-IDE) bwolak Linux - General 2 07-11-2005 06:08 AM
linux doesn't read compact flash wazilian Linux - Hardware 0 10-22-2004 12:20 PM
linux on compact flash tomank Linux - General 3 04-26-2004 03:08 PM
Boot Linux from Compact Flash IDE ludwig Linux - Hardware 2 08-18-2003 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration