# git pull
fatal: Unable to create '/mds/mds/.git/ORIG_HEAD.lock': No space left on device
# df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/disk/by-uuid/b1358fbb-dab1-482d-ab22-fa2523975c2e 16G 11G 3.9G 74% /
# df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/disk/by-uuid/b1358fbb-dab1-482d-ab22-fa2523975c2e 1003680 1003680 0 100% /
It just to many small log files in the folder.
To quick delete them:
cd yourdirectory
perl -e 'for(<*>){((stat)[9]<(unlink))}'
Reference & Thanks:
https://stackoverflow.com/questions/24895502/git-pull-unable-to-create-orig-head-lock-no-space-left-on-device/25002467
https://unix.stackexchange.com/questions/37329/efficiently-delete-large-directory-containing-thousands-of-files
No comments:
Post a Comment