Navigation

    全志在线开发者论坛

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

    losetup 无法设置循环设备:没有这样的文件或目录

    V Series
    2
    7
    2559
    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.
    • X
      xjy_5 LV 6 last edited by

      2e450bb0-8832-4dfc-95cc-f57f0983e6b5-image.png

      但mass_stor.img明明就在当前目录下了,是缺少什么编译库吗?

      X 1 Reply Last reply Reply Quote Share 0
      • X
        xjy_5 LV 6 @xjy_5 last edited by

        f1d1e1e9-3de6-47c3-890e-83548301bd06-image.png
        应该是不支持这个命令,losetup -h 都报错,这个命令运行内容应该是空的

        1 Reply Last reply Reply Quote Share 0
        • A
          awwwwa LV 8 last edited by

          单独勾选这个命令编译

          X 2 Replies Last reply Reply Quote Share 0
          • X
            xjy_5 LV 6 @awwwwa last edited by

            @awwwwa 我在 make menuconfig 后,搜索losetup,修改了些配置
            20f55177-9369-46c3-801c-4a459bf283f6-image.png

            把PACKAGE_schroot设置为M,SCHROOT_LOOPBACK设置成y,编译后开机losetup结果

            root@TinaLinux:~# losetup -f a.img
            losetup: cannot find an unused loop device
            

            是另外的问题了,如果PACKAGE_schroot设为y,pack就会说rootfs太大
            ERROR: dl file rootfs.fex size too large
            ERROR: filename = rootfs.fex
            ERROR: dl_file_size = 49408 sector

            1 Reply Last reply Reply Quote Share 0
            • X
              xjy_5 LV 6 @awwwwa last edited by

              @awwwwa 修改了分区大小了,现在打包能放下了,但结果还是说 cannot find an unused loop device
              1b324f7a-d0ce-4aef-94ca-287337581eab-image.png

              A 1 Reply Last reply Reply Quote Share 0
              • A
                awwwwa LV 8 @xjy_5 last edited by

                @xjy_5 kernel启用loop device了吗

                X 1 Reply Last reply Reply Quote Share 0
                • X
                  xjy_5 LV 6 @awwwwa last edited by

                  @awwwwa 感谢回复,现在可以用了,我都不知道有这些配置
                  现在的make menuconfig 的配置
                  13da7059-f608-4ec5-b5a5-94782e411ff8-image.png

                  make kernel_menuconfig的配置,搜loop,选的第二个
                  bc7fe151-8861-4a80-a0df-36112a3d222c-image.png

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

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

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