LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-04-2009, 08:49 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
Running vanilla from Read only partition


My embedded PC (Pentium-M) has an onboard ATA flash disk.
The disk is divided into 2 ext3 partitions.
The first partition contains grub, kernel, busybox + application and some configuration files. This is a bootable partition.
When the application runs it writes to the second partition.
Is it required to shutdown\reset the PC without entering shutdown\reboot at the shell. How can I make sure that the first partition will not be hardmed ? I do not want to run fsck upon boot.
The grub passes "ro" to the kernel. Is it enough ?
Should I use ext3 ?

Thanks.
 
Old 09-05-2009, 07:04 PM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
The safer solution is to edit your /etc/fstab file and specify the 'ro'
option for your root partition, but you may need to create links or
writable partitions for things like /tmp /var which usually the
system writes logs etc.

If you are going to reset your PC without proper shutdown you should
do a checkout of your write partition every time you boot.

Keep in mind that even if you use a journaling file system like ext3
there is a small possibility that your partition doesn't recover
cleanly, specially if you are writing data constantly.

Best regards,
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
can't read from partition jamaso Linux - General 2 10-02-2005 04:26 AM
partition that can be read by xp? andrewlkho Linux - General 6 07-05-2003 07:32 AM
read only partition bumpert Linux - Newbie 3 12-18-2002 02:06 PM
Partition .. READ ONLY mikeshn Linux - General 1 10-11-2002 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration