Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > C-64 formatting program which supports multiple disk drives simultaneously and has proper error checking
2010-03-19 05:20
vedos
Account closed

Registered: Jul 2003
Posts: 33
C-64 formatting program which supports multiple disk drives simultaneously and has proper error checking

Can anyone recommend me a good disk formatting program for C-64 (I'm using 1541 and 1541-II drives) which supports multiple disk drives (preferrably simultaneously) and has a proper disk error detection (as far as I've understood eg. Action Replay MK VI's format doesn't check for disk errors). The speed isn't that important. I just want to format working disks. :)
2010-03-19 08:29
Krill

Registered: Apr 2002
Posts: 2844
If speed is not an issue, just use the built-in format:
openN,8,15,"n:disk,id"
where N can be at least any number between 0 and 15, and the 8 is obviously the drive number.

This command immediately returns, so you can issue it multiple times on multiple connected drives. Just increase N with every invokation.

However, before re-using an N, you need to
close N
I don't know how well this does error-check on disks, but you can get no better format than the ROM routines, which are that slow for a reason. (And you can always use a tool like Disk Checker to check) :)
2010-03-19 12:38
hevosenliha

Registered: Sep 2008
Posts: 48
I guess this is just me, but I've always had problems using the built in formatter, on 1541, 1541-II and Excellerator+ (and that drive was brand new...)

The disks simply just don't work reliably when formatted with the built in... When formatted with some turbo formatter I've had no problems what so ever.

The latest utility I've used is from alpha flight, but I don't think it can be used on multiple drives...
2010-03-19 20:22
Skate

Registered: Jul 2003
Posts: 490
Action Replay's format command (@n) always worked for me. And I find it early to check disk at format level. Copy whatever you want, then make an error check with a tool like which Krill suggested.
2010-03-19 21:37
vedos
Account closed

Registered: Jul 2003
Posts: 33
Quote: If speed is not an issue, just use the built-in format:
openN,8,15,"n:disk,id"
where N can be at least any number between 0 and 15, and the 8 is obviously the drive number.

This command immediately returns, so you can issue it multiple times on multiple connected drives. Just increase N with every invokation.

However, before re-using an N, you need to
close N
I don't know how well this does error-check on disks, but you can get no better format than the ROM routines, which are that slow for a reason. (And you can always use a tool like Disk Checker to check) :)


In which way this reports if there are errors during format? I'd like a program which could be used to format using 2 to 4 disk drives at once. Does anyone know if such program exists?
2010-03-19 22:41
chatGPZ

Registered: Dec 2001
Posts: 11116
Quote:
Action Replay's format command (@n) always worked for me.


uh yeah, because it does no error checking whatsoever. AR even formats a slice of bread =)

if you want a reliably formatted disk, DONT use AR to format (and avoid most other fastformatters too). either use the cbm dos one (which indeed does all necessary error checking) or the one from grahams TFR (which is a bit faster, and still has verify)
2010-03-20 00:18
Skate

Registered: Jul 2003
Posts: 490
@Groepaz: did you read my message to the end? I say it's not necessery to make an error check until you finish copying your files. quick format, copy, then check for errors. even if your disk is damaged but your files are not covering that track/sector, hell with that error.
2010-03-20 05:10
Oswald

Registered: Apr 2002
Posts: 5017
I hate to say it, but groppie is kinda right here :)
2010-03-20 13:22
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Fast Hack'em, worked since 1985
2010-03-20 13:39
Krill

Registered: Apr 2002
Posts: 2844
Quote: Fast Hack'em, worked since 1985

Which version are you referring to? I found none which has a multi-drive formatter.
2010-03-21 04:10
chatGPZ

Registered: Dec 2001
Posts: 11116
Quote:
Groepaz: did you read my message to the end? I say it's not necessery to make an error check until you finish copying your files. quick format, copy, then check for errors. even if your disk is damaged but your files are not covering that track/sector, hell with that error.


its not that easy unfortunately. as long as you are never going to write again to that disk, then everything is fine. (thats why many people dont remember AR fastformat as problematic). the problems arise whenever you are going to write something to the disk.... because:

a proper format routine as a first step determines how many bit cells can be written to a track in one rotation (the duration of a bit cell it can write is fixed, but the rotation speed is not). now it calculates the number of padding bytes that must be used to fill the various gaps on the track. many fastformatters skip this step completely and use hardcoded values for an assumed rotation speed of 300rpm. (and this is what saves a lot of time, its not the verify of actual written blocks - that can be done in a single additional rotation).

and this is why omitting the above eventually becomes a problem:

