In-depth technology research: finding new ways to recover data, accessing firmware, writing programs, reading bits off the platter, recovering data from dust.

Forum rules

Please do not post questions about data recovery cases here (use this forum instead). This forum is for topics on finding new ways to recover data. Accessing firmware, writing programs, reading bits off the platter, recovering data from dust...
Post a reply

Re: Head Map Parser

February 1st, 2021, 13:44

I confirm the issues with 32 bit compilation..
Let me now try the modification that you have provided..
I am 100% they will work since the diagnosis is coming from you :)
--
Last edited by sin on February 1st, 2021, 13:47, edited 1 time in total.

Re: Head Map Parser

February 1st, 2021, 13:46

You are absolutely right.I modified the code as per your suggestions Thanks for helping this improvise :)
love you man :)
<3
--

Re: Head Map Parser

February 3rd, 2021, 4:38

Bit more time to look at this.

Code:
Type Serpent Field = 1
   
    uliStartLBA As ULongInt                 ' starting LBA of serpentine segment
    uliLBA2 As ULongInt                     ' unknown LBA of serpentine segment
    uliLenSerp As ULongInt                  ' length of serpentine segment
    dwUnknown As ULong                      ' unknown 4 bytes -- always 0x00 0x00 0x00 0x00 ?
    wdNumChar As UShort                     ' number of unicode characters in following text string, either 6 or 7
    uliHeadText As ULongInt                 ' unicode "Head"
    wdHashChar As UShort                    ' unicode "#"
    wdHdDecDig1 As UShort                   ' first unicode decimal digit of head number

End Type


uliStartLBA Appear to be what PC3K calls "Virtual" - Looks to be the LBA read order.
uliLBA2 Is the actual starting LBA.
dwUnknown Guessing this is "type" - but I've not managed to get it to change value.
uliHeadText this is free text entry.

I've attached (hopefully) a map file with an line added from within PC3K hopefully it makes more sense than I do.

Other than you can read it directly - I'm wondering why not just export to sql3 file and parse it?
Attachments
Create submap use heads info_manual.zip
(64.93 KiB) Downloaded 712 times

Re: Head Map Parser

February 3rd, 2021, 7:29

Yes thats another way...export as sq3 file then convert it to excel. One could read excel column and simply parse.

Also, the "Virtual" = actual lba start under 512 mode. Which is not true if physical sector size is used to parse.

Also, you can parse the actual head.map file any way....its not that complicated now.


--

Re: Head Map Parser

February 3rd, 2021, 7:30

I wrote this to experiment and learn C. Infact i feel i pretty much suck at C and need more practice :D

--

Re: Head Map Parser

February 3rd, 2021, 15:01

I've amended my program according to the latest information:

http://www.users.on.net/~fzabkar/FreeBasic_W32/Utils/deddimap2.bas
http://www.users.on.net/~fzabkar/FreeBasic_W32/Utils/deddimap2.exe

Now the Palmer and Charger maps have a lot of noncontiguous areas. The corresponding DDI map has zeroes in those locations, so I don't know how DDI will deal with this.

Re: Head Map Parser

February 4th, 2021, 4:13

Yes absolutely it would. In such cases average zone skip size would come handy...the whole idea behind this was to skip those many sectors so the imager switches to the lba under next head even if that head is not mapped or not recognized under any segment of the loaded map.
--

Re: Head Map Parser

February 4th, 2021, 14:23

@sin, just FYI, I have been advised that your program compiles to a size of 16.3KB under Linux.

Re: Head Map Parser

February 5th, 2021, 4:40

is that any good or bad as a news ...help educate :P :) ?

--

Re: Head Map Parser

February 5th, 2021, 5:52

To me it says that Windows applications are bloated.

Re: Head Map Parser

February 5th, 2021, 8:08

hahahahahahahah xD :P

Re: Head Map Parser

February 5th, 2021, 8:27

