/tmp directory in Linux Android SDK

前端 未结 15 2352
醉话见心
醉话见心 2020-12-28 15:00

Just to tinker with it, last night I installed the Android Studio/SDK, and both during install and use, it repeatedly blew my 2Gb /tmp partition. Is there any way to tell t

15条回答
  •  星月不相逢
    2020-12-28 15:54

    You can use a file for your /tmp:

    as root:

    create a file the desired size ((example for a 10 GiB /tmp size):

    dd if=/dev/zero of=/path/to/your/tmp_dir bs=1024M count=10
    

    create a filesystem on it:

    mke2fs -j /path/to/your/tmp_dir
    

    the partition is ready, mount it:

    mount -t ext3 -o loop /path/to/your/tmp_dir /tmp
    

    source : https://www.yourhowto.net/increase-tmp-partition-size-linux/

提交回复
热议问题