LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 11-01-2008, 12:53 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Rep: Reputation: 15
fsck for embedded linux system


My project contains a PC104 (Pentium M) connected to an IDE disk and runs Open SUSE. The disk is formatted with ext2
The PC104 is shutdown or reset by hardware. The user can not run a shutdown command (when deployed, the PC104 is not connected to a keyboard).
Sometimes, after power up, we have to run fsck to repair damages to the file system.
Can we format the disk in such a way that we will not need fsck at all ?
Will JFFS2 do the job ?
Thanks.
 
Old 11-01-2008, 01:18 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
JFFS2 is for FLASH devices only (and best on flash devices which do not have their own wear-levelling). If you have an IDE HD, don't use a filesystem like JFFS2.

It is recommended that you run fsck if you have a HD; how else can you check for disk wear and corrupted blocks? It would be great if someone has created a program which can do the checks in the background (consuming very little CPU time) and more or less continuously, and of course better still if checks can be done while the disk is mounted. It's a pretty big challenge, but maybe google will turn up something useful.
 
Old 11-02-2008, 04:37 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,910

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Well, you could run fsck automatically, so that you don't need user intervention. this may not be a good solution for you as it will make every boot slow, possibly slower than you can stand.

You could use a journalled file system, which doesn't rely on the same kind of process that ext2 does. Practically, this transforms rather than eliminates the maintenance problem, so this may not be the solution for you (but may make the problem less bad).

Is the base problem that you are having non-clean shutdowns?
 
Old 11-03-2008, 11:16 AM   #4
zvivered
Member
 
Registered: Sep 2007
Posts: 119

Original Poster
Rep: Reputation: 15
What is the optimal file system for IDE flash ?

If I use ext2 or ext3 and mark the partition as read only,
will this solve the problem ?

I want to avoid the need for fsck after some time.

Thanks.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot do fsck. Why is that? Repairing Linux ext2 or ext3 file system LinuxCrazy Linux - General 5 06-18-2007 04:01 PM
Porting linux to embedded system. swapnilborg Linux - Software 0 12-21-2005 04:31 AM
Getting linux to boot on embedded system BleedingEdge Linux From Scratch 3 06-19-2005 06:36 AM
Writing to an read-only embedded linux system!! cheema Linux - General 1 01-26-2005 04:20 PM
Who Customize Linux for an Embedded System usage? Rajaee Linux - Software 0 08-18-2003 03:29 AM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration