genext2fs problem of not allocating ramdisk image

News group gmane.comp.embedded.eldk

genext2fs problem of not allocating ramdisk image 2009-09-30 12:24
$ ROOTFS_DIR=rootfs                 # directory with root file system content
$ ROOTFS_SIZE=3700                  # size of file system image
$ ROOTFS_FREE=100                   # free space wanted
$ ROOTFS_INODES=380                 # number of inodes
$ ROOTFS_DEVICES=rootfs_devices.tab # device description file
$ ROOTFS_IMAGE=ramdisk.img          # generated file system image

$ genext2fs -U \
-d ${ROOTFS_DIR} \
-D ${ROOTFS_DEVICES} \
-b ${ROOTFS_SIZE} \
-r ${ROOTFS_FREE} \
-i ${ROOTFS_INODES} \
${ROOTFS_IMAGE}


When I do command "genext2fs -U -d rootfs -D rootfs_device.tab -b 3700 -m 10 -i 380 ramdisk.img",
it returns error message "genext2fs: couldn't allocate a block (no free space)"

How can I solve the problem?

Regards,
J.Hwan Kim
Menu
genext2fs problem of not allocating ramdisk image 2009-09-30 12:41
Dear "J.Hwan.Kim",

>The DULG indicates how to use genext2fs as follows :
>
>
>$ ROOTFS_DIR=rootfs                 # directory with root file system content
>$ ROOTFS_SIZE=3700                  # size of file system image
^^^^^^^^^^^^^^^^^^^^
>When I do command "genext2fs -U -d rootfs -D rootfs_device.tab -b 3700 -m 10 -i 380 ramdisk.img",
>it returns error message "genext2fs: couldn't allocate a block (no free space)"

This means that the generated file system is too small to hold all the
data you want to put in.

>How can I solve the problem?

Increase the size of the file system, i. e. the value passed for the
"-b" option (3700 in your example above).

Best regards,

Wolfgang Denk
genext2fs problem of not allocating ramdisk image 2009-09-30 12:24
genext2fs problem of not allocating ramdisk image 2009-09-30 12:41