fat data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aditigupta
    New Member
    • Jul 2007
    • 6

    fat data

    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
  • iWillLiveforever
    New Member
    • Feb 2007
    • 136

    #2
    You are using an int try using a long or double. The maximum value an integer can be is 2147483647 on the positive side after you go past this number it goes to negative values.

    Hope this is the answer to your problem.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by iWillLiveforeve r
      You are using an int try using a long or double. The maximum value an integer can be is 2147483647 on the positive side after you go past this number it goes to negative values.

      Hope this is the answer to your problem.
      If there are that many sectors on a floppy disk that sure is a huge pancake ;-)

      kind regards,

      Jos

      Comment

      • aditigupta
        New Member
        • Jul 2007
        • 6

        #4
        Originally posted by JosAH
        If there are that many sectors on a floppy disk that sure is a huge pancake ;-)

        kind regards,

        Jos


        thats wat i think.......the re are just 2880 usable sectors in floppy.......i dont think this can be the reason........ think more plz.......

        thanks

        Comment

        Working...