LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-01-2007, 07:46 PM   #1
FrankRizzo
LQ Newbie
 
Registered: Jan 2007
Location: Tennessee
Distribution: SUSE 10.1 / Core 6
Posts: 8

Rep: Reputation: 0
How to make ReadOnly FS on HD SUSE 10


Evening gents. I'm working on a consumer device that will lose power, and be turned off with no regards to the OS, or FS being dirty. That being the case, I'd like to make the OS stuff read-only, so that it can't be corrupted. (I'd LOVE to put it on a USB stick, or a CF card, but can't.) So my question is, "What do I have to do to get a working system with a RO file system?"

I've set RO in grub, and then modified /etc/init.d/autofs to mount the root (/) as read-only, but the system doesn't seem to like that, since the only things showing up as mounted are /proc and /udev. This causes some problems like when I run any of my apps (text mode apps of course), they immediately seg fault. I'm hoping that someone here has done this, and can point me to a page that discusses it, or can just tell me what you did to make it work. (I have another partition on the driver with will contain the stuff that gets modified, I.E. the user's data, but I want the boot/system partition to be RO to avoid corruption).

Thanks!
Frank
 
Old 02-02-2007, 11:18 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Most systems need to write log files, dmesg etc., that is probably why that option is not liked. And during boot-up, things need to be executed, if you want to do anything, you will have to execute.

Last edited by Junior Hacker; 02-02-2007 at 11:20 PM.
 
Old 02-02-2007, 11:40 PM   #3
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
What about running from a LiveCD?
 
Old 02-03-2007, 11:03 AM   #4
FrankRizzo
LQ Newbie
 
Registered: Jan 2007
Location: Tennessee
Distribution: SUSE 10.1 / Core 6
Posts: 8

Original Poster
Rep: Reputation: 0
For all intents and purposes, I don't have a CD drive available for a LiveCD. (Unless there is a way to put the image on the HD, and make it boot from it).

JH: Could I used unionfs or something to make a small ramdisk and let it do it's writing to there? If so, what directories/files do I need to have there to make it happy?
 
Old 02-03-2007, 02:16 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by FrankRizzo

JH: Could I used unionfs or something to make a small ramdisk and let it do it's writing to there? If so, what directories/files do I need to have there to make it happy?
That's over my head.

Have you tried chown & chmod on / to owner, chances are owner is root already, for permissions:

chmod -R 700 /

To give owner full permissions, no permissions for group and others. Power outages are not un-common, operating systems recover from this.

Last edited by Junior Hacker; 02-03-2007 at 02:20 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ReadOnly Directory problems irvken Linux - General 2 02-23-2011 08:52 PM
make, make install not found Suse 9.1 Phaen Ilda Linux - Software 9 12-04-2004 08:40 AM
make; make install commands in SuSE Linux 9.1 Personal johnerskine Linux - Newbie 6 06-23-2004 10:18 AM
readonly boot karlan Linux - General 1 03-10-2004 09:09 AM
Readonly drives Andy@DP Linux - Newbie 1 08-23-2003 07:52 PM

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

All times are GMT -5. The time now is 01:42 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