Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 12:30
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Keep your savefile slim and healthy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 8 [107 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Tue 07 Jan 2014, 12:29    Post subject:  

fsck is used, here is my menu.lst

Code:
title Puppy precise 5.7.1 (sda1/precise5.7.1frugal)
  uuid 1636d0f9-5ac7-4bec-af1c-b9832d101d44
  kernel /precise5.7.1frugal/vmlinuz   psubdir=precise5.7.1frugal pmedia=atahd pfix=fsck
  initrd /precise5.7.1frugal/initrd.gz


My cache dir. is all right. I suggest that my usr/lib directory could be the sinner. GDmap shows me files of 5-15 MB here. Could files somehow been dowloaded here? I have no other idea.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Tue 07 Jan 2014, 13:31    Post subject:  

From another post it seems like t\you had files left in the trash which might account for the space loss.

mike
Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Fri 10 Jan 2014, 10:29    Post subject:  

I found some suspicious files:

/root/.config/.openoffice/4/user/uno_packages/cache/uno_packages/sve81rb0.tmp_/dict-en.oxt/th_en_US_v2.dat (18mb)
What is this cache?

I just unloaded my browser's cache (now it is 1,4MB). What is it:
/root/.cache/mozilla/firefox/z4poujvs.default/Cache/_CACHE_003_ (16mb)

I have two big directories in pup_rw: /usr/lib (256MB) and /root (100MB)
the first one is clear, I checked the files in its subdirectories as weel, the last modification happened in December.

The most suspicious one is /root. If it is, it means, on Sunday, it just was 20MB. Is this size imaginable for root?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Fri 10 Jan 2014, 10:58    Post subject:  

Hmm i am not 100% if that open office cache is actually the file used or not../root is where addon on packages are kept..you could hide the file and see if it still works. Open office file structure is a bit of a confusing one.. By the way that's the thesaurus not the dictionary. If you don't need it remove it in settings rather than just delete.

Set browser cache to 0 and then clear it...it should then remain empty.

Quote:
I have two big directories in pup_rw: /usr/lib (256MB)
...so this is empty ...you just giving the size of /usr/lib...sorry not quite sure if that is what you meant.

mike
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4465
Location: Gatineau (Qc), Canada

PostPosted: Fri 10 Jan 2014, 11:24    Post subject:  

fobq wrote:
I found some suspicious files:

/root/.config/.openoffice/4/user/uno_packages/cache/uno_packages/sve81rb0.tmp_/dict-en.oxt/th_en_US_v2.dat (18mb)
What is this cache?

I just unloaded my browser's cache (now it is 1,4MB). What is it:
/root/.cache/mozilla/firefox/z4poujvs.default/Cache/_CACHE_003_ (16mb)

I have two big directories in pup_rw: /usr/lib (256MB) and /root (100MB)
the first one is clear, I checked the files in its subdirectories as weel, the last modification happened in December.

The most suspicious one is /root. If it is, it means, on Sunday, it just was 20MB. Is this size imaginable for root?


Hello, fobq.

Susupicous ? hehe. Absolutely not ! They are all part of your system.

In particular the files in /initrd/pup_rw/: this directory is actually the original
read-and-write (rw) component of your Puppy. If you go in /initrd/, you'll also see
"pup_ro" (read-only) folders : the "ro" folders are the folders in the Puppy sfs file
and are read-only, they make your basic Puppy.

Technically, in Puppy, all "pup_ro" folders are in the unchangeable Puppy squash
(sfs). file and all "pup_rw" are in your editable "pupsave".?fs file.

The folders in "rw" are actually your active, "living", Puppy system. Puppy is made
so we don't actually work in/initrd/pup_rw/usr or /initrd/pup_rw/root, it would be too
cumbersome, so it has sort of an "identical twin" that appears to us users simply as
/root, /usr, etc.

20 Mb for an active /root ? No problem, I've got the same on my Puppy.

/root/.config/.openoffice/4/user/uno_packages/cache/uno_packages/sve81rb0.tmp_/dict-en.oxt/th_en_US_v2.dat (18mb)
is the American English Thesaurus used by your OpenOffice 4.
American English is a complex and articulate language, you know (where is the
tongue-in-cheek icon! ), it takes a lot of room on a disk, especially for synonyms
and such ! Smile

/root/.cache/mozilla/firefox/z4poujvs.default/Cache/_CACHE_003_ (16mb). This is
one of Mozilla Firefox's caches. This one is for minor elements that do not go in
the usual /root/.mozilla/< your personal alphanum code> folder, for some reason.
I'm not a mozilla programmer, but all mozilla-family programs (seamonkey,
iceape, firefox, compozer, etc.) are made that way, with user folders in two places.

So I'd say your Puppy is quite healthy, nothing suspicious at all in it. I hope the
above helped in answering your questions.

BFN.

Last edited by musher0 on Fri 10 Jan 2014, 11:34; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Fri 10 Jan 2014, 11:30    Post subject:  

The query was about /root going from 20mb to 100mb ... browser most likely

mike
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4465
Location: Gatineau (Qc), Canada

PostPosted: Fri 10 Jan 2014, 11:48    Post subject:  

mikeb wrote:
The query was about /root going from 20mb to 100mb ... browser most likely

mike


Hi, mikeb,

