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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2014, 11:38 PM   #1
deadbeef
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 12-03-2014, 04:08 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
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.
 
Old 12-03-2014, 06:53 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally Posted by deadbeef View Post
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 ...
 
Old 12-04-2014, 11:36 AM   #4
deadbeef
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
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 View Post
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?
 
Old 12-05-2014, 01:55 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
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.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Deepfreeze for Linux lukeprog LinuxAnswers Discussion 14 06-30-2010 05:14 AM
deepfreeze dajomu Linux - Software 24 09-28-2008 03:00 PM
Deepfreeze-like for Linux Fedora tsong Linux - Desktop 2 01-22-2007 08:11 AM
Tutorial: Deepfreeze for Linux lukeprog Linux - Software 4 06-16-2006 05:31 PM
deepfreeze on Linux - another way lukeprog Linux - Software 17 02-10-2006 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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