Author Topic: File Systems  (Read 631 times)

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
File Systems
« on: March 15, 2013, 02:18:20 AM »
Hi all,
again a newbie question.

My file system looks like this:

Device      Directory     Type      Total          Free          Available     Used
/dev/sda1  /               ext4      12.0 GB      901.8 MiB   286.9 MiB    11.1 GB   97%
/dev/sda6  /home        ext4      216.7 GB    194.9 GB    194.9 GB     21.8 GB  10%.

So, the dev/sda1 seems to be too small. Might that cause problems in the future? Is there a (safe) way to increase the size?

Thx,
Rulamann
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #1 on: March 15, 2013, 02:42:13 AM »
The easiest procedure to do that would be to boot from a Live CD or USB and use GParted.
You can shrink your /home partition and expand /. Be sure to backup your files before proceeding.

But 11+ GB used in your root partition seems a bit large.
Which version of PCLinuxOS do you use?

Why don't you look if there are any big files or directories taking up that space?
If you are on KDE you can use Filelight.
For the whole world, you are someone.
For someone, you are the whole world.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: File Systems
« Reply #2 on: March 15, 2013, 02:48:11 AM »
+1

Check what is taking up space on the  /  partition before deciding to resize ......  there might be a couple of GBs to be recovered
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Phil

  • Hero Member
  • *****
  • Posts: 769
Re: File Systems
« Reply #3 on: March 15, 2013, 02:53:24 AM »
Hi Rulamann,

Stay curious. 8GB is normal for root. Have a rummage for whatever is taking up space. As root type in this command and explore suspect directories.

#du -hsx * | sort -rh | head -10

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
Re: File Systems
« Reply #4 on: March 15, 2013, 04:10:48 AM »
it looks like this:

[root@localhost ~]# du -hsx * | sort -rh | head -10
32K     Desktop
20K     tmp
4.0K    Videos
4.0K    Templates
4.0K    Pictures
4.0K    Music
4.0K    drakx
4.0K    Downloads
4.0K    Documents
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #5 on: March 15, 2013, 04:15:26 AM »
The results are for your root's /home folder.

