Linux - Embedded & Single-board computerThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.