Navigation

    全志在线开发者论坛

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

    文件系统分区挂载和大小问题

    V Series
    2
    5
    2567
    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.
    • N
      Negro LV 5 last edited by

      • 使用的板子:基于官方的V853芯片做的板子。
      • 系统:用的源码包编译出来的openwrt。

      问题如下:
      1、我将文件系统改为ext4格式,然后根目录大小想要扩大一些,应该修改哪里呢?尝试修改sys_partition.fex文件的rootfs分区大小,但是感觉是随 rootfs.fex大小决定的,修改后看到rootfs的分区没有大小变化。不过我认为实际大小是有变化的,因为修改过后UDISK分区大小是变了。
      2、boot分区这个有办法挂载出来的吗?

      //修改前的分区配置:
      ......
      [partition]
          name         = rootfs
          size         = 252000
          downloadfile = "rootfs.fex"
          user_type    = 0x8000
      
      [partition]
          name         = rootfs_data
          size         = 100800
          user_type    = 0x8000
      
      [partition]
          name         = UDISK
          user_type    = 0x8100
      ......
      
      //打包烧录后df -h输出:
      root@TinaLinux:/rom# df -h
      Filesystem                Size      Used Available Use% Mounted on
      /dev/root               102.4M     45.4M     54.9M  45% /
      devtmpfs                244.3M         0    244.3M   0% /dev
      tmpfs                   245.9M      8.0K    245.9M   0% /tmp
      /dev/by-name/UDISK        6.8G     31.6M      6.8G   0% /mnt/UDISK
      /dev/mmcblk0p7            6.8G     31.6M      6.8G   0% /server
      /dev/mmcblk0p1            8.0M      1.1M      6.9M  14% /mnt/extsd
      /dev/mmcblk0p4          102.4M     45.4M     54.9M  45% /rom
      
      
      //修改后的:
      ......
      [partition]
          name         = rootfs
          size         = 1008000         <==这里改大了
          downloadfile = "rootfs.fex"
          user_type    = 0x8000
      
      [partition]
          name         = rootfs_data
          size         = 100800
          user_type    = 0x8000
      
      [partition]
          name         = UDISK
          user_type    = 0x8100
      ......
      
      root@TinaLinux:/# df -h
      Filesystem                Size      Used Available Use% Mounted on
      /dev/root               102.4M     45.4M     54.9M  45% /
      devtmpfs                244.3M         0    244.3M   0% /dev
      tmpfs                   245.9M      8.0K    245.9M   0% /tmp
      /dev/by-name/UDISK        6.5G     30.0M      6.4G   0% /mnt/UDISK
      /dev/mmcblk0p7            6.5G     30.0M      6.4G   0% /server
      /dev/mmcblk0p1            8.0M      1.1M      6.9M  14% /mnt/extsd
      
      
      1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by YuzukiTsuru

        ext4是固定大小的,menuconfig里,boot分区不属于分区表,不过可以raw的方法读取到

        N 2 Replies Last reply Reply Quote Share 0
        • N
          Negro LV 5 @YuzukiTsuru last edited by

          @yuzukitsuru
          我在make menuconfig里面的Target Images -> Root filesystem partition size 中改了数值,可以改到根文件分区大小,这么操作应该可以吧?

          root@TinaLinux:/# df -h
          Filesystem                Size      Used Available Use% Mounted on
          /dev/root               689.0M    463.5M    211.4M  69% /
          devtmpfs                244.3M         0    244.3M   0% /dev
          tmpfs                   245.9M      4.0K    245.9M   0% /tmp
          /dev/by-name/UDISK        5.8G     49.3M      5.7G   1% /mnt/UDISK
          tmpfs                   245.9M         0    245.9M   0% /run
          /dev/mmcblk0p7            5.8G     49.3M      5.7G   1% /server
          /dev/mmcblk0p1            8.0M      2.1M      5.9M  26% /mnt/extsd
          
          
          root@TinaLinux:/# mount
          /dev/root on / type ext4 (rw,relatime)
          devtmpfs on /dev type devtmpfs (rw,relatime,size=250140k,nr_inodes=62535,mode=755)
          /proc on /proc type proc (rw,relatime)
          tmpfs on /tmp type tmpfs (rw,relatime)
          ...
          
          YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
          • N
            Negro LV 5 @YuzukiTsuru last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote Share 0
            • YuzukiTsuru
              柚木 鉉 LV 9 @Negro last edited by

              @negro 可以

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

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

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