flat assembler
Message board for the users of flat assembler.

Index > Windows > How to write Zeros to file very fast?

Author
Thread Post new topic Reply to topic
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 25 Oct 2006, 10:25
How can i write zeros to a file/disk very fast?

i need it to make a "Low level type format"
Post 25 Oct 2006, 10:25
View user's profile Send private message Reply with quote
Goplat



Joined: 15 Sep 2006
Posts: 181
Goplat 25 Oct 2006, 16:36
Writing zeros is not a low level format. Low level formatting involves placing the sectors and tracks, and is only done on floppy disks.
Post 25 Oct 2006, 16:36
View user's profile Send private message Reply with quote
Filter



Joined: 08 Oct 2006
Posts: 67
Filter 25 Oct 2006, 22:39
Goplat wrote:
Writing zeros is not a low level format. Low level formatting involves placing the sectors and tracks, and is only done on floppy disks.


I disagree. You can do a low level format on a hard drive. Usually hard drives come with a cd-rom or an iso can be downloaded with a utility that will do a low level format.

As far as doing a secure wipe you should look into DBAN. I think there is information on their website that will tell you how to do a secure wipe and it can do a secure wipe from a bootable cd-rom itself.
Post 25 Oct 2006, 22:39
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 25 Oct 2006, 23:17
Filter: those tools also just write zeroes - as a end-user, you haven't been able to do a true low-level format for years.
Post 25 Oct 2006, 23:17
View user's profile Send private message Visit poster's website Reply with quote
MAD_DËMON



Joined: 03 Mar 2006
Posts: 23
MAD_DËMON 04 Nov 2006, 15:43
If you want to extend the file size filling it with zeroes then I think that SetEndOfFile should be the answer http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/setfilevaliddata.asp
Post 04 Nov 2006, 15:43
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 05 Nov 2006, 14:57
SetEndOfFile is nice if you just want to extend a file - it's almost a zero-overhead operation on NTFS, and makes sure the file is as little fragmented as possible. Takes a while on FAT filesystems though.
Post 05 Nov 2006, 14:57
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.