From: <ch...@to...> - 2004-03-04 00:09:02
|
I am working on a tool that can do this as well. Mine was originally created for loopback files on ntfs so it did not use a sparce file because a change in filesize without windows in control could be bad news The program that I have created is a tcl/tk starpack so it is kinda bulky due to the executable containing a whole tcl/tk interpreter but it does have a nice gui I am currently experimenting with having it be able to add space to the file and call resize2fs.exe create a new file and optionally call mke2fs and format the file to either ext2 or 3 It will also call e2fsck before and after any resize. I am debating on wether or not to add sparce file support do to the fact that sparce files can only be used if the filesystem will never be used outside of colinux (ie. a dualboot mode) if resideing on NTFS chris > I have created some utilities for creating large files under windows for > file systems. You can get them at > http://www.geocities.com/dan_slater/colinux/utils.zip > > In this zip file you will find 3 executables and sources. The utilities > are: > > mkFile.exe - use this to easily create a large file for your > file-system. If you have an ntfs 5.0 partition ( the default for Windows > 2000 and later ). Then be sure to use the -s option to create a sparse > file. When you create a sparse file, windows only allocates disk space > for the non-zero data. For example: > > mkFile -s root_fs 10G > > This will create a 10GB empty file named root_fs. If you look at the > file with explorer properties or use the spsize utility, you will see > that the while the file is 10 GB, the allocated disk space is 0 bytes. > > spsize - use this to check the size of a sparse file - it will report > both the file size and the disk space used > > mkSparse - run this on an existing file to convert it to a sparse file - > note: there is a lot of room for improvement for this one. Also, be > aware this one modifies your file so it has the potential to destroy > your data if I got something wrong. > > Still to do: would be nice to have a linux utility that walks the free > space on your filesystem and zeros out any non-zero clusters before > running mkSparse. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op¿ick > _______________________________________________ > coLinux-devel mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-devel > |