[Voyage-linux] RW/RO File System
Wayne Lee
(spam-protected)
Sat Feb 2 00:09:57 HKT 2008
Sorry Rob I would not know although I had a similar error on BSD which
was related to the disk not unmounting correctly, a quick fsck corrected
it but I was lucky as the machine is on my test bench and not at a
remote site.
I think having a separate RW partition (/srv/) might help, at least the
OS can run which would give you the tools to fix it. (I'm guess here so
you will need to do some homework)
Wayne
-----Original Message-----
From: voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk
[mailto:voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk]
On Behalf Of Robert Rawlins - Think Blue
Sent: 01 February 2008 15:52
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Thanks Wayne,
The only reason I ask is because I've had a few instances lately of even
newer CF cards suffering from corrupt bits on the disk which need me to
run
repair tools to get them up and running again and I was thinking this
was
likely due to me not having the disk in RO mode.
Does that issue sound like something related to me writing all my logs
to
the disk?
Rob
-----Original Message-----
From:
voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.voyage.hk
[mailto:voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.vo
yage
.hk] On Behalf Of Wayne Lee
Sent: 01 February 2008 15:46
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Also it's possible to increase the ramdrive by editing /etc/fstab, I
believe this is what was meant by Punky. Just change the line
tmpfs /rw tmpfs defaults,size=8M 0 0
to whatever size you need (beware this uses the ram)
tmpfs /rw tmpfs defaults,size=15M 0 0
I have set mine at 15meg as I have 256meg in my boxes so I have it to
spare
Wayne
-----Original Message-----
From: voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk
[mailto:voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk]
On Behalf Of Robert Rawlins - Think Blue
Sent: 01 February 2008 15:33
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Hi Wayne,
Thanks for the suggestion, Using a USB type stick isn't really an option
unfortunately, however, how about I create a small separate partition on
the
disk? Could that work?
Rob
-----Original Message-----
From:
voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.voyage.hk
[mailto:voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.vo
yage
.hk] On Behalf Of Wayne Lee
Sent: 01 February 2008 15:15
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Yes
I would use the inbuilt scripts
remountrw
remountro
Perhaps you could call remountrw at the beginning of the script and call
remountro at the end.
How often is the application used?
The alternative is to use a USB stick for the RW media and then keep the
OS in RO mode (I would do this).
Wayne
-----Original Message-----
From: voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk
[mailto:voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk]
On Behalf Of Robert Rawlins - Think Blue
Sent: 01 February 2008 15:08
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Hi Wayne,
Thanks for your reply, I think I'm starting to understand now. So the
idea
is that I would have my applications write their information over to the
RW
partition, then have a bash script in CRON which mounts the FS into RW,
copies the files into RO and then remounts the FS back into RO mode, is
that
right?
The only problem I can see with this is that is one of my dynamic files
is
updated by my application and the box is then rebooted before CRON has
chance to run then my data is lost, which isn't really ideal.
Have I got that principle right?
Thanks for explaining this,
Rob
-----Original Message-----
From:
voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.voyage.hk
[mailto:voyage-linux-bounces+robert.rawlins=thinkbluemedia.co.uk at list.vo
yage
.hk] On Behalf Of Wayne Lee
Sent: 01 February 2008 14:55
To: voyage-linux at voyage.hk
Subject: RE: [Voyage-linux] RW/RO File System
Hello
The RW directory is built from the RO directory at boot, if you want to
keep files they should be written into RO, you will probably need a sync
script to run in cron if you need to keep log files or other dynamic
files across reboots.
Wayne
-----Original Message-----
From: voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk
[mailto:voyage-linux-bounces+wayne.lee=link-connect.com at list.voyage.hk]
On Behalf Of Robert Rawlins - Think Blue
Sent: 01 February 2008 14:34
To: 'voyage-linux'
Subject: RE: [Voyage-linux] RW/RO File System
Hi Punky,
Thanks for getting back to me mate, I appreciate it. I've taken a look
into
my /ect/fstab file and it looks as follows:
#/dev/hda1 / ext2 defaults,noatime,rw 0 0
proc /proc proc defaults 0 0
tmpfs /rw tmpfs defaults,size=8M 0 0
Now to me this would indicate that I have 8Mb of file storage mounted we
RW
in my /rw/ directory, however, when I place files in here and reboot the
system, they disappear, is that what's meant to happen? I need to keep
these
files even once a reboot has occurred.
Thanks,
Rob
-----Original Message-----
From: Kim-man 'Punky' Tse [mailto:punkytse at punknix.com]
Sent: 01 February 2008 14:20
To: Robert Rawlins - Think Blue
Cc: 'voyage-linux'
Subject: Re: [Voyage-linux] RW/RO File System
Rob,
Read /etc/fstab and you should be able to figure it out.
Regards,
Punky
Robert Rawlins - Think Blue wrote:
>
> Hello Guys,
>
> I'm still trying to get my head around the RW/RO file system with
> Voyage as it's not the sort of things I've ever worked with before.
> Until now I've been removing this feature and using it like a standard
> FS but feel it's about time I grew up and started using it properly J
>
> Nearly all my files on the system are Read-Only and I have a log file
> and a couple of XML files which need to be written to on a fairly
> regular basis, and remain on the FS even in the event of a reboot.
>
> Now, my current understanding is that the entire FS is mounted as RO
> and a small little piece about 8Mb is size is left as RW for me to be
> able to write my logs and XML files too, is that correct? If so, then
> where is that space? And in addition, am I able to expand that space
> to a little larger than 8Mb, maybe 25mb?
>
> Thanks guys, I would really appreciate some help as I couldn't find
> anything in the Wiki on it.
>
> Cheers, apologies for the noobish question.
>
> Rob
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
More information about the Voyage-linux
mailing list