hi
as i m doin data recovery project for floppy disk whenever i put some big doc file of abt 600 kb or so then i get negative sector number in my fat information and hence that sector is not read..........
m doin all this in c/c++
wat can be the reason for negative value of sectors
plz help
thanks
fat information
Probably a stupid question; but did you realize that on floppy disks, fat-12 is used? I'll bet you forget to shift the clusternumber by four or anding by 0xfff
Otherwise you get very strange clusternumbers... It just not possible that your 12 bit number is negative, since the 16th bit of an (16 bits) integer is the sign..
Otherwise you get very strange clusternumbers... It just not possible that your 12 bit number is negative, since the 16th bit of an (16 bits) integer is the sign..
-
- Posts: 5
- Joined: Wed Jul 11, 2007 11:15 pm
[probably] Miss. Gupta, I do not think you will visit this forum again, but just in case you do......
aditigupta wrote:probably u think that the other person is a fool........ its not a stupid question.......
did you know - Learning English really helps. It's not your question that hailstorm is referring to, but his/her own.hailstorm wrote:Probably a stupid question; but did you realize that on floppy disks, fat-12 is used?
You are always welcome.aditigupta wrote: thanks neways
Do you mask out the top 4 bits? If not, as soon as you get beyond sector 2048 you'll get negative numbers. That's about a megabyte though, so it might be something else.aditigupta wrote:probably u think that the other person is a fool........ its not a stupid question....... i hav been working on this since two months n u cant just cant expect me to do such a foolish mistake i do know the reading logic.....
thanks neways
i thru with my project.....
Exactly, I was referring to my own question; I know from experience that small bugs in code can be a pain in the @$$. Secondly, I would never call somebody stupid on any forum whatsoever.prashant wrote:[probably] Miss. Gupta, I do not think you will visit this forum again, but just in case you do......
aditigupta wrote:probably u think that the other person is a fool........ its not a stupid question.......did you know - Learning English really helps. It's not your question that hailstorm is referring to, but his/her own.hailstorm wrote:Probably a stupid question; but did you realize that on floppy disks, fat-12 is used?
You are always welcome.aditigupta wrote: thanks neways
We can only comment on what we are given.aditigupta wrote:probably u think that the other person is a fool........ its not a stupid question....... i hav been working on this since two months n u cant just cant expect me to do such a foolish mistake i do know the reading logic.....
thanks neways
i thru with my project.....
Microsoft: "let everyone run after us. We'll just INNOV~1"