Solved

Format a floppy disk

Posted on 2001-06-06
10
263 Views
Last Modified: 2010-04-17
I want to format a floppy disk in turboc such that it is not readable in DOS. please respond urgently. thanks.

I have managed to format the disk in turboc in such a way that it is unredable in dos using biosdisk.
now i want to write and read on the disk. what do i have to do becos i have already tried it with an
error- Bad ECC on disk read- with biosdisk function.
0
Comment
Question by:snb2001
10 Comments
 

Expert Comment

by:BJZ
Comment Utility
After normally formatting a disk delete the boot sector ( put some 0 ) and DOS could not read the disk normally.
0
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
This is sector 0, it needs specific values for 1st and last bytes. Zeroing them should do the trick. errr,,

I misunderstand something.. what tools in turbo C will you use to access the disk to do the format anyway? Or to read it (diskette) afterwards? Odds are you want DOS or minimally the BIOS part, or are you good at implementing low level direct I/O?

For best chance at getting incompatibility, load up linux. MS-Dos won't accept anything done in linux world. See also, free-DOS, they likely have some utilities that are relevant, and could be placed on a FAT16 space where turbo can find & call them.
0
 

Expert Comment

by:rasaraja
Comment Utility
Hi !

  Once u write something into the boot sector, DOS will ot recognise it.Use the harddisk writing interrupt to write to track 0 sector 1 and u are done.
hope that helps,
rasaraja
0
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
That is any different or improved from any of prior comments?

Go here for 90% of the assembler code:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=progsoftgen&qid=20129928
Note: you need not read disk, or loop to all sectors, but should initialize buffer to zero
0
 

Author Comment

by:snb2001
Comment Utility
I have managed to format the disk in turboc in such a way that it is unredable in dos using biosdisk. now i want to write and read on the disk. what do i have to do becos i have already tried it with an error- Bad ECC on disk read.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 24

Expert Comment

by:SunBow
Comment Utility
You have to read it as it was written. If you disable dos|bios, then you cannot use it.

Your error sounds like error control, like Parity bits and CRC, Cyclic Redundancy. But at moment I forget what is ECC. I think the format operation was likely incomplete.
0
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
;-)  Ah, you rewired your PC so electons called by subroutine form electromagnet perhaps?

ECC refers to the bits the hardware uses for error control. This is traditionally beyond any accessibility of s/w, for placing the computations in H/W is so much more efficient. So, easiest way to create ECC prob is to have physical damage on disk, either through bad h/w or perhaps a magnet may suffice.

Still, my guess is that you are not using same disk layout when reading it than you did when writing. This could happen I suppose if you tried to change sector length to an odd, say 756 bytes, then tried to read it back as if it was 912 bytes, when the system looks for headers, trailers, parity, etc, - it does not find them where they are suspected to be.  Note - ECC says it can have error AND still correct it, and this is the code not found.

I think your blocking factors are mismatched.
0
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
done?
0
 
LVL 54

Expert Comment

by:nico5038
Comment Utility

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now