Also, i was just told by my mentor that "Improve" and Improvise have different contexts...i mean improve in my earlier posts.
I was just going by what I was taught in the school... The improvement (noun). To improvise (verb). To be improved (adjective)
hehe

Dont take me wrong, English is not technically my first language....Its Bambiya (local Mumbai Hindi)....google the word 'jhakkas'
that is street hindi used in Mumbai. :D
--

Re: Head Map Parser

February 6th, 2021, 6:26

sin wrote:Sounds just great.. Infact my findings are just done now :D
The way head.map stores info is pretty cool.


Ok someone put me out of my misery please - from the main heads.map file I can find the head and what I assume is the start lba of each region. It could also be the end of the previous region ... but I don't think so. Neither the length or the end lba appear to be in the 789 blocks relating to the section. Are they actually there ? I could simply imply the information from the previously parsed section but that feels really sketchy.

Re: Head Map Parser

February 8th, 2021, 1:40

sin wrote:Also, i was just told by my mentor that "Improve" and Improvise have different contexts...i mean improve in my earlier posts.
I was just going by what I was taught in the school... The improvement (noun). To improvise (verb). To be improved (adjective)
hehe

Dont take me wrong, English is not technically my first language....Its Bambiya (local Mumbai Hindi)....google the word 'jhakkas'
that is street hindi used in Mumbai. :D
--


You are absolutely right.I modified the code as per your suggestions Thanks for helping this improvise :)

Should be:
"You are absolutely right.I modified the code as per your suggestions Thanks for helping with this improvement :)"

The improvement (noun). To improvise (verb). To be improved (adjective)

I think it should be: To improve (verb).

"Improvise" means to use something different than what was intended.

such as "We broke our radio antenna off of the car, and to improvise we used a coat hanger"

But we knew what you meant!! :-)

Re: Head Map Parser

February 9th, 2021, 9:26

Or I was playing some guitar on Aminor scale and improvised it to something by an accidental note! :D

Poor English :D
I grew up listening to LinkinPark. Nothing significant was taught in school...:D


--

Re: Head Map Parser

February 10th, 2021, 18:07

A minor is a great scale, maybe that says al lot about me... sad trombone!

and, You mean "Nothing significant was Learnt in school" ;-)

Re: Head Map Parser

February 11th, 2021, 3:53

nah...i would say taught....I am a good learner..so the blame is not on me! :D

That's a wrong perception, very beautiful Hindi songs which are happy lyrically are in a minor scale!

Minors are sad and majors are happy is very stereotypical approach :D

--

Re: Head Map Parser

February 11th, 2021, 16:15

Just going way off topic. I met a few kids who were 6th to 8th graders.
I asked them, what were the topics they were learning in Math?

So one girl speaks, Linear equations...

q1)I asked them what is a linear equation and whats so linear about it?


Oh its just having xes and ys , they are parameters etc etc yada yada

on further questioning,i asked, have they ever potted one to see how the name co-relates with its feature ?

No answer.

to hint around, i said whats noun form of (to be)linear? i believe it is (the) line!
no answers.

Apparently they go to very high profile schools....

Like my whole schooling got done under 150USD (1st grade to 10th grade)
and folks I was talking to are atleast 250USD/ year! or more.

So yeah in some aspects things are kind of bad/ok/poor mixed...STILL glad I was born in India, a few longitudes and latitudes here and there , i could have been in worse places comparatively ! :D

--

Re: Head Map Parser

February 11th, 2021, 16:54

AISI, India could be the economic engine of the world, if it wasn't for corruption and mismanagement. Now that countries are realising that it wasn't a good idea to transfer their manufacturing capability to China, it would seem like an opportune time for India to take on the role. You have a huge IT sector, a cheap and well educated workforce, and you have the advantage of the English language.

Re: Head Map Parser

February 12th, 2021, 2:41

It was called as "Sone ki Chediya" which means a golden sparrow.
All gold is robbed and so is kohinoor diamond.

All that is left is corrupt politicians and taxes to pay :D

--
Post a reply