Reputation: 1
I am trying to copy a folder to a custom partition using wic cp
command. The file size is 5.1gb,
after copying it into partition, when I boot the image and check, it shows only 1GB. So, my question is: Is there any limit to the file size we can copy using wic cp
command?
In local.conf I have:
IMAGE_FSTYPE = "wic"
WKS_FILE ?="systemd-bootdiskcustom.wks"
command in wks file where I have created the partition (this is the 5th partition in my image):
part custom_part --ondisk sda --fstype=ext4 --label custom_part --align 1024 --use-uuid --size 10000M
Command I use once the image is created to copy the 5.1gb file which is stored in my "meta-mylayer" is:
$ cd poky
$ source oe-build-env
build$ cd tmp/deploy/images/qemux86-64
qemux86-64$ wic cp ../../../../../meta-mylayer/recipes-example/customfile/files/system.img core-image-custom-qemux86-64.wic:5
Upvotes: 0
Views: 945
Reputation: 421
This may be due to FAT32 limitation.
Files larger than 4GB cannot be stored on a FAT32 volume.
Formatting the flash drive as exFAT or NTFS will resolve this issue.
If it is not FAT32, Then try compressing the file into multiple parts and transfer in to your custom partition and extract it and copy in to your flash drive.
Upvotes: 1