assume you ar fast-formatted a disk on a drive that spins slightly slower than 300rpm. the consequence would be that all gaps are slightly shorter on the medium than they should be. now you put this disk into a drive which is slightly faster than 300rpm.... you can read the disk fine, no problem. but when writing to the disk all hell breaks lose: when writing a block, the drive looks for the sector header, and when the sector is found waits until the data block comes by, switches to write mode and then writes out a full block. due to the analog nature of the media (rotation speed is not fixed) the actual physical area on disk which represents this written sector doesnt always perfectly match the old same sector, but "moves back and forth" a bit - thats why the padding gaps between data blocks and sector headers exist. now remember, the drive we are using is a bit too fast, and this very gap is a bit too short. what eventually happens now is that the data block overwrites the sync mark before the following sector header - resulting in that sector beeing unreadable (sector header not found).

and thats why a proper format routine is win :)
2010-03-21 05:44
Oswald

Registered: Apr 2002
Posts: 5017
now up it to codebase :)
2010-03-21 07:58
tlr

Registered: Sep 2003
Posts: 1714
@groepaz: Well said!
In my practical experience most drives have been close to 300 rpm but that's not guaranteed. Also many fast formatters (including my older one) assume the same static gap for all speed zones. Some (e.g jiffy dos) assume different static gaps for each speed zone which is slightly better.
Whereas the normal 1541 formatter measures track length for each track, the speed dos+ formatter improves speed by only measuring the track length once per speed zone.

I have done a prototype formatter that only measures track length once per format and then scales the value for each speed zone. That seems to work quite well.
2010-03-21 10:27
The Shadow

Registered: Oct 2007
Posts: 304
The fast format in Fast Hack 'Em can be found in the file copier.
2010-03-21 15:29
tlr

Registered: Sep 2003
Posts: 1714
Quote: The fast format in Fast Hack 'Em can be found in the file copier.

I checked the one in this release: Single File Hack'em.
It is the typical static intersector gap=8 without verify.
2010-03-21 21:39
Mace

Registered: May 2002
Posts: 1799
@ Groepaz: thanks for the insight :-)
Not that I can make any use of this information, but I like reading about it...

BTW, mind the 'goof' of Single File Hack 'em.
2010-03-21 21:48
The Shadow

Registered: Oct 2007
Posts: 304
The pure, uncracked version of Fast Hack 'Em is the best to use. Choose the File Copy option from this version of Fast Hack'em V6.00
2010-03-22 09:37
Krill

Registered: Apr 2002
Posts: 2844
Mace: You might enjoy reading loading times & drive compatibility then :)
2010-03-22 09:41
chatGPZ

Registered: Dec 2001
Posts: 11116
"BTW, mind the 'goof' of Single File Hack 'em."

the problem you describe is very common, and not only fast-hackem (yes, all versions) have it. eg warpcopy has it too :)
2010-03-22 10:07
Mace

Registered: May 2002
Posts: 1799
Krill: the concise description of Groepaz is much more pleasant to read than endless code snippets with GCR bit rotations ;-)
2010-03-22 10:57
Krill

Registered: Apr 2002
Posts: 2844
Mace: Scroll down to the bottom :)
2010-03-22 13:04
Skate

Registered: Jul 2003
Posts: 490
@Groepaz: you win but I'll stick to the @n with my exactly 300rpm ultramegasuper drive ;)
2010-04-01 08:29
Frantic

Registered: Mar 2003
Posts: 1627
Just thought it would be useful to mention in this thread that TLR recently released a proper fast formatter (although for one drive only, it seems):

http://noname.c64.org/csdb/
2010-04-01 08:29
Frantic

Registered: Mar 2003
Posts: 1627
Just thought it would be useful to mention in this thread that TLR recently released a proper fast formatter (although for one drive only, it seems):

Format II
2010-04-01 18:35
Count Zero

Registered: Jan 2003
Posts: 1825
Someone turn groepaz into an admin! Erm... Nevermind. :)

He sure is a genious in explaining this nicely. Should have been done in 1988 to a wide audience already. :(

EDIT: Another reason this often passed without much notice is that many speeders update BAM and directory using standard kernel routines and track 18 is like always (at least often) fine then regardless of drive speed and misalignements.

/cz
2010-04-15 15:27
vedos
Account closed

Registered: Jul 2003
Posts: 33
Ok. I'm almost sold, but it'd be kickass with simultaneous (or even ok with not simultaneous) multidrive support.

I was also wondering what the TAILGAP option means. There's NORMAL and OPTIMIZED. Can anyone explain what these means?

Thanks for the program tlr!
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
cba
tlr
Hobbit/Laser Inc.
CA$H/TRiAD
Malmix/Fatzone
bepp/ΤRIΛD
Mason/Unicess
Nith/TRIÉ…D
Krill/Plush
Guests online: 152
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.094 sec.