Arjun BM
Arjun BM

Reputation: 1

What is the maximum file size we can copy to a custom partition using "wic cp" command for an yocto image?

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

Answers (1)

Akhil Pasha
Akhil Pasha

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

Related Questions