/dev/sda2 full

Hi,

Thank you in advance for any help or advice.

I am running 11.4.

I recently saw that /dev/sad2 was full:


Filesystem            Size  Used Avail Use% Mounted on
rootfs                 20G   19G   11M 100% /
devtmpfs              2.0G  188K  2.0G   1% /dev
tmpfs                 2.0G  2.4M  2.0G   1% /dev/shm
/dev/sda2              20G   19G   11M 100% /
/dev/sda3             896G   13G  882G   2% /home


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4208639     2103296   82  Linux swap / Solaris
/dev/sda2   *     4208640    46153727    20972544   83  Linux
/dev/sda3        46153728  1953523711   953684992   83  Linux

Now, i installed opensuse from scratch, and as far as i am aware, didnt knowlingly partition anything.

I don’t see why the smaller (20G) is being used as root?

Is it possible to change root to be sda3?

I am also unsure as to how to find out what is taking up the space.

Many thanks.

Regards, samwootton

Here is the output of mount:


devtmpfs on /dev type devtmpfs (rw,relatime,size=2021264k,nr_inodes=505316,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda2 on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda3 on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,relatime)

In my home dir, i see i am already on sda3, with lots of space (/home/sam):


df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             896G   13G  882G   2% /home

Normally, 20G should be more than adequate for the root file system.

You might check what is filling it up. See if there is a large file in “/tmp” or in “/var/tmp”

With 12.1 installed, my root file system is using 8.2G. That’s with KDE, Gnome, XFCE and LXDE all installed, and with tex/latex (a rather large software suite) also installed.

On 2012-03-08 20:46, samwootton wrote:

> I recently saw that /dev/sad2 was full:

Well, then, use tools to find out what exactly is filling that space. In
the terminal, you can use “du” with the appropriate options. Or you can use
Midnight Commander (mc): menu/command/show directory sizes. If you use
gnome, try baobab - provided you have it installed already and the graphics
system works.

> PHP code:

Please use plain code tags.

> Now, i installed opensuse from scratch, and as far as i am aware, didnt
> knowlingly partition anything.
>
> I don’t see why the smaller (20G) is being used as root?

Why not? Typically home is made bigger than root.

> Is it possible to change root to be sda3?

If you wish… you can do whatever you like. Or you can choose your own
sizes. :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Note that some databases may default to living on /. Generally this is not a problem unless you are using very large data sets. If this is your case then you should move said database to their own partitions. If not is is most likely temp files.

And please after the searching for what fills up your root partition, or when you need more help in interpreting what you found, do not use PHP tags, but the bit more hidden CODE tags. It is no PHP and we get the headache from those colours:
http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

Hi,

Thank you for everyones help.

Apologies for using the PHP tags, i’ll use CODE tags in future.

I ran:


find / -type f -size +80000k -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'

I did have an Informix database that was taking up some room, on root:


/opt/IBM/informix_data/rootdbs: 196M
/opt/IBM/informix_data/rootdbs.bak: 196M
/opt/IBM/informix_data/datadbs: 1.0G
/opt/IBM/informix_data/datadbs.bak: 1.0G
/opt/IBM/iif.11.70.FC1IE.linux-x86_64/iif.11.70.FC1IE.linux-x86_64.tar: 392M
/opt/IBM/iif.11.70.FC1IE.linux-x86_64/ids_install: 324M

So i removed and uninstalled that. That freed up some space :]

Currently these are my big files:


/var/tmp/kdecache-root/plasma_theme_openSUSEdefault.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_internal-system-colors.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_Volatile.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_Amarok-Mockup.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_default.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_openSUSEdefault.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_air-netbook.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_Aya.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_Androbit.kcache: 81M
/var/tmp/kdecache-sam/plasma_theme_Glassified.kcache: 81M
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/resource1: 256M
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/resource1_wc: 256M
/tmp/install.dir.12754/InstallerData/Disk1/InstData/Resource1.zip: 253M
/tmp/install.dir.12754/Linux/resource/vm.tar: 101M
/tmp/install.dir.12435/InstallerData/Disk1/InstData/Resource1.zip: 253M
/tmp/install.dir.12435/Linux/resource/vm.tar: 101M
/tmp/install.dir.25595/InstallerData/Disk1/InstData/Resource1.zip: 253M
/tmp/install.dir.25595/Linux/resource/vm.tar: 101M
/tmp/install.dir.12595/InstallerData/Disk1/InstData/Resource1.zip: 253M
/tmp/install.dir.12595/Linux/resource/vm.tar: 101M
/tmp/install.dir.12910/InstallerData/Disk1/InstData/Resource1.zip: 253M
/tmp/install.dir.12910/Linux/resource/vm.tar: 101M
/home/sam/.IdeaIC10/system/index/idindex/IdIndex.values: 98M
/home/sam/.IdeaIC10/system/caches/content.dat.storageData: 642M

Im not sure what /tmp/install.dir. is?

And these in my home:


/home/sam/.IdeaIC10/system/index/idindex/IdIndex.values: 98M
/home/sam/.IdeaIC10/system/caches/content.dat.storageData: 642M
/home/sam/IBM/iif.11.70.FC1IE.linux-x86_64.tar: 392M
/home/sam/IBM/iif.11.70.FC1DE.linux-x86_64.tar: 392M

So now my space looks like:


Filesystem            Size  Used Avail Use% Mounted on
rootfs                 20G   15G  4.5G  76% /
devtmpfs              2.0G  188K  2.0G   1% /dev
tmpfs                 2.0G  2.3M  2.0G   1% /dev/shm
/dev/sda2              20G   15G  4.5G  76% /
/dev/sda3             896G   12G  883G   2% /home

Many thanks for your help!

Regards, samwootton

It is of course allways a good thing to have a datbase of some importance/size on a separate file system. Like a separate /home it is then easy to keep over installs.

YaST > System > /etc/sysconfig editor and then open at the left System > Cron. You will see parameter CLEAR_TMP_DIRS_AR_BOOTUP. Switch it to “yes”. You can study the text there and look at some of the other connected parameters to finetune (I personaly have only this one switched to “yes”). It will clean e.g. /tmp at every boot in a way that will not hamper running processes.

Many thanks for everyone’s help! Really appreciated.

Thank you.

Regards, samwootton

You are welcome.

But did it help? Is the size now down to an acceptable level?