LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-16-2007, 01:56 PM   #1
exponential
LQ Newbie
 
Registered: Jul 2006
Location: Bucharest, Romania
Posts: 6

Rep: Reputation: 0
in search of copy-on-write file system


i need a way to keep intact the contents of a partition (root) even after other users have been using it. options are:

1. every time the machine reboots the contents are copied from another partition. i believe this is very time-consuming

2. using a file system that supports copy-on-write, like unionfs or mapfs. but the problem with these file systems is that they do it by directory. and even if i try to mount unionfs for every dir (/home, /usr, etc), it still doesn't work, because i would have to work on the read-only directory

example: mount -t unionfs -o dirs=/aux/home:/home=ro unionfs /home
in /aux is mounted another partition

3(i don't know if this works) is there a way to pass kernel options at boot time saying something like "use some partition for root, but any changes that take place store them on another partition" ?

i hope i documented the problem

thank you
 
Old 08-17-2007, 10:35 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What you're describing sounds like a "snapshot".

My first thought was you could probably use rsync for this. It has the beauty of only transferring the changes on subsequent runs and you can tell it to delete things on the target that are no longer on the source as well.
Since it only does differences you wouldn't have to take the time it would for a full copy like a dd would do.

Doing a Google search with the terms "snapshot", "on", "linux" (leaving out the quotes and the commas) gave me several hits the first of which describes doing a snapshot with rsync:

http://www.mikerubel.org/computers/rsync_snapshots/

Haven't gone through what he wrote but since I was already thinking "snapshot" and "rsync" it seems likely this has what you need.
 
  


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
disable write in file system jobless_joe Linux - Newbie 4 01-13-2005 07:23 AM
What does 'one file system' (copy command's -x arguement) mean? davidas Linux - Newbie 1 04-13-2004 02:07 AM
Misspelling in fstab, can't write to file system kristjan Linux - Newbie 4 01-08-2004 06:40 PM
how to write a fat16 file system!? Linos Linux - Software 4 09-09-2003 05:56 AM
using dd to copy a file system to another server bobbyr Linux - General 2 08-17-2003 12:19 PM

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

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