I have 25GB volume on EC2. OS is Ubuntu 12.04 LTS. I can connect to it, but cannot even write 1KB. I tried to delete some files and write again - the same result - not enough space.
I tried to check free space and got this error.
df -h
df: cannot read table of mounted file systems: No such file or directory
Then I tried to get directory sizes. It seems that only 13GB from 25GB is full:
du -h --max-depth=1
18M ./boot
16K ./lost+found
4.0K ./tmp
83M ./lib
192K ./home
8.7M ./bin
4.0K ./selinux
4.0K ./opt
100K ./root
8.0K ./dev
du: cannot access `./proc/1312/task/1312/fd/4': No such file or directory
du: cannot access `./proc/1312/task/1312/fdinfo/4': No such file or directory
du: cannot access `./proc/1312/fd/4': No such file or directory
du: cannot access `./proc/1312/fdinfo/4': No such file or directory
0 ./proc
7.9M ./sbin
434M ./usr
172K ./run
13G ./var
0 ./sys
4.0K ./srv
4.0K ./mnt
4.0K ./lib64
4.0K ./media
5.8M ./etc
13G .
Mounts
mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=1912272k,nr_inodes=478068,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=768100k,mode=755)
/dev/disk/by-label/cloudimg-rootfs on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
none on /sys/fs/fuse/connections type fusectl (rw,relatime)
none on /sys/kernel/debug type debugfs (rw,relatime)
none on /sys/kernel/security type securityfs (rw,relatime)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,nosuid,nodev,relatime)
Added:
cat /etc/mtab
cat: /etc/mtab: No such file or directory
How can I solve this problem?
/etc/mtab
.