Filling up root

Hi

I did tack this on the bottom of this post:
Backup or archive? Command line or application? - openSUSE Forums

But I think it maybe a more serious situation and it might be better here. I had thought that I understood the partition system for linux, but fear I am wrong.

I have noticed that my / has a red bar stating there is only 302 MB left of my 16 GB.

Someone replied on my other post and said that my /tmp folder probably needed a clean out.

I found another thread which said delete everything in /tmp and someone else saying, it is a mistake to do that if you don’t know what you are doing. I turn my machine on in the morning and turn it off at night, so I presume my /tmp is cleared every night.

When I clicked on the 16 GB all the folder came up including my second drive, my home directory. So now I am a bit confused.

I couldn’t check through properties the size of ‘lost & found’ and root.

None of the folders were over 300 mb, in fact /tmp was only 158.5 mb. Only one other was big and that was /proc at 448 mb and /usr at 3.9 GB.

Also listed were my second hard drive at 28.2 GB, /home at 7.4 GB.

So my questions are,
What should I do about the lack of space on /?
What really is in / partition?

Thank you in advance.

Clear Temp Files at Boot - openSUSE Forums

Hi

Thank you for that. Very clear instruction with screenshots. By my reckoning that will give approximately an extra 150 mbs, is there anything else I need to do?

Regards

do what caf said and then if still in need of space look and see if
you have some HUGE log files in /var/log…

if so, use the forum’s search to find threads (as recent as the last
couple of days and as old as YEARS) to learn about the safe/effective
way to keep log files under control [logrotate]…


palladium

Thank you for that. The /var is 310 mb and /var/log is 27.4 mb. That does not seem very large to me?

/usr is 3.9 GB. It is the largest folder that I know I didn’t put on a partition. All the other are under 300 mbs apart from /proc which is 448 mbs.

Maybe I should have made more space for /? I thought it would be enough as I thought Suse 11.1 was only about 5GB

Regards

> Maybe I should have made more space for /? I thought it would be
> enough as I thought Suse 11.1 was only about 5GB

well, it depends on what you installed initially and what you have
added since the figures you quoted

/var 310 mb
/usr 3.9 GB
/proc 448 mb
/tmp 158.5

would put you probably about 6 or 7 GB…i guess all the rest is in
home…videos and music gobbles it up…

do this


df -ah

and you will get more details…come back with questions and copy past
that output, if you do…

CAUTION here are some rules i follow myself:

  1. if you do not know what it does, do not delete it! (unless you like
    repairing user killed systems)

  2. if you what it does and want to delete it: then pretend deleting
    it by renaming or moving the file/directory…and if in a few days or
    months! everything is still working ok, THEN delete it…

  3. every time you use the rm command always add the -i switch (will
    ask you do you really wanna remove blah blah)

  4. rm with the switches -f -r or -R are so dangerous read the commmand
    you typed THREE times before you push enter…and NEVER EVER use f r
    or R with i, EVER

by the way, my (non-home containing) root is up to 13.2 GB…so . . .


palladium

/var/log/warn can take up a lot of space especialy if the kernel goes int an endless loop

check
ls /var/log -l -h

This is what

df -ah

gives me:

@linux-5oez:~> df -ah
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              16G   15G  463M  97% /
/proc                    0     0     0   -  /proc
sysfs                    0     0     0   -  /sys
debugfs                  0     0     0   -  /sys/kernel/debug
udev                  217M  252K  217M   1% /dev
devpts                   0     0     0   -  /dev/pts
/dev/sda5              29G   15G   13G  53% /home
/dev/sda1              15G  7.1G  7.1G  51% /windows/C
/dev/sdb1              39G   21G   18G  55% /windows/D
fusectl                  0     0     0   -  /sys/fs/fuse/connections
securityfs               0     0     0   -  /sys/kernel/security
none                     0     0     0   -  /proc/sys/fs/binfmt_misc

I don’t know if that is of any help?

I do not appear capable of typing the above?

