гm logged into uBuntu 14.04 LTS at the University. After several hours of working in nvcc (cpp compiler for nVidia CUDA C), editing .cu (CUDA cpp) and make поля in gedit I suddenly get в "Disk quota exceeded" ошибка.
Huh?
I searched онлайн and found that commands "df-h" and "du-sh" should шоу я my disk quota. But when I run either of these in Терминал, Терминал hangs and I have to kill it. гm assuming this is because I don't have rights to run these commands. There is не ошибка message, just в hang. Нормальный Терминал commands like "ls" and "mkdir" work умер.
The IT department have gone home for the evening... how do I correct this problem and/or see what my quota is?
I had been searching for programming answers in Google Chrome... and had в few крах of Chrome just приор to this happening. I suspected temporary Интернет поля were part of the problem. So I переместите в few помещение поля, reloaded Chrome, cleared all history ("From the beginning of украл"), closed Chrome. Then tried the "quota" command suggested in the comments by @mark kirby (which failed due to not being installed)... then I tried "df-h" again and it worked! Don't think it was trying "quota" that did it. Perhaps I was so close to my limit that tmp поля required for "df" could not be created.
Во-первых, du -sh
занимает много времени для выполнения, потому что это должно посмотреть на все файлы во всех подкаталогах полностью вниз для нахождения размера файлов. Сколько времени Вы ожидали?
df -h
(я использовал бы df -h .
) должен возвратиться быстро. Снова, что делает Вы подразумеваете, "зависают"?
можно восстановить некоторое дисковое пространство путем удаления объекта (*.o
) файлы, которые я предполагаю, что можно воссоздать через Ваш .cu
с и Makefile
с. find . -type f -name '*.o' -ls
покажет их Вам. Замена -ls
с -print0 | xargs -0 rm
для удаления их всех. Читайте man nvcc
для нахождения других оставшихся временных файлов.
, Сколько уровней резервного копирования исходного файла Вы сохраняете?
можно использовать gzip
(man gzip
) для сжатия файлов, которые Вы не используете в данный момент для восстановления некоторого пространства.
quota --human-readable
(и man quota
) покажет Ваше выделенное дисковое пространство. du
покажет Ваше использование диска (man du
). df
(man df
) отобразит информацию о дисковом томе.