Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    全志R11文件系统挂载问题

    A Series
    2
    4
    1810
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      one001 LV 4 last edited by

      分析rdinit文件中有一句/bin/mount -t tmpfs tmpfs /tmp,请问如何将这个分区抹除掉,这个分区现在通过df -h查看

      tmpfs                    28.6M         0     28.6M   0% /tmp
      

      有几十M,我不想要这个分区占用空间,即使不挂载似乎也占用了空间,请问在tina中如何完全去除掉这个分区。

      C 1 Reply Last reply Reply Quote Share 0
      • C
        chengwei_peng LV 6 @lijinlin001 last edited by

        @lijinlin001 可以试试在tina/package/system/procd/patches目录下增加一个补丁:

        diff --git a/initd/early.c b/initd/early.c
        index a83a3d1..981a53a 100644
        --- a/initd/early.c
        +++ b/initd/early.c
        @@ -113,7 +113,7 @@ early_mounts(void)
         
         	early_console("/dev/console");
         	if (mount_zram_on_tmp()) {
        -		mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, 0);
        +		mount("tmpfs", "/tmp", "tmpfs", MS_NOSUID | MS_NODEV | MS_NOATIME, "size=512k");
         		mkdir("/tmp/shm", 01777);
         	} else {
         		mkdir("/tmp/shm", 01777);
        
        L 1 Reply Last reply Reply Quote Share 0
        • L
          one001 LV 4 @chengwei_peng last edited by

          @chengwei_peng
          你好,感谢回复。我的tina目录下搜索early.c文件只有在kernel里面才有哦。请问这个方法可行吗?
          7cb09819-8c04-4873-8db2-bb10096cd5b3-image.png

          C 1 Reply Last reply Reply Quote Share 0
          • C
            chengwei_peng LV 6 @lijinlin001 last edited by

            @lijinlin001 将上面的补丁保存为一个文件并放在 tina/package/system/procd/patches 目录下就可以了,不是内核的修改,是应用包的补丁。

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策