The time now is Wed 22 May 2013, 02:05
All times are UTC - 4 |
| Author |
Message |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Thu 14 Jul 2005, 00:53 Post subject:
Prevent a file from being sent to "archive"? |
|
Ok, now that I've got a multisession puppy Cd working on my laptop, I've encountered a small problem.
I installed firefox, and using the -D option in the rc.reboot file, everything burns and restored correctly, *except* for one little problem...
The file "firefox-bin", which is the actual firefox browser, I think, is over 5MB in size, so at the end of every session, it gets moved to the "archive" folder on my newly burned session and is not restored on the next boot. So, I have to mount the CD and copy the file before I can use firefox. Is there a way to prevent a file of over 5mb from being moved to "archive" at the end of the session?
ND
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6856 Location: Perth, Western Australia
|
Posted: Thu 14 Jul 2005, 09:49 Post subject:
|
|
Hmmm, looks like I'll have to modify the shutdown script....
maybe make it something real big like 10M, anything over 10M gets moved to archive.
|
|
Back to top
|
|
 |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Fri 15 Jul 2005, 00:53 Post subject:
|
|
HI Barry,
The file in question is 9557K, which would be OK with a 10MB limit. However it seems to me that leaving everything under 10MB out of the archive folder would pretty much guarantee that not much of anything ever got sent to "archive". Other than video files, I don't think I have many files at all on my hard drive that are over 10MB. Would it be possible to leave the 5MB limit in place, but create some sort of special folder, the contents of which are never sent to "archive"? Then a user would have the option of either doing the install of large programs into that folder, or in this case I could put the firefox-bin file into this folder and create a symlink to it in my firefox directory. Is it possible? Would it be difficult to implement?
ND
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6856 Location: Perth, Western Australia
|
Posted: Fri 15 Jul 2005, 10:36 Post subject:
|
|
Well, I think I'll just make the size limit over 10M.
I think the shutdown code does move .tar.gz and .tar.bz2 files into /root/archive, of any size, which is probably more important to clean up.
|
|
Back to top
|
|
 |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Wed 20 Jul 2005, 09:10 Post subject:
|
|
Hey Barry,
Did you forget to implement this change in puppy 1.0.4? I'm still getting the "the following files will be moved to "archive"" message. And my rc.reboot-cd file still has the file size limit of "5000k". I've tried to edit rc.reboot-cd by hand and change it to "10000k", but it has no effect at shut down. anything over 5MB is still moved to archive. So, I still lose firefox-bin every time (which, just as a little reminder, is 9557k. So a limit of 9000k in rc.reboot-cd won't quite be enough.)
ND
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6856 Location: Perth, Western Australia
|
Posted: Wed 20 Jul 2005, 22:17 Post subject:
|
|
Hmm, okay, maybe it is a problem with the /etc/rc.d/rc.reboot-cd file.
The latest one from the CD is not being used.
The file should have a modify date of 16 July.
If it is the wrong file, you could rename it or delete it, then
change /etc/puppyversion back to 103, then reboot.
The latest should then load.
|
|
Back to top
|
|
 |
nduanetesh
Ultra Super-stud
Joined: 05 May 2005 Posts: 168
|
Posted: Fri 22 Jul 2005, 20:59 Post subject:
|
|
Yeah, Barry, that was the problem. I have no idea how it happened, though, as I booted a brand new puppy 1.0.4 CD and didn't upgrade from my previous CD...I did, however, mount the previous CD to copy the firefox installer from it...maybe I inadvertantly screwed something up during that time (like trying to reboot with the old CD inserted?).
Anyway, I made a new 1.0.4 CD and booted from it, didn't do an upgrade or anything (even downloaded firefox anew) and everything is working great. Firefox-bin doesn't get archived, and long filenames are no longer a problem.
Great work, Barry!
ND
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|