If you want to see what's on your own /home folder, type cd /home/user_name/ and issue the command again.
Same if you want to see what's under / : type cd / to navigate to your root folder.
« Last Edit: March 15, 2013, 04:18:05 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
Re: File Systems
« Reply #6 on: March 15, 2013, 04:20:10 AM »
[root@localhost ~]# cd /
[root@localhost /]# du -hsx * | sort -rh | head -10
du: cannot access `home/arnold/.gvfs': Permission denied
du: cannot access `proc/16534/task/16534/fd/4': No such file or directory
du: cannot access `proc/16534/task/16534/fdinfo/4': No such file or directory
du: cannot access `proc/16534/fd/4': No such file or directory
du: cannot access `proc/16534/fdinfo/4': No such file or directory
19G     home
5.5G    usr
3.8G    tmp
1.1G    opt
250M    var
139M    lib
75M     etc
29M     boot
21M     sbin
16M     bin
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #7 on: March 15, 2013, 04:24:13 AM »
So you have 5.5GB under /usr and 3.8G under /tmp.
Issue the command again in /tmp by typing cd /tmp.
I'm pretty sure almost everything under this folder can be removed.
For the whole world, you are someone.
For someone, you are the whole world.

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #8 on: March 15, 2013, 04:29:51 AM »
Some more info:

Now that you have identified which folders occupy the largest space, you can navigate in each one of them and issue the command ls -l
This will give you a detailed list of all subfolders and their sizes, as long as each folder's permissions.
For the whole world, you are someone.
For someone, you are the whole world.

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
Re: File Systems
« Reply #9 on: March 15, 2013, 04:31:09 AM »
[root@localhost ~]# cd /tmp
[root@localhost tmp]# du -hsx * | sort -rh | head -10
2.8G    kdecache-arnold
942M    un895758.img
94M     kdecache-root
332K    libswt-pi-gtk-3347.so
40K     libswt-cairo-gtk-3347.so
16K     libswt-gtk-3347.so
8.0K    ddebug.log
4.0K    ksocket-root
4.0K    kde-root
4.0K    hsperfdata_arnold
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #10 on: March 15, 2013, 04:35:03 AM »
[root@localhost ~]# cd /tmp
[root@localhost tmp]# du -hsx * | sort -rh | head -10
2.8G    kdecache-arnold
942M    un895758.img
94M     kdecache-root
332K    libswt-pi-gtk-3347.so
40K     libswt-cairo-gtk-3347.so
16K     libswt-gtk-3347.so
8.0K    ddebug.log
4.0K    ksocket-root
4.0K    kde-root
4.0K    hsperfdata_arnold


Wow! What's this?
Do me a favor: again type cd /tmp/kdecache-arnold to navigate to that folder and issue the command ls -l
Post the results here.
« Last Edit: March 15, 2013, 05:13:15 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
Re: File Systems
« Reply #11 on: March 15, 2013, 05:57:10 AM »
[root@localhost ~]# cd /tmp/kdecache-arnold
[root@localhost kdecache-arnold]# ls -l
total 2809896
-rw-rw---- 1 arnold arnold  1052768 Feb 25 17:24 Amarok-pixmaps.kcache
drwx------ 2 arnold arnold     4096 Feb 25 16:13 digiKam/
drwx------ 2 arnold arnold     4096 Mar  1 14:58 favicons/
drwx------ 2 arnold arnold    53248 Mar 15 11:29 http/
-rw-rw-r-- 1 arnold arnold 10526816 Mar 15 12:55 icon-cache.kcache
drwx------ 2 arnold arnold     4096 Feb 26 11:47 kgamerenderer-kpat-themes/
drwx------ 2 arnold arnold     4096 Mar  8 11:32 ksplashx/
-rw-rw-r-- 1 arnold arnold  2197009 Mar 13 12:42 ksycoca4
-rw-rw-r-- 1 arnold arnold      538 Mar 13 12:42 ksycoca4stamp
drwx------ 2 arnold arnold     4096 Feb 26 11:47 libkcardgame-themes/
drwx------ 2 arnold arnold     4096 Feb 24 11:01 libphonon/
-rw------- 1 arnold arnold     2936 Feb 25 17:25 plasma-svgelements-Amarok-Mockup
-rw------- 1 arnold arnold    39859 Mar  8 11:21 plasma-svgelements-Cream
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 14:01 plasma_theme_air-netbook.kcache
-rw-rw---- 1 arnold arnold 84213856 Feb 25 17:24 plasma_theme_Amarok-Mockup.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_ambiance.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_Androbit.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_Arezzo.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_Atelier.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_Aya.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_BlackGlass.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:13 plasma_theme_Blue_Sora.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:14 plasma_theme_Colorbit.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Mar 15 12:55 plasma_theme_Cream.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:12 plasma_theme_.customized.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:12 plasma_theme_default.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:01 plasma_theme_Diamond.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:01 plasma_theme_Elegance.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:01 plasma_theme_Ghost.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:02 plasma_theme_Glassified.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:02 plasma_theme_Glaze.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:02 plasma_theme_H2O.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:02 plasma_theme_Helium.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Mar 15 11:05 plasma_theme_internal-system-colors.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:02 plasma_theme_neon-plasma-glow-by-FRUiT.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:03 plasma_theme_NewLimix.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_opaquity.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_ORTO.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_oxygen-dsx.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_Oxygen-Genesis.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_oxygen.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_Oxyglass.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:04 plasma_theme_Oxywin.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:05 plasma_theme_Oxyzone.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:05 plasma_theme_slim-glow.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:05 plasma_theme_Tibanna.kcache
-rw-rw-r-- 1 arnold arnold 84213856 Feb 25 23:12 plasma_theme_Vistar7Plasma.kcache
drwx------ 4 arnold arnold     4096 Feb 25 13:21 plasma-wallpapers/
drwx------ 2 arnold arnold     4096 Mar  1 14:58 thumbs/
[root@localhost kdecache-arnold]#
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #12 on: March 15, 2013, 06:13:27 AM »
Well, I was pretty sure. Check the last entries on the list.
These are cached files from plasma themes you have tried/customized in the past.
Each one of them takes around 85MB in your disk.
There have been some bug reports about kdecache filling up when the user is playing around with themes and icons:

http://forum.kde.org/viewtopic.php?f=22&t=96677

You can safely remove the folder /tmp/kdecache-arnold.
Although I have deleted it on-the-fly with no apparent issues, it is suggested that you do that without KDE running.

Do-it-at-own-risk way:

su
cd /tmp
rm -rf kdecache-arnold

Safe way:

1. Log out of your current KDE session.
2. At the login screen press Ctrl+Alt+F1 to go to tty1
3. Type su and enter your root password.
4. killall kdm
5. cd /tmp
6. rm -rf kdecache-arnold
7. kdm

When you log back in, check your disk space. You should have around 2.8GB more free space now.
« Last Edit: March 15, 2013, 06:15:28 AM by agmg »
For the whole world, you are someone.
For someone, you are the whole world.

Online agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2066
  • Certified Windows Hater
Re: File Systems
« Reply #13 on: March 15, 2013, 06:19:57 AM »
Once done with that folder, we can also check your /usr folder which also occupies a lot of space (5.5GB)
Although it might be normal if you have installed a lot of applications, themes, updates etc.
For the whole world, you are someone.
For someone, you are the whole world.

Offline Rulamann

  • Jr. Member
  • **
  • Posts: 19
Re: File Systems
« Reply #14 on: March 15, 2013, 09:36:56 AM »
okay. that worked fine. Thx a lot. free space is now 3 GB.

Rulamann
Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance (Winston Churchill).

file:///home/arnold/Downloads/ipY6JtWUe3ejt.png