Workspace space

workspace

#1

I evidently have very little space left in terms of disk space and etc. I am using cloud 9 in conjunction with a class. I have gone in and deleted several of the files that I created as I was following along with the class. This made a difference of 2%. I also deleted tmp files and a few more files for a total of 3%. I ran a program to list the files and space usage and my files themselves are taking up very little space. The data file, which is evidently created by the system is taking up more than half of the space. Since I am very very new to this process, I am unaware of what should be done next to clear up space. I realize, I can upgrade and probably will in the future, but I find it hard to believe that running a app that requires no database and 1 app that requires a data base with a total of 4 pages and no data to speak of up to this point is taking up this much space. Please, provide me with any assistance that you can in resolving this issue and keep in mind that I am a newbie and may need explicit instructions.

Thank you.


#2

Did you run apt-get upgrade? that can use all the available space, and in that case you may need to create a new workspace.
If no, see the comment in Ncdu: deleted /tmp, hdd remains full
most likely this is caused by some files in /tmp.


#3

I did not run apt-get upgrade.

As recommended I ran
$ df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
none 291K 31K 260K 11% /
tmpfs 6.4M 18 6.4M 1% /dev
shm 6.4M 1 6.4M 1% /dev/shm
tmpfs 6.4M 11 6.4M 1% /sys/fs/cgroup
/dev/mapper/volg1-lvdata 91M 14M 78M 15% /mnt

and
~/workspace $ du -h -t 50M
74M ./IntroCommandLine/DemoApp/node_modules/faker
75M ./IntroCommandLine/DemoApp/node_modules
75M ./IntroCommandLine/DemoApp
82M ./IntroCommandLine
1.4G ./data
1.5G .
seems the last two areas is taking up most of the space. Since I am assuming that the /data is created by the system–how do I clean it as I have removed my files that correspond to directories in the /data directory. I’m not quite sure what the last one 1.5 is -assume it is the root. Directions refer to using ncdu but am having problems installing that or maybe I’m doing something wrong.
Even after deleting several files/folders I remain at
Size Used Avail Use%
2.2G 2.0G 68M 97%

Thanks for any assistance!!


#4

It was recomended to run du -h -t 50M / to see all the files in /, but seeing files under the workspace folder seems to be enough in this case.
The data file or folder is not created by cloud9
The last one is the whole workspace directory, it includes 1.4G from data.


#5

harutyn

Sorry
I left the / off
here is the complete data

