November 13, 2019, 06:49:05 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


/tmp folder is Only 20Mbytes?

Started by sbfreddie, November 25, 2013, 10:43:54 pm

Previous topic - Next topic

sbfreddie

I moved the linaro image from Nand to a 2.5" Hard Drive.  After many updates it seems to be functioning OK.  But while building gnu radio, I get getting this error that the /tmp folder is full and it can't continue.
After checking the properties of the /tmp folder I discovered that it is only 20 Mbytes in size.  Anyone know why?
The hard disk is 160 GB with only 30 GB used.
How do I make the /tmp folder bigger?

Thanks,
Freddie

jiv


sbfreddie

jiv:
I don't understand your statement.  The entire File System is mounted on the Hard Disk drive and the /tmp folder is on the HDD.

Thanks,
Freddie

patwood

Quote from: sbfreddie on November 26, 2013, 12:34:56 pm
jiv:
I don't understand your statement.  The entire File System is mounted on the Hard Disk drive and the /tmp folder is on the HDD.

Thanks,
Freddie


So what's the output of the "df" command?

sbfreddie

Quote from: patwood on November 27, 2013, 12:36:07 am
Quote from: sbfreddie on November 26, 2013, 12:34:56 pm
jiv:
I don't understand your statement.  The entire File System is mounted on the Hard Disk drive and the /tmp folder is on the HDD.

Thanks,
Freddie


So what's the output of the "df" command?

Pat:
Here is the output of the df command:

linaro@cubietruck:~$ df
Filesystem         1Kblocks        Used     Available     Use%     Mounted on
/dev/root       153854644 25312148     121352348  18%      /
devtemfs            934500              4          934496    1%      /dev
tmpfs                   20480              4            20476    1%      /tmp
none                  186924           400          186524    1%      /run
none                      5120              0              5120    0%      /run/lock
none                  934608              0           934608    0%     /run/shm
none                  102400             12          102388    1%     /run/user

I see the /tmp folder, but how to I make it bigger?

Thanks,
Freddie
 

patwood

tmp is mounted as a tmpfs (ramdisk).  Look at /etc/fstab and /etc/rc.local to see where it's mounted and delete the line. Then /tmp should just be a directory on you root fs.

sbfreddie

Quote from: patwood on November 27, 2013, 07:59:43 pm
tmp is mounted as a tmpfs (ramdisk).  Look at /etc/fstab and /etc/rc.local to see where it's mounted and delete the line. Then /tmp should just be a directory on you root fs.


Thanks Pat, that did the trick!

Freddie

con

As the cb1/2 and 3 have sufficient memory, using the tmpfs (zram?) might actually speed up your system. You can change the size as said in /etc/fstab in general.