Author Topic: Disk size incorrect / disk full?  (Read 3657 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Disk size incorrect / disk full?
« on: October 29, 2012, 03:15:40 pm »
Hey,

I've got a small SSD card (60GB) for my operation system.
I thought this would be enough to run LinuxMCE, but it seems that something is eating my size away...

I can't find who takes the gigs away. Any idea how i can troubleshoot this?

sudo df
Quote
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                55292308  49162052   3321528  94% /
none                   1542784       364   1542420   1% /dev
/dev/disk/by-uuid/8beeb5ef-c123-4095-a54f-d9119e9dbeeb
                      55292308  49162052   3321528  94% /
none                   1548168         0   1548168   0% /dev/shm
none                   1548168       388   1547780   1% /var/run
none                   1548168         0   1548168   0% /var/lock
none                   1548168         0   1548168   0% /lib/init/rw
/dev/sdb2            976283068 592126876 384156192  61% /mnt/device/350
/dev/sda1             55292308  49162052   3321528  94% /mnt/device/351

sudo df -i
Quote
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
rootfs               3514368  509258 3005110   15% /
none                  177582     847  176735    1% /dev
/dev/disk/by-uuid/8beeb5ef-c123-4095-a54f-d9119e9dbeeb
                     3514368  509258 3005110   15% /
none                  180275       1  180274    1% /dev/shm
none                  180275     124  180151    1% /var/run
none                  180275       2  180273    1% /var/lock
none                  180275       3  180272    1% /lib/init/rw
/dev/sdb2            976760000  874413 975885587    1% /mnt/device/350
/dev/sda1            3514368  509258 3005110   15% /mnt/device/351

Don't know if it has something to do with it, but in /tmp/ i see a lot the folder StorageDevices_StatusRadar.temp.mount.xxxxxxx for a short time. But i think it's normal behavoir?

When i search for big files (+250MB) i can only find the log files that go sometimes up to 2,2G (only 4 files).

ps disk /mnt/device/350 is my data disk of 1TB. And all data (video, documents, pictures, websites...) are located on this disk.
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Disk size incorrect / disk full?
« Reply #1 on: October 29, 2012, 03:23:08 pm »
As Posde suggest, i've run


Quote
du -h /home/coredump

And this gave me:
Quote
4.0K   /home/coredump/352
4.0K   /home/coredump/390
8.0K   /home/coredump/369
51M   /home/coredump/1
51M   /home/coredump

So not the big eater?

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Disk size incorrect / disk full?
« Reply #2 on: October 29, 2012, 03:32:03 pm »
I've done this for all folder (except /mnt/), and the total shouldn't be over the 25GB.
Or am i doing something wrong?


sudo du -h /foldername
Quote
5.2M    /bin
51M    /boot
4.0K    /cdrom/
364K    /dev/
9.5M    /etc/
341M    /home
332M    /lib/
16K    /lost+found/
8.0K    /media/
4.0K    /opt/
0    /proc/
3.9M    /root
104K    /root_1/
8.9M    /sbin/
2.4M    /scripts/
4.0K    /selinux/
208K    /srv/
0    /sys/
8.8M    /tftpboot/
164K    /tmp/
9.8G    /usr/
12G    /var/
?   /mnt
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: Disk size incorrect / disk full?
« Reply #3 on: October 29, 2012, 06:04:20 pm »
I've done this for all folder (except /mnt/), and the total shouldn't be over the 25GB.
Or am i doing something wrong?
sudo du -h /foldername

Brononius,

One option is
Code: [Select]
sudo du -hxs /
And wait patiently... That will summarize everything under / that is on the same file-system as a total size (i.e. not mounted from a different disk, or the tmpfs filesystems).  x keeps it on the / file-system, and s gives you the summary, rather than each file or directory listed.

/home/camera (or cameras; going from memory here) will have videos and such of motion events, those can consume a lot of space.

If you want to find your largest files, try the following:

Code: [Select]
sudo du -ahx / | sort -h -r -o /tmp/largefiles.txt  && head -10 /tmp/largefiles.txt  

will net you your top 10 space hogs...

HTH!

/Mike

« Last Edit: October 29, 2012, 06:06:19 pm by mkbrown69 »

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Disk size incorrect / disk full?
« Reply #4 on: October 30, 2012, 06:05:55 pm »
Found it....  :-[

I mounted a NAS under /mnt/ where i backupped my data each night.
And apparantly the mounting went somewhere invalid. It was correct for several months, and suddently it was a local folder? So the backups were made locally.

But in the meantime, my linuxmce crashed completely.  :-\
When i tried to boot, he tried to go into 'maintenance shell'. But didn't succeed. Prob because the disk is full?
So 'ive connected the disk to another system and i'm cleaning out the folder /mnt/ for the moment.
And i really hope that it'll start properly later on...

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE