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.
Every time I've installed & used linux in the past I have the same problem.
Im sure that its related to my lack of knowledge.
I have partitions set up like so:
500MB /
17 GB /usr
500MB swap
Now as I start installing new progs my root dir fills up 'til finally the system starts running crappy,
& nothing works. At boot up partmon tells me that ./ has <0> space.
I go in & rm some mp3s and stuff, then like magic everything starts running right. :P
My question is: What am I doing wrong? Why is this stuff filling up my root partion?
MF
I think you misunderstood what the usr directory is. You must of thought that that is the home directory for your users; am I right?
Well you need to make /home 17 gigs, because that is where every users home directory is. When you download stuff to from internet, using your user account, they will go to the /home/<username> directory, and since you have set / to be 500 megs it is filling this up.
I don't think that you need to set up a partition for /usr.
i guess the /usr is for the installed programs purposes...unless u are in need of many programs installed to be running on your system, then u need to setup large disk for /usr.
Basically, there are 3 partitions which need to be setup for, as for basic setup only, they are the /, /boot and the swap.
dun worry for a large disk on the / partition, as Linux filesystem is not prone to crashing always unlike windows filesystem
Checkout this O'Reilly site for a good general explanation of the Linux filesystem layout. The site also talks about what to allocate to each high level directory in the structure, but those guidelines are by no means mandatory.
If you are going to separate the directories under / into their own partitions, just remember what each directory is for and size based on your best guess. If you load a lot of software, then maybe /usr, or even /opt, may need to be big. If you download a lot of tunes or have a lot of documents, then maybe /home needs to be large.
On my present setup I have everything, except swap, under /. I have a new hard drive that I will install soon and will probably separate out /var, do some aggressive log rotation, and hopefully not fill it up too soon. But then again, mine is just a simple, non critical home use system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.