mkdosfs

Denys Vlasenko vda.linux at googlemail.com
Sat Mar 28 13:34:58 UTC 2009


On Saturday 28 March 2009 08:35, Vladimir Dronnikov wrote:
> >
> > Check current svn first :D
> >
> 
> Seems OK. Thanks!
> 
> I treat seek-o-fobia as means for using stdout for resulting image, right?
> I did:
> # mkfs.vfat /proc/self/fd/1 1440 >dos1
> 
> The resulting image mounts correctly, but is of size 27136. Shouldn't
> we fill the image in with zeros up to requested size?

This will take long, long, long, long, long, long time on a 2Tb disk...

To be honest, my intention is not to make "mkfs.vfat /proc/self/fd/1"
*generally* usable, I just don't want to make it *totally impossible*.

I think it is mainly useful as a debugging tool, to see what
we would write out, without actually playing with terabyte-sized images:

# ./busybox mkdosfs -F 32 -v /proc/self/fd/1 10111000111 >TEST
Device '/proc/self/fd/1':
heads:255, sectors/track:63, bytes/sector:512
media descriptor:f8
total sectors:20222000222, clusters:157965093, sectors/cluster:128
FATs:2, sectors/FAT:1234103
volumeID:49ce2696, label:''

writes out 1263790080 byte large file. Thus we *can* test 11 Tb image
creation.
--
vda


More information about the busybox mailing list