2008/9/29, Mark David Dumlao <[EMAIL PROTECTED]>: > Well, parted resizes the partitions by playing with the partition > table of the disk itself. It doesn't really do anything to the size of > the disk, so wouldn't it be sufficient to append zeroes to the end of > the file, then use resize2fs to grow the partition? > > Where normally we do: > grow physical device -> grow block device -> grow filesystem > > and it means > 1) add disks > 2) partition / array disks > 3) use filesystem resize tool > > In a file-based partition, (1) would be replaced by growing the file > (appending zeroes), and (2) isn't necessary because the file is > already the block device (it has no partition table). So I was > thinking > dd if=/dev/zero bs=1M count=100 >> filename > fatresize filename (dunno how to fatresize) > > would grow your disk by 100M.
Sorry I didn't make my problem clearer. I start my FAT file big and shrink to fit. I think there's a GNU tool to truncate files, but I'm sure that would mean cutting off some important data inside the FAT filesystem. _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

