Re: read-only video directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 06.03.2013 21:56, schrieb Peter Münster:
> On Wed, Mar 06 2013, Stephan Loescher wrote:
> On Wed, Mar 06 2013, Udo Richter wrote:
>> You can always mount an unionfs or aufs on top of the read only mount,
>> and redirect all write access to a local disk or ram disk. That way VDR
>> will be able to write its status files without changing the source file
>> system.
> 
> Hi Stephan and Udo,
> 
> Unfortunately I don't understand. Could you please show examples?
> 
> I have for example this directory:
> /net/media/data/video/Pippi-geht-von-Bord/2010-07-31.06.55.50.99.rec

Just improvising, haven't tested it, but should give you a hint how to
do it:

- assuming /net/media is an NFS mount or similar
- create a folder /net/media-tmp (optionally mount an tmpfs on it)
- create a folder /net/media-rw
- mount -t aufs -o br:/net/media-tmp:/net/media aufs /net/media-rw

Now you have a virtual copy of /net/media in /net/media-rw, fully
writeable, where all write access goes to /net/media-tmp instead,
leaving /net/media untouched. You can play back
/net/media-rw/data/video/Pippi-geht-von-Bord/2010-07-31.06.55.50.99.rec
just as before, you can even delete it, but the recording will only
disappear within /net/media-rw, the original copy in /net/media stays
untouched.

Cheers,

Udo


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux