Jump to content











Photo

Start sector Dec to bin


  • Please log in to reply
3 replies to this topic

#1 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 13 April 2012 - 05:05 PM

Hello!
I have a USB stick whose Mbr is faulty.
I used a recovery tool. It's a demo so it can't rebuild.
It found the partition I'm looking for.
I says start sector 69. Cool.

I am trying to put that 69 in the binary values of the MBR.
But.
69 in binary is 1000101. The entry for start sector should be 6 digits long.

Where am I wrong?

:)

#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 13 April 2012 - 11:25 PM

Is there a sector 0 - if so then sector 69 is Logical Block Address 69 which is actually sector number 70 (as sector numbers start at 1)

Max sector number is 63. So you need to have cyl=0 head=1 Sector=x  where x equates to the sector number + 63 (assuming 63 sectors per track geometry).

#3 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 14 April 2012 - 07:23 PM

Hi, thanks for that.

It seems it's Their image (ActiveRecovery), which starts at 69. So my stick is probably normal (not LBA).
Stick was Fat32, 512/63. 1 partition.
Testdisk doesn't find any mbr (both modes).
I'll try some other tools too.

Cheers.

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 21 April 2012 - 10:11 AM

Where am I wrong?

In several places (not everywhere but here and there) :whistling:.
It is VERY UNlikely that a partition starts on sector 69. (no OS or partitioning tool on earth, on *any* geometry, will ever do that unless "forced to")
There is NO binary to be "input" in a MBR, there are TWO start addresses, one CHS and one LBA, BOTH expressed in HEX that go in the partition table, together with some other data (Partition ID, Active status) and two end addresses.
TESTDISK does not look for any "MBR" at all, it tries to look for bootsectors/PBRs.

Read here:
http://reboot.pro/2959/
try the spreadsheets.

Get a disk/hex editor with a template for MBR/partition tables, suggested:
http://reboot.pro/8734/

:cheers:
Wonko




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users