Page 1 of 1

[Solved] Help, lost disk space in root!

Posted: Sat Jan 12, 2013 6:18 am
by russellz
Hi

I've just done a reinstall of Mint Mate 14 64-bit on my laptop to get rid of the dual booting with Windoze 7 which I never use. I keep getting a message saying that I have 0 GB left in the Root partition. My disk is partitioned as follows:
/ 11.17 GB
/home 186.26 GB
swap 3.91 GB
Unallocated 96.74 GB

According to GParted I have used 9.05 GB in root and 13.91 GB in /home

According to Disk Usage Analyser I have used 15.5 GB in total of which 10.8 GB is in /home. That leaves only 4.7 GB in root so I should have plenty of free space so where has it all gone? Any ideas before I have to do a re-install?

I have run Bleachbit to clean out unused files but it recovered very little space, mostly by removing the caches.

Russell.

Re: Help, lost disk space in root!

Posted: Sat Jan 12, 2013 6:43 am
by cecar
Can you put this command in a Terminal and post the output.

Code: Select all

sudo du -h --max-depth=1 / | sort -h -r

Re: Help, lost disk space in root!

Posted: Sat Jan 12, 2013 6:55 am
by russellz
cecar wrote:Can you put this command in a Terminal and post the output.

Code: Select all

sudo du -h --max-depth=1 / | sort -h -r
Output:

Code: Select all

russell@russell-SATELLITE-C870-13V ~ $ sudo du -h --max-depth=1 / | sort -h -r
[sudo] password for russell: 
du: cannot access `/run/user/russell/gvfs': Permission denied
du: cannot access `/proc/2633/task/2633/fd/4': No such file or directory
du: cannot access `/proc/2633/task/2633/fdinfo/4': No such file or directory
du: cannot access `/proc/2633/fd/4': No such file or directory
du: cannot access `/proc/2633/fdinfo/4': No such file or directory
20G	/
11G	/home
4.1G	/root
3.9G	/usr
423M	/var
218M	/lib
124M	/opt
36M	/etc
29M	/boot
9.4M	/sbin
8.9M	/bin
3.4M	/lib32
1.1M	/run
68K	/tmp
16K	/lost+found
8.0K	/media
8.0K	/dev
4.0K	/srv
4.0K	/selinux
4.0K	/mnt
4.0K	/lib64
0	/sys
0	/proc
Ahh! /root has loads in it and wasn't shown up by Disk Usage Analyser as I wasn't running it as Root. I will see what's there - should be very little normally I think.

Thanks,
Russell.

Re: [Solved] Help, lost disk space in root!

Posted: Sat Jan 12, 2013 7:00 am
by russellz
Yes, that was it. Somehow, when restoring my files from the backup I accidentally restored some to /root :oops:

Thanks again Cecar.

Russell.