. Advertisement .
..3..
. Advertisement .
..4..
For the problem “cannot create temp file for here-document: no space left on device”. I tried to fix it, but it doesn’t work and returns the result I want. Here is my program:
root@****:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4077544 4 4077540 1% /dev
tmpfs 817680 340 817340 1% /run
/dev/vda1 82436784 34630128 43596088 45% /
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 4088392 0 4088392 0% /run/shm
none 102400 0 102400 0% /run/user
root@****:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 1019386 402 1018984 1% /dev
tmpfs 1022098 319 1021779 1% /run
/dev/vda1 5242880 5014058 228822 96% /
none 1022098 2 1022096 1% /sys/fs/cgroup
none 1022098 5 1022093 1% /run/lock
none 1022098 1 1022097 1% /run/shm
none 1022098 2 1022096 1% /run/user
root@****:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 340K 799M 1% /run
/dev/vda1 79G 34G 42G 45% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 0 3.9G 0% /run/shm
none 100M 0 100M 0% /run/user
root@****:~# ls /tmp/
root@****:~# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/vda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/vda: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders, total 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/vda1 1 167772159 83886079+ ee GPT
and
cannot create temp file for here-document: No space left on device
has occurred. I’ve checked the entire command line but still can’t find the mistake.
The cause:
You have got the error ”cannot create temp file for here-document: no space left on device” because the disk space of your computer is filled up.
Solution:
You can solve your problem by using:
From above, you can see that EBS has 150 GB, while the root partition only has 8 GB, so you have to change the size of EBS Root Volume.
Let’s use the following command to set up “growpart”:
Finally, restart your computer and it will work well.
This is a good idea. It worked for me.