Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
If you look on my /dev/sda drive, I've only got like 3.7gb on root, I think thats because of my frequent updates of softwares, installing unncessary softwares. Now, what would be the steps for me to kind of audit that root directory or my linux to really minimize the applications installed on it. How would I know what are big things that really consumes the space, like on my home directory I have no idea what made that 17G of data, since most of the time I only place the drivers on it.
If all the data on my root is necessary right now, is it possible to kind of add a space on it by taking some gigs out of my /home directory?
And also when I look on "top", I always see that I only have like 500mb memory left out of my 2gb. I haven't installed a database yet on my laptop, the only things I've configured are my hardwares, installed skype, and pidgin. How would I be able to trace which processes I dont really need. For day to day, I only need this IM softwares, browser, and development tools for my database. I think I don't need the sendmail? cups? ( this are the things I see starting up ).
In short, I want to save space, and kind of save memory in hope of speeding up more my pc.
Thank you very much. Any help is really appreciated.
If you look on my /dev/sda drive, I've only got like 3.7gb on root, I think thats because of my frequent updates of softwares, installing unncessary softwares. Now, what would be the steps for me to kind of audit that root directory or my linux to really minimize the applications installed on it. How would I know what are big things that really consumes the space, like on my home directory I have no idea what made that 17G of data, since most of the time I only place the drivers on it.
If all the data on my root is necessary right now, is it possible to kind of add a space on it by taking some gigs out of my /home directory?
And also when I look on "top", I always see that I only have like 500mb memory left out of my 2gb. I haven't installed a database yet on my laptop, the only things I've configured are my hardwares, installed skype, and pidgin. How would I be able to trace which processes I dont really need. For day to day, I only need this IM softwares, browser, and development tools for my database. I think I don't need the sendmail? cups? ( this are the things I see starting up ).
In short, I want to save space, and kind of save memory in hope of speeding up more my pc.
Thank you very much. Any help is really appreciated.
Regards,
morton
Quote:
it seems like my root directory is near full sometime soon
Code:
/dev/sda2 9.5G 5.4G 3.7G 60% /
60% is "nearly full"? Is this one of those deep, philosophical "cup half empty/half full" ideas? But in truth, this partition really is smaller than it should be.
The remedy is to save your important data and reinstall Linux with a reasonable root partition size, like 20 GB (the definition of "reasonable" will change over time). And create a single large partition with the remaining space that contains everything else -- /home, /media/Softwares and /media/Data. There is no earthly purpose to all those extra partitions. All that will happen is that one of the partitions (that should be directories) will fill up sooner than you expect, and you will reinstall again, and again, and again.
Big hard drives serve no purpose if their free space is unavailable to you. The easy way to make your life complicated is to split your drive up into a bunch of pointless partitions, each of which cannot share space with the others. Those partitions should be directories.
Thank you very much for the reply. Sorry for my english on that, what I meant is that some time soon it will be filled fast. I got confused on having no partitions? I'm not sure but I got this idea before that if you did that partition on /home like it would be easier to mount or unmount new drives or something, I'm not sure I got that right.
So for now, your suggestion is to reformat and just do 2 partition for my linux? One for root, and the other one for the rest ( /home? )
The sdb is just my external drive.
And as for the memory/processes, do you have something in mind for me to be on the right track of working on that?
So for now, your suggestion is to reformat and just do 2 partition for my linux? One for root, and the other one for the rest ( /home? )
Well, you should include a swap partition. So three partitions altogether, one for filesystem root (/), a small one for swap, the remainder for everything else.
This way you can reinstall or upgrade Linux without having to restore all your personal data.
@lutusp - when you say 'for everything else', do you mean, that partition should not be one of the usual directories of linux, i.e. /usr, /home, so it should be like my own-named-direcotry, like /mydata?
The disk has 200GB and there are some other partitions with Linux on it which are temporarily not mounted. /dev/hda2 is /home for all my Linux-systems. The directorynames are self-explanatory I think. The PC is about 3 years old and I never reorganized the whole disk. I have 3GB of swap and 1.5GB of physical RAM.
Here the output of free -m
Make your swap 2x bigger than your total available memory. If you have 2GB of RAM then make your swap 4GB.
Old, outdated "rule" of thumb. Modern systems have so much RAM that this is not a rule anymore. If you're hibernating, then you need swap at least equal to your amount of RAM. If you're hitting swap constantly, then you need more RAM anyway. On the other hand, having some swap is good for the kernel to page out unused memory, and with disk space so cheap it wouldn't hurt. I'd go with 512MB swap max.
Quote:
Originally Posted by mortonmorton
And also when I look on "top", I always see that I only have like 500mb memory left out of my 2gb.
This is not a problem. Using all your memory is a Good Thing. The memory not used for applications is used for buffers and cache to speed up subsequent accesses. Use the "free" command to see where memory is going.
I don't have anything big running and I'm in fluxbox, WTH I thought. Believe it or not, if I reboot and start a huge app (lets say WoW) it will run just the same as if i run it right now with 71 megs free.
@lutusp - when you say 'for everything else', do you mean, that partition should not be one of the usual directories of linux, i.e. /usr, /home, so it should be like my own-named-direcotry, like /mydata?
Yes. The big remaining partition is for your data. That way, you can replace or upgrade Linux distributions without having to restore your data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.