meefik / busybox

BusyBox for Android
https://meefik.github.io/busybox
GNU General Public License v2.0
1.45k stars 256 forks source link

mkdosfs or mkfs.vfat cannot format partition larger than 2GB #54

Open georgekav2 opened 6 years ago

georgekav2 commented 6 years ago

When trying to format a partition larger than 2GB I get an error "mkdosfs: lseek: Value too large for defined data type"

With other busybox binaries it works fine. I presume that this is relevant: http://blog.scottt.tw/2009/07/mkdosfs-on-larger-then-2gb-filesystems.html

Arch: ARMv7 Tested: Both release and trunk binaries.

notorand-it commented 6 years ago

I could be wrong, but the limitation is intrinsic to the DOS/FAT file system. Even if you can format a 2+GB file system it's not given that you'll be able to use it all. Instead, I wish I could change my /sdcard file system to F2FS, EXT4 or (better to me) XFS.

georgekav2 commented 6 years ago

Same problem with mkfs.vfat trying to format as fat32. Also a formatted SD card using an older busybox binary works just fine and is usable to full extend.

idcrisis commented 6 years ago

Hi, there may be a case for all these filesystems to be made optionally case insensitive in their filenames. I cannot imagine a common man ten years from now getting two files in his filesystem just because he decided to add another file with the same name and different case eg File000.txt and file0001.txt.

JFS has such a patch.

Windows was popular because of such simple design decisions.

Also very important is the RC script to check filesystem sanity and fsck it on reboot.

Thanks