First o all, thanks for replies.
I'm just experimeting... this test has no scope itself, I'm interest in a way to just resize a fat filesystem, without data loss. It seems that parted work well in manipulating a partitioned disk, but I'm serarching something more specific to only work with filesystem, not involving a device, partions and partition table.
I've reported above two examples: resize2fs that works for EXT* filesystems and ntfsresize for NTFS filesystem. Also for reiserfs ther is its own tool to resize it. But I've not found any tool to manipulate a FAT filesystem.
It sounds strange in my view cause Fat is a very popular filesystem (despite of all its limitations).
I've searched in the net but without any working result.
I've found two way to shrink a FAT filesystem:
1- using parted
2- unsing a tool called "fatresize" (but based in someway on parted)
I'd like to use some other tool instead.
Yes... I'm not clear on this sentence, but before explain which are problems I noticed I'd prefer to try an other way if it exists.
Thanks a lot for replies.
If you are interested in testing the above steps and founding a tool that works well to resize fat formatted file "fatimage", probably you will notice some error reported by parted or fatresize.
Try if you can, and then verify filesystem with "dosfsck -v".