Next Previous Contents

8. Metafrash toy pyrhna gia diskoys IDE

Ean o pyrhnas anixneusei thn uparjh kapoioy diaxeiristh diskoy se enan IDE disko, 8a prospa8hsei na diairesei ton disko opws o diaxeirisths, wste to Linux na blepei tis idies katatmhseis poy 8a eblepe, gia paradeigma, to DOS me to OnTrack h to EZ-Drive. Parola ayta, DEN ginetai diairesh otan h gewmetria exei dhlw8ei sth grammh entolwn - etsi h entolh `hd=cyls,heads,secs' mporei na ejafanisei thn symbatothta me to diaxeiristh diskoy.

H anadiairesh ginetai xrhsimopoiwntas 4, 8, 16, 32, 64, 128, 255 kefales (kratwntas to H*C sta8ero) mexri eite C <= 1024 h H = 255.

Oi leptomereies akoloy8oun - oi ypoepikefalides einai ta mynhmata poy emfanizontai kata thn ekkinhsh. Edw kai opoydhpote allou se ayto to keimeno oi tupoi twn katatmhsewn dinontai se dekaejadika noumera.

8.1 EZD

To EZ-Drive anixneuetai logw toy oti h prwth prwtarxikh katatmhsh exei tupo 55. H gewmetria diabazetai opws perigrafetai parapanw anti toy pinaka katatmhsewn toy tomea 0 - o pinakas diabazetai apo ton tomea 1. Oi ari8moi temaxiwn toy diskoy den allazontai, alla eggrafes ston tomea 0 anadromologountai ston tomea 1. Ayth h symperifora mporei na allax8ei anametalwttizontas ton pyrhna me #define FAKE_FDISK_FOR_EZDRIVE 0 sto ide.c.

8.2 DM6:DDO

O OnTrack DiskManager (ston prwto disko) anixneuetai apo to gegonos oti h prwth prwtarxikh katatmhsh exei tupo 54. H gewmetria diabazetai opws anafer8hke parapanw kai oloklhros o diskos «metakineitai» kata 63 tomeis (wste o palios tomeas 63 na ginei o tomeas 0). Meta, ena kainourio MBR (me ton pinaka katatmhsewn) diabazetai apo ton neo tomea 0. Fysika ayto ginetai gia na dhmioyrgh8ei xwros gia to DDO - gia ayto den ginetai ayth h allagh stoys ypoloipoys diskoys.

8.3 DM6:AUX

O OnTrack DiskManager (stoys alloys diskoys) anixneuetai apo thn prwth prwtarxikh katatmhsh poy exei tupo 51 h 53. H gewmetria diabazetai opws perigrafetai parapanw.

8.4 DM6:MBR

Mia palaioterh ekdosh toy OnTrack DiskManager den anixneuetai apo ton tupo katatmhshs alla apo to apotupwma toy. (Elegxetai an h metatopish poy brisketai sta prwta 2 kai 3 bytes toy MBR den einai parapanw apo 430, an h elleich einai ish me 0x55AA kai an akoloy8eitai apo mono byte). 3ana h gewmetria diabazetai opws parapanw.

8.5 PTBL

Telos, yparxei enas elegxos poy prospa8ei na brei th metafrash apo tis times start kai end twn prwtarxikwn katatmhsewn: Ean kapoia katatmhsh exei arxiko kai teliko tomea 1 kai 63 antistoixa kai exei telikes kefales 31, 63, 127 h 254, tote, efoson synh8ws oi katatmhseis teleiwnoyn sta oria toy kylindroy, kai, epishs, to IDE yposthrizei to polu 16 kefales, symperainetai oti to BIOS metafrazei kai h gewmetria allazei gia na xrhsimopoih8oun 32, 64, 128 h 255 kefales antistoixa. Parola ayta, den ginetai kamia allagh otan h paron gewmetria exei hdh 63 tomeis ana ixnos kai toylaxiston 63 kefales (to opoio oti exei hdh ginei mia allagh gewmetrias).


Next Previous Contents