English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 27 October 2018, 04:48   #1
bladecgn
Registered User
 
Join Date: Nov 2013
Location: Essen / Germany
Posts: 188
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, 16:54   #2
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
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, 18:59   #3
bladecgn
Registered User
 
Join Date: Nov 2013
Location: Essen / Germany
Posts: 188
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 28 October 2018, 23:22   #4
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
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, 08:32   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
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 offline  
Old 29 October 2018, 09:18   #6
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
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, 12:06   #7
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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, 16:01   #8
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,335
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 119 13 February 2021 16:35
Selling some unused parts McVenco MarketPlace 3 18 October 2008 15:16
If WinUAE cannot detect your supposedly empty HDD, look for zap.exe or wipe.exe. fmcpma support.WinUAE 5 08 August 2006 00:35
Unused Connectors/Ports BippyM support.Hardware 16 26 July 2006 13:56
check HDD bad blocks rare_j support.Apps 3 21 February 2006 00: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 09:51.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.30074 seconds with 13 queries