LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-13-2005, 08:02 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
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
 
Old 03-13-2005, 08:19 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
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.
 
Old 03-13-2005, 08:28 AM   #3
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-13-2005, 08:30 AM   #4
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30


Next post

Last edited by amer_58; 03-13-2005 at 08:37 AM.
 
Old 03-13-2005, 08:36 AM   #5
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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....
 
Old 03-13-2005, 09:15 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 03-13-2005, 09:18 AM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 03-13-2005, 09:19 AM   #8
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-13-2005, 09:39 AM   #9
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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
 
Old 03-13-2005, 09:41 AM   #10
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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....
 
Old 03-13-2005, 09:46 AM   #11
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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?
 
Old 03-13-2005, 09:51 AM   #12
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-13-2005, 09:59 AM   #13
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
Old 03-13-2005, 10:00 AM   #14
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
$ chown -R createuser.users *

where createuser = name_of_user_you_created
 
Old 03-13-2005, 10:26 AM   #15
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xircom CreditCard 10/100 CE3-10/100 driver not loaded under FEDORA or RHEL androphag Linux - Laptop and Netbook 1 02-06-2005 02:35 AM
Root file system shows 100% percent utilization simplyrahul Linux - Software 1 11-26-2004 11:53 AM
RBEM56G-100 Xircom RealPort Cardbus Ethernet 10/100+Model 56 Linux Drivers/ Phalk sxa Linux - Laptop and Netbook 1 06-12-2004 12:20 PM
root partition shows 100% full in RH 7.2 dmcmurray5 Red Hat 2 05-18-2004 04:24 PM
XMMS crash, 100% cpu, even root cant kill it? gundelgauk Linux - Software 12 11-01-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration