LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-24-2009, 11:48 AM   #1
digby
LQ Newbie
 
Registered: Jan 2009
Location: california
Distribution: slax
Posts: 2

Rep: Reputation: 0
Question Persistent change files for live-CD distros, how to manage.


Slax, Knoppix, Puppy and other live CD distros allow users to save their changes beyond the next boot to a "change file". These files are a pre-decided fixed-size, and are formatted as linux file systems. My first question is how can one find out the amount of space within these files that is actually being used? Then, armed with this information, how can one enlarge or shrink the size of the change file (as needed)?
 
Old 01-24-2009, 01:25 PM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,031

Rep: Reputation: 160Reputation: 160
Not sure where you get the impression that these files are "a pre-decided fixed size." I run slax off of a usb stick, and the "change file" is actually a directory on the usb stick which increases (or decreases) according to the changes.

In the case of a live-cd, you would indicate what directory on your hard drive (or whatever device) the changes would be saved to, and as long as there is room in that particular directory, you're fine.

From linux-live.org (by the same dude responsible for slax) :
Quote:
Interesting features of Linux Live scripts

1)
persistent changes

Use 'changes=...' boot parameter to specify persistent changes directory or file. If a directory is used, eg. changes=/some_dir/ and the /some_dir/ is found on some partition on your disk, then all the changes made to the root filesystem will be saved to that directory. This works even if /some_dir/ is on NTFS or VFAT, thanks to posixovl overlay (an userspace filesystem, already included). Important note: if you plan to save changes on VFAT, make sure to modify your distribution's shutdown scripts. It must not execute killall, else posixovl is killed and everything is wrong. Instead, call the cleanup script from /mnt/live/cleanup. If a file is specified for the changes boot parameter, eg. changes=/path/file.dat, and the file has a valid filesystem inside, then the file will be loop-mounted and changes written to it. You may also use changes=/dev/sda1/path/ and changes=/dev/sda1/path/file.dat ... to specify particular device where to look for. Other devices will be skipped (will not be even mounted).
cheers,

Last edited by mrclisdue; 01-24-2009 at 01:30 PM.
 
Old 01-24-2009, 02:36 PM   #3
digby
LQ Newbie
 
Registered: Jan 2009
Location: california
Distribution: slax
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply. I use 'changes=/mnt/hda6/slaxsave.dat' to store my changes. It has worked beautifully for months. The amount of information on it, indeed, must rise and fall with continuing usage. My question involves the slaxsave.dat file, which is what I believe you call,the directory. I did indeed create it to my pre-decided fixed size of .5GB. I would like to know how much space in the directory is actually utilized at any particular time. (FWIW, I used 'puppy firehydrant' before Slax and it gave me my answer via the conky utility. But now I greatly prefer Slax which doesn't.) I would also like to know how to change the size of the directory, slaxsave, without losing data. Perhaps, there are bash commands that can do this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
persistent image overlay --live usb fedora 9 kalabharath Linux - Newbie 1 08-05-2008 07:10 AM
What makes a live distribution non-persisent? What would make it persistent? lumix Linux - General 10 06-16-2008 09:52 PM
Live user to Persistent ? a1234 Linux - Newbie 5 05-17-2008 04:04 PM
where is the persistent home option in Kubuntu 6.06 (live) alaios Ubuntu 4 01-26-2007 10:54 AM
Software to manage repos from multiple distros? cmichaelboyd Slackware 1 12-11-2005 01:28 AM


All times are GMT -5. The time now is 02:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration