Bug 1839 - mkdosfs fails for filesystems larger than 2GB
Summary: mkdosfs fails for filesystems larger than 2GB
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.1
Hardware: x86 Multiple
: Low minor
Target Milestone: 1.2
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-12-15 11:57 UTC by Marc Ferland
Modified: 2012-01-12 09:33 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Ferland 2011-12-15 11:57:26 UTC
I was building a development image which includes a lot of packages and the final hddimg failed with:

mkdosfs: seek failed
mkdosfs 2.10 (22 Sep 2003)
ERROR: Function 'build_boot_bin' failed

Manually creating a 2GB filesystem works fine:
tmp/sysroots/x86_64-linux/usr/sbin/mkdosfs -C foo.img 2000000
mkdosfs 2.10 (22 Sep 2003)

Manually creating a 2.1GB filesystem fails with:
tmp/sysroots/x86_64-linux/usr/sbin/mkdosfs -C foo.img 2100000
mkdosfs 2.10 (22 Sep 2003)
mkdosfs: seek failed

So I guess the problem really is mkdosfs.
Comment 1 Nitin Kamble 2011-12-15 12:01:41 UTC
The mkdosfs tool is a hacked up version to create efi partitions, 2gb or  more is too big dos fs for it to handle.
Comment 2 Saul Wold 2012-01-11 15:25:15 UTC
I recently created a 3.5G mkdosfs, can you try again with the recent master, there were some fixes that where added, I was not able to make an dosfs greater than 4G, as Nitin point out this is primarily used for EFI boot creation.  Can you please confirm that you can't build an fs greater than 2G, also check you local fs to make sure oyu have space.
Comment 3 Marc Ferland 2012-01-12 09:16:15 UTC
I tested mkdosfs from poky master branch and it works as expected. I was able to create a file larger than 2GB.

Running the exact same command from the edison branch fails as described earlier. 

Problem solved!
Thanks!
Comment 4 Nitin Kamble 2012-01-12 09:33:56 UTC
I guess upgrade to the newer version has brought new features solving the 2GB barrier. Closing the bug now.