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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-24-2009, 12:48 PM
|
#1
|
LQ Newbie
Registered: Jan 2009
Location: california
Distribution: slax
Posts: 2
Rep:
|
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)?
|
|
|
01-24-2009, 02:25 PM
|
#2
|
Senior Member
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135
|
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 02:30 PM.
|
|
|
01-24-2009, 03:36 PM
|
#3
|
LQ Newbie
Registered: Jan 2009
Location: california
Distribution: slax
Posts: 2
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 11:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|