drnana:~/workspace $ du -h -t 50M /
58M /home/ubuntu/.local/share/heroku/tmp/710731280/heroku/lib/node_modules
108M /home/ubuntu/.local/share/heroku/tmp/710731280/heroku/lib
118M /home/ubuntu/.local/share/heroku/tmp/710731280/heroku
118M /home/ubuntu/.local/share/heroku/tmp/710731280
118M /home/ubuntu/.local/share/heroku/tmp
57M /home/ubuntu/.local/share/heroku/cli/lib/node_modules
107M /home/ubuntu/.local/share/heroku/cli/lib
117M /home/ubuntu/.local/share/heroku/cli
235M /home/ubuntu/.local/share/heroku
235M /home/ubuntu/.local/share
235M /home/ubuntu/.local
74M /home/ubuntu/workspace/IntroCommandLine/DemoApp/node_modules/faker
75M /home/ubuntu/workspace/IntroCommandLine/DemoApp/node_modules
75M /home/ubuntu/workspace/IntroCommandLine/DemoApp
82M /home/ubuntu/workspace/IntroCommandLine
1.4G /home/ubuntu/workspace/data
1.5G /home/ubuntu/workspace
130M /home/ubuntu/.nvm/versions/node
169M /home/ubuntu/.nvm/versions
222M /home/ubuntu/.nvm
2.0G /home/ubuntu
2.0G /home
du: cannot read directory ‘/etc/ssl/private’: Permission denied
du: cannot read directory ‘/etc/couchdb/local.d’: Permission denied
du: cannot read directory ‘/etc/polkit-1/localauthority’: Permission denied
du: cannot read directory ‘/lost+found’: Permission denied
68M /nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0
68M /nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools/libexec/gcc/x86_64-unknown-linux-gnu
68M /nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools/libexec/gcc
68M /nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools/libexec
114M /nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools
51M /nix/store/q3jbvxslb1qi9jyf5j2rc04mmxw17a8d-python-2.7.11/lib
51M /nix/store/q3jbvxslb1qi9jyf5j2rc04mmxw17a8d-python-2.7.11
69M /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0
69M /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0/libexec/gcc/x86_64-unknown-linux-gnu
69M /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0/libexec/gcc
69M /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0/libexec
116M /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0
70M /nix/store/zmisxnl63ica4zaviifixamr3xg27kzp-ruby-2.3.1-p0/share/ri/2.3.0/system
70M /nix/store/zmisxnl63ica4zaviifixamr3xg27kzp-ruby-2.3.1-p0/share/ri/2.3.0
70M /nix/store/zmisxnl63ica4zaviifixamr3xg27kzp-ruby-2.3.1-p0/share/ri
70M /nix/store/zmisxnl63ica4zaviifixamr3xg27kzp-ruby-2.3.1-p0/share
104M /nix/store/zmisxnl63ica4zaviifixamr3xg27kzp-ruby-2.3.1-p0
100M /nix/store/gphrkb6lzn9bf7db2q1z00ypfdh46lma-node-sources/deps
136M /nix/store/gphrkb6lzn9bf7db2q1z00ypfdh46lma-node-sources
60M /nix/store/yrs58pvf72cn1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/share/ri/1.9.1/system
60M /nix/store/yrs58pvf72cn1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/share/ri/1.9.1
60M /nix/store/yrs58pvf72cn1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/share/ri
60M /nix/store/yrs58pvf72cn1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484/share
88M /nix/store/yrs58pvf72cn1mcax0s685yw2dqzzvqv-ruby-1.9.3-p484
69M /nix/store/zm2gr6cbai1zghig3v926rqx9cbsw16j-ruby-2.2.2-p0/share/ri/2.2.0/system
69M /nix/store/zm2gr6cbai1zghig3v926rqx9cbsw16j-ruby-2.2.2-p0/share/ri/2.2.0
69M /nix/store/zm2gr6cbai1zghig3v926rqx9cbsw16j-ruby-2.2.2-p0/share/ri
69M /nix/store/zm2gr6cbai1zghig3v926rqx9cbsw16j-ruby-2.2.2-p0/share
103M /nix/store/zm2gr6cbai1zghig3v926rqx9cbsw16j-ruby-2.2.2-p0
61M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3
61M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu
61M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3/libexec/gcc
61M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3/libexec
67M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3/lib
151M /nix/store/3fyzfkv0k3d1ymfv25d2k7kqbpibhl1r-gccgo49-4.9.3
55M /nix/store/cz8sfjinal66y350ynyz89vihihcn7k6-gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3
55M /nix/store/cz8sfjinal66y350ynyz89vihihcn7k6-gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu
55M /nix/store/cz8sfjinal66y350ynyz89vihihcn7k6-gcc-4.9.3/libexec/gcc
55M /nix/store/cz8sfjinal66y350ynyz89vihihcn7k6-gcc-4.9.3/libexec
99M /nix/store/cz8sfjinal66y350ynyz89vihihcn7k6-gcc-4.9.3
106M /nix/store/lrd5wjp4151wmflci68i8vd7a9a4lwmb-glibc-locales-2.23/lib/locale
106M /nix/store/lrd5wjp4151wmflci68i8vd7a9a4lwmb-glibc-locales-2.23/lib
106M /nix/store/lrd5wjp4151wmflci68i8vd7a9a4lwmb-glibc-locales-2.23
51M /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs/development/haskell-modules
77M /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs/development
128M /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs
134M /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs
134M /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs
68M /nix/store/w1vk7050ib5vi1qlqr80s3hfvx4ni5cm-python3-3.5.1/lib/python3.5
71M /nix/store/w1vk7050ib5vi1qlqr80s3hfvx4ni5cm-python3-3.5.1/lib
72M /nix/store/w1vk7050ib5vi1qlqr80s3hfvx4ni5cm-python3-3.5.1
56M /nix/store/z1krxp2hwph8fypchf2b0ssnyp6z8k9l-perl-5.16.3
55M /nix/store/ksvsbr7pg4z69bv6fbbc8h7x7rm2104m-gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3
55M /nix/store/ksvsbr7pg4z69bv6fbbc8h7x7rm2104m-gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu
55M /nix/store/ksvsbr7pg4z69bv6fbbc8h7x7rm2104m-gcc-4.9.3/libexec/gcc
55M /nix/store/ksvsbr7pg4z69bv6fbbc8h7x7rm2104m-gcc-4.9.3/libexec
99M /nix/store/ksvsbr7pg4z69bv6fbbc8h7x7rm2104m-gcc-4.9.3
88M /nix/store/94l17wjg65wpkwcm4x51pr5dlvarip6a-gcc-4.8.2
52M /nix/store/adnbhcy51b4x19fmfci6h0qfy5sarwpr-python-2.7.11/lib/python2.7
54M /nix/store/adnbhcy51b4x19fmfci6h0qfy5sarwpr-python-2.7.11/lib
55M /nix/store/adnbhcy51b4x19fmfci6h0qfy5sarwpr-python-2.7.11
3.3G /nix/store
du: cannot read directory ‘/nix/.cache’: Permission denied
3.4G /nix
du: cannot read directory ‘/run/exim4’: Permission denied
154M /usr/share/doc
70M /usr/share/emacs/24.3
70M /usr/share/emacs
577M /usr/share
457M /usr/bin
324M /usr/lib/x86_64-linux-gnu
93M /usr/lib/valgrind
70M /usr/lib/python2.7
78M /usr/lib/jvm/java-7-openjdk-amd64/jre/lib
79M /usr/lib/jvm/java-7-openjdk-amd64/jre
79M /usr/lib/jvm/java-7-openjdk-amd64
79M /usr/lib/jvm
866M /usr/lib
114M /usr/include/boost
151M /usr/include
103M /usr/local/rvm/rubies/ruby-2.3.0/lib
103M /usr/local/rvm/rubies/ruby-2.3.0
103M /usr/local/rvm/rubies
141M /usr/local/rvm
150M /usr/local
2.2G /usr
89M /var/cache/apt/apt-file
89M /var/cache/apt
du: cannot read directory ‘/var/cache/ldconfig’: Permission denied
97M /var/cache
du: cannot read directory ‘/var/log/mysql’: Permission denied
du: cannot read directory ‘/var/log/apache2’: Permission denied
du: cannot read directory ‘/var/log/exim4’: Permission denied
du: cannot read directory ‘/var/log/nginx’: Permission denied
du: cannot read directory ‘/var/log/couchdb’: Permission denied
du: cannot read directory ‘/var/lib/mysql’: Permission denied
du: cannot read directory ‘/var/lib/postgresql/9.3/main’: Permission denied
du: cannot read directory ‘/var/lib/php5’: Permission denied
du: cannot read directory ‘/var/lib/sudo’: Permission denied
du: cannot read directory ‘/var/lib/couchdb’: Permission denied
du: cannot read directory ‘/var/lib/polkit-1’: Permission denied
70M /var/lib
du: cannot read directory ‘/var/spool/exim4’: Permission denied
du: cannot read directory ‘/var/spool/rsyslog’: Permission denied
du: cannot read directory ‘/var/spool/cron/crontabs’: Permission denied
167M /var
du: cannot read directory ‘/root’: Permission denied
65M /opt/go/pkg/linux_amd64
105M /opt/go/pkg/tool/linux_amd64
105M /opt/go/pkg/tool
219M /opt/go/pkg
322M /opt/go
322M /opt
52M /mnt/shared/benchmark/go
52M /mnt/shared/benchmark
51M /mnt/shared/plugins/salesforce.sync/kracht/node_modules
56M /mnt/shared/plugins/salesforce.sync/kracht
79M /mnt/shared/plugins/salesforce.sync
94M /mnt/shared/plugins
75M /mnt/shared/lib/node_modules
51M /mnt/shared/lib/python2/lib/python2.7/site-packages/codeintel/codeintel2/stdlibs
68M /mnt/shared/lib/python2/lib/python2.7/site-packages/codeintel/codeintel2
87M /mnt/shared/lib/python2/lib/python2.7/site-packages/codeintel
110M /mnt/shared/lib/python2/lib/python2.7/site-packages
110M /mnt/shared/lib/python2/lib/python2.7
110M /mnt/shared/lib/python2/lib
110M /mnt/shared/lib/python2
235M /mnt/shared/lib
392M /mnt/shared
392M /mnt
du: cannot read directory ‘/proc/tty/driver’: Permission denied
du: cannot read directory ‘/proc/1/task/1/fd’: Permission denied
du: cannot read directory ‘/proc/1/task/1/fdinfo’: Permission denied
du: cannot read directory ‘/proc/1/task/1/ns’: Permission denied
du: cannot read directory ‘/proc/1/fd’: Permission denied
du: cannot read directory ‘/proc/1/map_files’: Permission denied
du: cannot read directory ‘/proc/1/fdinfo’: Permission denied
du: cannot read directory ‘/proc/1/ns’: Permission denied
du: cannot read directory ‘/proc/140/task/140/fd’: Permission denied
du: cannot read directory ‘/proc/140/task/140/fdinfo’: Permission denied
du: cannot read directory ‘/proc/140/task/140/ns’: Permission denied
du: cannot read directory ‘/proc/140/fd’: Permission denied
du: cannot read directory ‘/proc/140/map_files’: Permission denied
du: cannot read directory ‘/proc/140/fdinfo’: Permission denied
du: cannot read directory ‘/proc/140/ns’: Permission denied
du: cannot access ‘/proc/1997/task/1997/fd/4’: No such file or directory
du: cannot access ‘/proc/1997/task/1997/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/1997/fd/3’: No such file or directory
du: cannot access ‘/proc/1997/fdinfo/3’: No such file or directory
8.4G /