LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Deepfreeze (https://www.linuxquestions.org/questions/linux-software-2/deepfreeze-4175527154/)

deadbeef 12-02-2014 11:38 PM

Deepfreeze
 
I see dated threads on LQ about Deepfreeze, like this one, this one, this one, and even this tutorial.

I've also taken a look Ofris.

I'm trying to track down a product or a project that actually functions like Faronics Deepfreeze. Something that is
Quote:

a kernel-level driver that protects hard drive integrity by redirecting information being written to the hard drive or partition, leaving the original data intact. This redirected information is no longer referenced once the computer is restarted, thus restoring the system to its original state at the disk sector level. -- from Wikipedia
The issue I have with most suggestions I've seen on how to get Deepfreeze-like functionality -- including Ofris -- is that file read/write redirects are manually configured to happen in userland, whether it's via an rsync backup/restore, a dd backup/restore, or configuring certain mountpoints in fstab to use a tmpfs filesystem.

I'm looking for a kernel level driver that intercepts all read/writes and redirects to a temp space.

At one point in time, it seems like Faronics even offered a Linux version of Deepfreeze, but I can't seem to find that version of Deepfreeze anywhere on their website.

Is anyone aware if such a product or project exists for linux?

smallpond 12-03-2014 04:08 PM

The simplest approach would be to install on an lvm and then boot a snapshot copy which uses a RAM-backed block device. That way any changes would go into RAM and be freed on shutdown, and you wouldn't have to copy the whole OS into memory. I'm not sure it would take any new code, just changes to init scripts.

syg00 12-03-2014 06:53 PM

Quote:

Originally Posted by deadbeef (Post 5278583)
The issue I have with most suggestions I've seen on how to get Deepfreeze-like functionality -- including Ofris -- is that file read/write redirects are manually configured to happen in userland, whether it's via an rsync backup/restore, a dd backup/restore, or configuring certain mountpoints in fstab to use a tmpfs filesystem.

I'm looking for a kernel level driver that intercepts all read/writes and redirects to a temp space.

Ain't going to happen. Even if overlayfs does make it upstream this time (3.18), you still have to setup the overlays.
You don't get nuthin fer nuthin.

Overlayfs has been fighting to get into the mainline for years - and aufs before that.

Snaps are useful, but you lose everything - incuding logs. May suit, or not depending on situation. Really handy after a botched update ...

deadbeef 12-04-2014 11:36 AM

Quote:

Originally Posted by syg00
Even if overlayfs does make it upstream this time (3.18), you still have to setup the overlays.

I tried to dig up more information about overlayfs, but it the impression I got is that the best way to learn about it is probably by reading the source code. The wikipedia page is pretty sparse...

Any pointers to good documentation for overlayfs?

Quote:

Originally Posted by syg00
Snaps are useful, but you lose everything - incuding logs. May suit, or not depending on situation. Really handy after a botched update ...

syg00, I'm not sure what you mean by "snaps". Is that LVM snapshots or something else?

Quote:

Originally Posted by smallpond (Post 5279022)
The simplest approach would be to install on an lvm and then boot a snapshot copy which uses a RAM-backed block device. That way any changes would go into RAM and be freed on shutdown, and you wouldn't have to copy the whole OS into memory. I'm not sure it would take any new code, just changes to init scripts.

Sounds like this might be the way to go, especially if syg00 is talking about LVM snapshots. I'm a little rusty with LVM, but I get the general concepts and remember most of the major commands. Could you point me in the right direction where I an learn more about how to boot an LVM snapshot into a RAM-backed block device?

syg00 12-05-2014 01:55 AM

Yes I was referring to snapshots - btrfs in my case, but conceptually similar to LVM.

There isn't much doco about overlayfs as it hasn't made it to the mainline kernel (yet). Ubuntu seem to have done a bit to make it available to their users - there is also overlayroot, a package (primarily) for Ubuntu.
Seems overlayfs may be in rawhide soon if you use Fedora.


All times are GMT -5. The time now is 02:08 PM.