Linux - Newbie This 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.
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.
|
|
|
03-13-2005, 08:02 AM
|
#1
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Rep:
|
root 100% use
My root folder is full..
Was it wrong just to have 1GB for root... However; What options do I have now, Can I max the size of root by taking space of other partitions....
Code:
root@Admin:~# df /home
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda8 26158884 32832 24775792 1% /home
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 972564 972564 0 100% /
root@Admin:~# df /opt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda7 2847720 578620 2122108 22% /opt
root@Admin:~# df /usr
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 8045404 2481504 5148624 33% /usr
|
|
|
03-13-2005, 08:19 AM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
You have probably filled up /var and /tmp, boot with a rescue disk and clear these folders out.
It is a good idea to have separate partitions for /tmp and /var then make root as small as possible.
|
|
|
03-13-2005, 08:28 AM
|
#3
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
hmm, what are you storing in the / folder. tells me you are most likely using the root account for things other than system maintence, which is not a good thing to be doing.
|
|
|
03-13-2005, 08:30 AM
|
#4
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
Next post
Last edited by amer_58; 03-13-2005 at 08:37 AM.
|
|
|
03-13-2005, 08:36 AM
|
#5
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
Quote:
Originally posted by chbin
hmm, what are you storing in the / folder. tells me you are most likely using the root account for things other than system maintence, which is not a good thing to be doing.
|
you are right, sth that I dont understand i though I was suppose to save all my files on my home directory and the icon which is placed on my desktop "Home" if i open it it will open the root directory...so basically I have saved all my files on the root dir...
Am I missing anything....
|
|
|
03-13-2005, 09:15 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
so /root = "home"? in that case you're running X as root, which is really stupid idea. you should be runnign X as a normal user, then all your files would go to /home/username/
BUT again you seem a bit confused about the whole partition thing... what says what is actually full? please run "df -h" in a console and show us the EXACT output, so we can see for ourselves what the situation is.
|
|
|
03-13-2005, 09:18 AM
|
#7
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Are you logging in as root rather than a normal user? That's the impression I get from what you say about clicking your home icon... if that's the case then DON'T! Create yourself a proper user (adduser <name>) will do it and don't sign in as root unless you really really need to do some sort of specific system task.
Oh, and fire up knoppix and use qtparted to resize your partitions a little.
|
|
|
03-13-2005, 09:19 AM
|
#8
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
well make an account with
$ adduser
and use it for day to day stuff. then it would be impossible for that user to create any files on the / directory as he doensn't have permission.
running around you machine as root is dangerous. far to much power to break things. Also, running things like firefox and downloading files as root is a security nightmare. In fact there is never any reason to log into X as root in the first place. root should only be used for system maintenence, upgrading packages, compiling and installing code, editing /etc files, etc.
|
|
|
03-13-2005, 09:39 AM
|
#9
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
after you created a new user. log in as root . going into the /root directory and mv anything you want to keep into /home/createduser dir. chmod createuser.users *.
then if you like. just to make things clean. go back into /root and do a rm -r * and rm -r .* to get rid of all the X,kde,gnome and whatever config files that shouldn't be there in the first place. I like the root directory being clean.
then just in case, go into /tmp as root and do an rm -r * and rm -r .*. reboot. you are now clean. log into created_user and then X and then firefox or whatever you like.
your /var directory shouldn't be a problem because crond uses logrotate to keep it stable, unless of course you are running a mail server or something, but for some reason I seriously doubt that
|
|
|
03-13-2005, 09:41 AM
|
#10
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
Thanks guys, as far as for df -h this is what I get:
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 950M 483M 419M 54% /
/dev/hda6 7.7G 2.4G 5.0G 33% /usr
/dev/hda7 2.8G 566M 2.1G 22% /opt
/dev/hda8 25G 208M 24G 1% /home
/dev/hda1 37G 10G 27G 28% /windows
I have copied my personal folders from /root into /home....
|
|
|
03-13-2005, 09:46 AM
|
#11
|
Member
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213
Original Poster
Rep:
|
In my I have these files in m /tmp:
gconfd-root/ kde-root/ ksocket-root/ mcop-root/ orbit-root/ scrollkeeper-root/ tmp.xpi
is it ok to delete them?
|
|
|
03-13-2005, 09:51 AM
|
#12
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
you could delete everything in /tmp. it only becomes a problem if you are on multi-user system with someone else logged on at the same time you are deleting everything in /tmp directory, because will you are deleting it they may be changing it. since you are only logged in as root and no one else is logged into your machine go ahead and do a
$ rm -r *
and
rm -r .*
then reboot. YES IT IS PERFECTLY SAFE. DON'T WORRY NOTHING WILL BREAK.
|
|
|
03-13-2005, 09:59 AM
|
#13
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
also go back into you /home/created_user directory as root and do a
$ chown -R createuser.users *
this will make all those files you moved into it from root accessable my you genernal user.
then log out and log back into you created user and don't use root anymore except for the things we have said.
|
|
|
03-13-2005, 10:00 AM
|
#14
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
$ chown -R createuser.users *
where createuser = name_of_user_you_created
|
|
|
03-13-2005, 10:26 AM
|
#15
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
You have probably filled up /var and /tmp, boot with a rescue disk and clear these folders out.
It is a good idea to have separate partitions for /tmp and /var then make root as small as possible
deleting the /tmp directory in single user mode can be done with a rescue disk.
also deleting everything /var will break stuff unless you recreate the directory structure and touch certain files that need to be there. For instance, if you delete a file that is being used by syslog then even after reboot syslog wont recreate it, unless you do a touch file first.
|
|
|
All times are GMT -5. The time now is 10:28 AM.
|
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
|
|