Browser, yes, and perhaps if fobq has "thumbnails on" in the ROX options,
/root/thumbnails/normal can fill up pretty quickly. And he's using OpenOffice, so
OO has its own config and the personal profile stuff at /root/.config/OpenOffice or
some similar name.

@fobq:
Maybe you don't know this: to space some space in your pupsave file, you can
create a "My-Stuff" folder in /mnt/home. Move all the big files in /root -- and in /root
only -- in it, and bring them back to their original place as links. That will save a lot
of space in your pupsave.

This is what I have in mine: (see attached pic). I use KingsoftOffice instead of
OpenOffice, but I'm sure you're getting the idea.

BFN.
My-Stuff_folder-example.jpg
 Description   
 Filesize   13.69 KB
 Viewed   427 Time(s)

My-Stuff_folder-example.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Fri 10 Jan 2014, 11:53    Post subject:  

must not forget the /initrd/pup_ro1 for usb users... which is read/write ... pup_rw gets copied to there at shutdown.

I tend to disregard thumbnails as they get wiped each reboot. (ok mine do not but after 30 days they do)

Pup save space... the final front ear.
To boldly fill like no other file has been filled before...boldly

mike
Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Sat 11 Jan 2014, 05:28    Post subject:  

Quote:
...so this is empty ...you just giving the size of /usr/lib...sorry not quite sure if that is what you meant.

I mean usr/lib is 256 MB but it is ok, I found no big files modified in January.

Thanks, I also use the symlink option.

And if we are talking about this file:
/root/.config/.openoffice/4/user/uno_packages/cache/uno_packages/sve81rb0.tmp_/dict-en.oxt/th_en_US_v2.dat (18mb)
how could it been downloaded/created/modified by itself, what option is responsible for this? How can I prevent similar events?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Sat 11 Jan 2014, 07:24    Post subject:  

the thesarus comes with open office.... only way to not include it is to not include it with the package.
When you first run it gets copied from /opt to /root.
mike
Back to top
View user's profile Send private message 
fobq

Joined: 19 Aug 2013
Posts: 101
Location: Hungary

PostPosted: Sat 11 Jan 2014, 08:59    Post subject:  

I see. In this case it is innocent. I installed OO in December.
I have no other idea. Now I change to an observing position, and wait what happens. I have also several other thing to learn about Puppy.

Mikeb, as I remember you wrote somewhere you used only sfs packages.
I would like to learn more about this way and creating sfs packages. Could you recommend me an article dealing with it for beginners?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Sat 11 Jan 2014, 09:15    Post subject:  

well at least you know where to look and a tool to help now. Smile

Hmm sfs article...nothing comes to mind.

I don't recall there being a pet2sfs tool but others may know of one.

Perhaps if I tell you how its made on the command line that might be a start.

An sfs is just an archive made from a file tree in a folder... in other words the files as they appear when added to puppy. (note it must be done in ext2/3/4)

So for example if you extracted a pet ...rename it to tar.gz ... and the contents were in folder MyProgram you would use

mksquashfs /path/to/MyProgram /path/to/MyProgram.sfs


done... the source folder could be an extracted deb, or rpm or built from sources.

Once made, the sfs can be loaded on the fly from the menu or added to the bootconfig list to load at boot.

If you click on an sfs you can browse the contents...this might help clarify what they are.

Lighthouse pup and lazy puppy are 2 examples of pups that focus on sfs usage. There is also slax/porteus that only use sfs modules.

Hope that helps and questions are welcome.

mike
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 3452
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 11 Jan 2014, 23:02    Post subject: /opt is save in save files ?  

The biggest problem I am facing is, whatever is installed in /opt, takes space in savefile.
Really ? please confirm that opt is saved each time. I am surprised.
Back to top
View user's profile Send private message Yahoo Messenger 
musher0


Joined: 04 Jan 2009
Posts: 4465
Location: Gatineau (Qc), Canada

PostPosted: Sun 12 Jan 2014, 05:32    Post subject:  

@pelo : yes, /opt is an integral part of any Linux system, Puppy or not.

@mikeb et al.
dir2sfs is the sfs tool in Puppy. Let's saythat you just unpacked a program in a folder
named NewProgram on /mnt/sda1. In console, you go to /mnt/sda1 and type dir2sfs
NewProgram and it creates the sfs archive for you. Like so:

Code:
cd /mnt/sda1
dir2sfs NewProgram


It basically does that same thing that you just described: it's a wrapper for mksquasfs.

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 9067

PostPosted: Sun 12 Jan 2014, 09:22    Post subject:  

Well one of the most pointless wrappers ever... it seems to do the same as the original command... Very Happy

But regardless I was thinking more in terms of pet2sfs ... in slax I have deb2lzm and tgz2lzm for slackware which are handy tools for quick tests.

The process is so simple it hardly warrents a wrapper really... an understanding of a linux file tree and the usual unpacking tools are all thats needed.

The only other point is compatability...sfs is not backwards compatible and versions 3 and 4 are not even that...as long as the sfs is made on the distro it will be used for then there is no problem.

As it happens I build my version 3 sfs on puppy 2 so it works for all. Version 4 I do with lucid for similar reasons. mksquashfs and unsquashfs are not tied to kernel versions either so building can be done outside of the kernel needed but that will not include the ability to use such as lzma or xz to create (unpack ok)

just to fill in a few blanks.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 8 [107 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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
[ Time: 0.0933s ][ Queries: 12 (0.0067s) ][ GZIP on ]