Welcome, Guest. Please login or register.

Author Topic: AmiBack Tools and PFS3  (Read 3813 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas


Offline Thomas

Re: AmiBack Tools and PFS3
« Reply #1 on: October 10, 2006, 05:40:16 PM »
Code: [Select]

/* rexx */

numeric digits 14 /* make it work with numbers >= 2 GB */

do i=1 to 10000

size = 2 * 1024 * 1024 * 1024   /* size in bytes (2 GB) */
file = "work:empty"||i          /* file name appended with current file number */

buffsize = 32768
buffer = left("",buffsize,'00'x)

if Open(out,file,write) then do

do while (size >= buffsize)
call WriteCh(out,buffer)
size = size - buffsize
end
if size > 0 then
call WriteCh(out,left(buffer,size))

call Close(out)
end
end


Let it run until you get a "volume xxx is full" message, then press Ctrl-C in the Shell window and click on Cancel.

Don't you think that formatting the drive would be easier than that ?

Bye,
Thomas

Offline Thomas

Re: AmiBack Tools and PFS3
« Reply #2 on: December 08, 2006, 08:00:26 AM »
@orange:

Sorry for the delay, I just noticed your answer today.

What you try to achieve is not possible with PFS. PFS stores all directory data in a reserved area in the beginning of the partition and all data in the remaining space of the partition. The data portion does not contain any meta data, i.e. it is not possible to recover any files from the data portion if you lost the directory portion. (In a similar manner it is not possible to tell if files are corrupted if only the data portion has been overwritten and the directory is intact).

Now storing big files with zeroes does only wipe the data portion with no effect on later recovery actions. If you want to make recovery easier, you have to wipe the directory portion. This is not possible with DOS means, you have to access the HDD directly. For example you could create a big image file filled with zeroes and use an image program like TSGUI to write the image to the partition. Then the directory area will be wiped.

However, the same can be achieved by just formatting the drive (with standard format, not quick).

So my initial idea of "isn't it easier to just format the drive" is still and even more valid now that we know what you want to do.

Bye,
Thomas