Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an ubuntu server which yesterday i performed an rsync command for the first time to backup a drive sdb1 to sdc1. Neither of these drives are the OS drive thats full.

This morning i woke up and the OS drive is full. I can't even boot into the GUI but i can still ssh into the machine.

any thoughts?

edit: I found the source - the rSync command seemed to be creating a directory /media/sdc1 physically on the OS drive instead of using the mounted /media/sdc1.

Does this command look right to you:

rsync -av --delete /media/sdb1 /media/sdc1

Drive 1 is mounted sdb1 and drive 2 is sdc1

share|improve this question
add comment

1 Answer

You can find what is filling your OS drive by using the command

du -h --max-depth=1 / | sort -rn

which will give you a list of files/directories and their sizes. You can then work your way down the file system to find which file(s) are filling the disk.

share|improve this answer
    
Found the source, please see my original post –  KP65 Dec 23 '12 at 12:06
    
@KP65: show us the output of df –  Iain Dec 23 '12 at 12:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.