ls /var/log-l-h
ls: cannot access /var/log-l-h: No such file or directory
nappy@linux-5oez:~> cd /
nappy@linux-5oez:/> ls /var/log-l-h
ls: cannot access /var/log-l-h: No such file or directory
nappy@linux-5oez:/> su
Password:
linux-5oez:/ # ls /var/log-l-h
ls: cannot access /var/log-l-h: No such file or directory
linux-5oez:/ # ls/var/log-l-h
bash: ls/var/log-l-h: No such file or directory

It’s like this

ls /var/log -l -h

Copy and paste it

ls (space) /var/log (space)-l (space) -h
-l is list -h is human readable

> --------------------
> @linux-5oez:~> df -ah
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda3 16G 15G 463M 97% /
> /proc 0 0 0 - /proc
> sysfs 0 0 0 - /sys
> debugfs 0 0 0 - /sys/kernel/debug
> udev 217M 252K 217M 1% /dev
> devpts 0 0 0 - /dev/pts
> /dev/sda5 29G 15G 13G 53% /home
> /dev/sda1 15G 7.1G 7.1G 51% /windows/C
> /dev/sdb1 39G 21G 18G 55% /windows/D
> fusectl 0 0 0 - /sys/fs/fuse/connections
> securityfs 0 0 0 - /sys/kernel/security
> none 0 0 0 - /proc/sys/fs/binfmt_misc
>
> --------------------
>
> I don’t know if that is of any help?

