LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   root partition full (https://www.linuxquestions.org/questions/mandriva-30/root-partition-full-388116/)

laan97ac 11-30-2005 09:30 PM

root partition full
 
Hi

I am now running root in single user mode since my root partition hda5 is full for whatever reason.

I recently formatted an external HDU 80GB and mounted it by error in /sda80 instead of under /mnt/sda1 which would be more normal.

All of a sudden I can no longer start KDE or GNOME since my root partition is full.

I have run du --max-depth=1 and gets all directories and sizes listed in /
All look fine
/home is big but that is on another partition.
/mnt is big because my windows partition is mounted here
/usr is big because of /usr/share and /usr/lib (can I clear something here?)

Most concerning is that

du --max-depth=1 ends up listing a big thing with 64G size but only description is .

du --max-depth=1 gives me this:
16K ./lost+found
37G ./mnt
23G ./home
2.6M ./dev
38M ./etc
36K ./tmp
194M ./var
127M ./root
897M ./proc
0 ./sys
2.8G ./usr
3.6M ./boot
6.4M ./sbin
5.4M ./bin
32M ./lib
8K ./initrd
4K ./opt
0 ./.autofsck
24K ./sda80 (where I accidentally mounted external 80 GB HDU)
4K ./.bash_history
64G .

What is those 64G . ????????????

df gives me
Filesystem size used avail mounted on
/dev/hda5 5.8G 5.5G 0 /
/dev/hda7 29G 23G 5.9 /home
/dev/hda1 39G 38G 1.5G /mnt/windows
/dev/sda1 74G 129M 70G /sda80

running du --max-depth=1 on /usr gives
1.2G /share
151M ./bin
1.3G ./lib
7.2M ./sbin
96M ./X11R6
4K ./etc
104K ./games
86M ./include
92K ./local
36K ./src
4K ./java
0 ./tmp
8K ./ppc64-linux
8K ./ppc-linux
2.8G .

Again, what are those unspecified 2.8G . ??????

Help is appreciated as it is no fun only to run prompt in single user mode!

HP laptop zd8000, Mandriva 2006

cyberjun 12-01-2005 12:17 AM

Hello,
MY friend the last 64G or 2.8G etc. are not separate entries. They are just the total of your listings.

To find file of size greater than lets say 100MB (= 1024*1024*100 bytes), use the following command (as root):
Code:

find / -xdev -size +104857600c
This will look for files >100MB in size on your root (/) partition without decending into other
partitions.

cheers,

--cyberjun

springshades 12-01-2005 07:13 PM

A couple comments.

*Your /proc folder seems to be a bit on the big side. I don't think I've seen one quite that big before... it could just have something to do with your set up, I'm not sure.

*You seem to have a crapload of stuff sitting around as loose files in your / folder. If you do the math and add up everything in the folders on your root partition, they only add up to a little over 4 gigs, but df says that you're using 5.5. That means you must have at least a gig of space being used up by regular files in / and not in folders. I don't know about you, but I've only got 3 files in / and they're all very tiny. That'd be a good place to check. Maybe you copied something huge there on accident.

*Your root partition is a bit on the small side. I'd suggest using one a bit bigger in the future. If you ended up installing a few big games or something like that it might take up a couple gigs or so, so it's nice to give yourself space to expand.

laan97ac 12-01-2005 10:00 PM

solved
 
Thanx

I found out what it was - I accidentally mounted an external USB HDU and copied files to it. Only thing is that that the mount folder did not take me to the device so instead of copying to the HDU I was copying to the root directory.

Removing the files put me back on track

Thanx!

tkedwards 12-04-2005 07:38 PM

Quote:

*Your /proc folder seems to be a bit on the big side. I don't think I've seen one quite that big before... it could just have something to do with your set up, I'm not sure.
That's perfectly normal - it seems roughly dependent on the amount of RAM you have in the machine. So on my machine at work (1GB RAM) the proc folder is about 900MB, on the one at home (~750 MB RAM) its 739MB. Anyway it doesn't matter because its a virtual filesystem anyway - it takes up zero disk space no matter how big it appears.

laan97ac 07-22-2007 11:33 PM

root partition full - again
 
here we go again, now my root partition is full again;

[root@localhost home]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 5.8G 5.8G 0 100% /
/dev/hda7 29G 11G 19G 36% /home
/dev/hda1 18G 14G 3.8G 79% /mnt/windows
[root@localhost home]# cd /
[root@localhost /]# du --max-depth=1
12K ./lost+found
14G ./mnt
11G ./home
172K ./dev
88M ./etc
20K ./tmp
161M ./var
582M ./root
899M ./proc
0 ./sys
4.0K ./media
4.5G ./usr
16M ./boot
6.3M ./sbin
129M ./lib
6.9M ./bin
2.0K ./initrd
273M ./opt
1.0K ./srv
3.0K ./.kde
62K ./.xdg_menu_cache
31G .
[root@localhost /]# cd /usr
[root@localhost usr]# du --max-depth=1
1.9G ./share
1.9G ./lib
299M ./bin
12M ./sbin
1.0K ./etc
28M ./games
102M ./include
39K ./local
301M ./src
20K ./X11R6
1.0K ./java
4.5G .
[root@localhost usr]#

what do i do

ernie 07-23-2007 01:09 PM

What are the 14GB you show on the root ('/') file system under /mnt?


All times are GMT -5. The time now is 12:06 PM.