Unix Technical Forum

Slackware + read only /

This is a discussion on Slackware + read only / within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I was wondering if someone already tried to run slackware with a read only / and have only ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 05:40 PM
Philip Lawatsch
 
Posts: n/a
Default Slackware + read only /

Hi,

I was wondering if someone already tried to run slackware with a read
only / and have only /var mounted rw.

I'm asking this because I already know about some things which will
break badly if /etc is ro (/etc/mtab for instance) and thus I'd like to
know if its feasible to do it or not.

(Pointers to which things write into dirs other than /var would be helpful)

I'm doing this since I want to have 2 Streaming Clients for TV and these
boxes do not have harddisks -> I use NFS Roots. And now I'd for one like
to share one nfsroot for both clients and also would like to be able to
just turn these things off without a proper shutdown and not have to
worry about anything.

kind regards Philip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 05:40 PM
joseph philip
 
Posts: n/a
Default Re: Slackware + read only /

On Tue, 23 Nov 2004 13:52:44 +0100, Philip Lawatsch wrote:

> Hi,
>
> I was wondering if someone already tried to run slackware with a read
> only / and have only /var mounted rw.
>
> I'm asking this because I already know about some things which will
> break badly if /etc is ro (/etc/mtab for instance) and thus I'd like to
> know if its feasible to do it or not.
>
> (Pointers to which things write into dirs other than /var would be helpful)
>
> I'm doing this since I want to have 2 Streaming Clients for TV and these
> boxes do not have harddisks -> I use NFS Roots. And now I'd for one like
> to share one nfsroot for both clients and also would like to be able to
> just turn these things off without a proper shutdown and not have to
> worry about anything.
>
> kind regards Philip



/etc/mtab

/dev/log= syslog pipe or something.

Put them im /var

syslog can be told to create it's pipe elsewhere.
As for mtab, you'll have to mount /var without writing in mtab.

Alternately,
Boot a rfs that then links necessary root dirs to those in nfs mount point.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 05:41 PM
Damjan
 
Posts: n/a
Default Re: Slackware + read only /

> I was wondering if someone already tried to run slackware with a read
> only / and have only /var mounted rw.


sure, see how Slax is made.

> I'm asking this because I already know about some things which will
> break badly if /etc is ro (/etc/mtab for instance) and thus I'd like to
> know if its feasible to do it or not.


symlinking /etc/mtab to /proc/mounts works, although it loses some
information that umount may need.

> (Pointers to which things write into dirs other than /var would be
> helpful)


boot you system and use `find' to find out what files are modified in the
last 5 minutes.


--
damjan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com