English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 27 October 2018, 05:48   #1
bladecgn
Registered User

 
Join Date: Nov 2013
Location: Essen / Germany
Posts: 144
HDD: Wipe (Zero) unused Blocks

Is there any tool that clears unused blocks (i.e. overwrites them with zeros) on an amiga hdd?
bladecgn is offline  
Old 27 October 2018, 17:54   #2
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 371
ReOrg has an option for that.
And as a side effect you'll get a defragmented file system...
jbl007 is offline  
Old 28 October 2018, 19:59   #3
bladecgn
Registered User

 
Join Date: Nov 2013
Location: Essen / Germany
Posts: 144
Thanks. But it does not work for me, as I'm using PFS3.


So, is there any wipe tool that works for this filesystem?
bladecgn is offline  
Old 29 October 2018, 00:22   #4
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,203
Check the PFS3 tools in the official archive on Aminet.

If there's no tool for it there then you can do it manually by copying (cloning) all files to a second partition or drive, doing a full format on the first partition, and copying the files back.

As a bonus this will also give you a fully defragmented and optimized file system.
Leffmann is offline  
Old 29 October 2018, 09:32   #5
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,734
Quote:
Originally Posted by Leffmann View Post
doing a full format
No, that does not work. Format does not fill blocks with zeros but with a random pattern.

Even worse, if you do a full format on a VHD file, it will grow to its maximum size which is the opposite of what was asked for.

You better create a new HDF or VHD and copy all files to that.
thomas is online now  
Old 29 October 2018, 10:18   #6
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,203
Quote:
Originally Posted by thomas View Post
Even worse, if you do a full format on a VHD file, it will grow to its maximum size which is the opposite of what was asked for.
Yes, but bladecgn said it was an Amiga HDD.

Quote:
Originally Posted by thomas View Post
No, that does not work. Format does not fill blocks with zeros but with a random pattern.
I didn't know that, but if the purpose is to remove all traces of deleted files then it is perfectly fine.
Leffmann is offline  
Old 29 October 2018, 13:06   #7
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,118
You have to know that he already asked the question and because of answers he knows some/most things already. He wants to pack the partition image with best results, hence the zero all free space approach. WinUAE and HDF was already suggested. Which seems a good solution IMHO. Then he can copy zero files to fill up the HD and delete it later. PFS also contains dd (known from linux) with a zero device that can be used. A small script could automate that.
daxb is offline  
Old 01 November 2018, 17:01   #8
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,967
There are a couple of tools on Aminet:
FillDisk on Fish disk 61
CleanDisk

FillDisk doesn't fill with zeros, but you could hex-edit the executable to replace the string it does fill with with zeros. CleanDisk probably does fill with zeros but I didn't bother to test it.

[It would be nice if WinUAE could support checking if data to be written is all-zero. Then instead of actually writing the data, it could free up the corresponding space on the host (Windows) drive (if using a sparse HDF).]
mark_k is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wipe Out Hungry Horace Games images which need to be WHDified 115 17 June 2016 01:23
Selling some unused parts McVenco MarketPlace 3 18 October 2008 16:16
If WinUAE cannot detect your supposedly empty HDD, look for zap.exe or wipe.exe. fmcpma support.WinUAE 5 08 August 2006 01:35
Unused Connectors/Ports BippyM support.Hardware 16 26 July 2006 14:56
check HDD bad blocks rare_j support.Apps 3 21 February 2006 01:04

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.07259 seconds with 15 queries