i may be wrong, but to me it looks like you have 15 GB of stuff in
/home but still have 13 GB there which is not used, whereas your root
partition (/) has used 15 of its available 16 GB (so, it seems your
system install wasn’t anywhere near the 5 GB you anticipated (i wonder
where you got that expectation, anyway?)

and, you have about 25 GB unused space dedicated to Redmond…

there are several ways to move stuff around and give more space to
that now crowded root…but, i know very little about that since i
usually make the initial layout with at least 20 to 25 GB for root,
and all the rest to /home /archive and etc…

perhaps someone else can guide you to a way to expand your / directory…


palladium

That worked!

linux-5oez:~> ls /var/log -l -h
total 27M
-rw-r----- 1 root root  31K 2010-01-09 09:38 acpid
drwx------ 5 root root 4.0K 2008-12-09 22:16 apparmor
drwx------ 2 root root 4.0K 2009-07-05 16:02 audit
-rw-r----- 1 root root    0 2008-12-09 21:59 boot.log
-rw-r--r-- 1 root root  36K 2010-01-09 09:38 boot.msg
-rw-r--r-- 1 root root  37K 2010-01-08 23:53 boot.omsg
drwxr-xr-x 2 root root 4.0K 2009-07-05 16:57 ConsoleKit
drwxr-xr-x 2 lp   lp   4.0K 2009-12-10 00:16 cups
-rw-r--r-- 1 root root 2.3M 2010-01-09 09:38 cups-autoconfig.log
-rw------- 1 root root 2.6K 2009-10-16 15:59 faillog
-rw-r----- 1 root root 933K 2010-01-09 09:38 firewall
drwxr-x--- 2 gdm  gdm  4.0K 2008-12-04 17:06 gdm
-rw-r--r-- 1 root root 1.1M 2010-01-09 09:39 kdm.log
drwx------ 2 root root 4.0K 2009-04-06 16:30 krb5
-rw-r--r-- 1 root tty  286K 2010-01-09 09:39 lastlog
-rw-r----- 1 root root 246K 2010-01-09 09:38 localmessages
-rw-r----- 1 root root  56K 2010-01-09 09:38 mail
-rw-r----- 1 root root  409 2009-07-05 16:02 mail.err
-rw-r----- 1 root root  55K 2010-01-09 09:38 mail.info
-rw-r----- 1 root root    0 2008-12-09 21:59 mail.warn
-rw-r----- 1 root root 445K 2010-01-09 11:38 messages
-rw-r----- 1 root root 313K 2009-12-24 20:31 messages-20091224.gz
-rw-r----- 1 root root    0 2008-12-09 21:59 NetworkManager
drwxr-x--- 2 news news 4.0K 2008-12-09 22:29 news
-rw-r--r-- 1 root root    0 2008-12-09 21:59 ntp
-rwxr-xr-x 1 root root  955 2009-10-21 20:18 PackageKit
-rw-r----- 1 root root 8.1M 2010-01-09 09:41 pk_backend_zypp
-rw-r----- 1 root root  11M 2009-12-20 22:51 pk_backend_zypp-1
-rw-r--r-- 1 root root   76 2010-01-09 09:40 pm-powersave.log
drwxr-x--- 2 root root 4.0K 2009-09-30 21:17 samba
-rw-r--r-- 1 root root  38K 2009-07-05 20:11 SaX.log
-rw-r--r-- 1 root root  17K 2010-01-08 20:42 scpm
-rw-r----- 1 root root 372K 2010-01-09 09:39 warn
-rw-rw-r-- 1 root tty  100K 2010-01-09 11:46 wtmp
-rw-rw-r-- 1 root tty   14K 2009-08-05 19:16 wtmp-20090805.gz
-rw-rw-r-- 1 root tty   13K 2009-09-01 21:16 wtmp-20090901.gz
-rw-rw-r-- 1 root tty   13K 2009-09-29 17:32 wtmp-20090929.gz
-rw-rw-r-- 1 root tty   13K 2009-10-31 20:45 wtmp-20091031.gz
-rw-rw-r-- 1 root tty   13K 2009-12-02 21:01 wtmp-20091202.gz
-rw-rw-r-- 1 root tty   13K 2009-12-31 20:31 wtmp-20091231.gz
drwxr-xr-x 2 root root 4.0K 2009-09-09 19:09 xen
-rw-r--r-- 1 root root  34K 2010-01-09 09:38 Xorg.0.log
-rw-r--r-- 1 root root  35K 2010-01-08 23:53 Xorg.0.log.old
-rw-r--r-- 1 root root  34K 2009-07-09 21:37 Xorg.1.log
-rw-r--r-- 1 root root  34K 2009-07-09 21:31 Xorg.1.log.old
-rw-r--r-- 1 root root  35K 2009-07-05 20:11 Xorg.99.log
-rw-r--r-- 1 root root  22K 2009-07-05 15:59 Xorg.99.log.old
drwx------ 2 root root 4.0K 2010-01-05 12:43 YaST2
drwxr-xr-x 2 root root 4.0K 2009-10-28 01:47 zypp
-rw-r----- 1 root root 1.3M 2010-01-06 19:30 zypper.log
-rw-r----- 1 root root 973K 2009-12-02 21:01 zypper.log-20091202.gz

It only looks like 27 mb

Regards

opensuse 11.2 unable to create / partition >20gb - openSUSE Forums

dale14846 wrote:
> ‘opensuse 11.2 unable to create / partition >20gb - openSUSE Forums’
> (http://tinyurl.com/yeaa9ec)

there must be a point to your posted comment–but it is beyond me to
figure out what it is…

care to elaborate?


palladium

Got me that one too…:slight_smile:

Actually its more than 27 mb
the subdirectories are reported as only 4kb check the sizes of the directories in /tmp if there are any hogs delete them

I had bootchart running in my sandbox partition (openSUSE 11.3)
and that very quickly filled up that root partition

check with konqueror and in the view menu > veiw mode see if there is a file size veiw There is in kde4.4 don’t know about kde4.3

That thread contains inf on how to resize partitions that I thought would help but I think resizing would only be a temporary fix
refer my previous post


Why is a resize a temporary fix? I have contemplated doing a clean install and changing the size of the partitions.

Regards

Just had time to do this:
apparmor 16.0 kb
samba 4.0 kb
audit 58.9 kb
smppd 4.1 kb
consolekit 174.0 kb
xen 4.0 kb
cups 1.4 mb
Yast2 15.4 mb
gdm 4.0 kb
zypp 360.0 kb
krb5 4.0 kb
news 4.0 kb

Those are the size of the folders in /var/log.

Regards