Sie sind auf Seite 1von 15

UNIT2

DMO

LSA

SystemLifecycle:Ups&Downs
Booting KernelInitialization init:ProcessNumberOne Shutdown PowerManagement

DMO

LSA

Harddisk

Outside

DMO

LSA

HardDisk

Inside

DMO

LSA

ALookattheHardDisk
Ontheinside,therearesomeshinyplattersona spindle. Theharddiskintheabovepicturehasonlytwo platters,butmostmodernoneshavemorethanthat, atleastthree. Thearmsaboveandbeloweachplatterholdtiny read/writeheadsontheendofthemwhichfloatona thincushionofairjustabovethespinningdisk surface.
DMO LSA

Theycanpivotaroundtosweepthediskinsearchof thedatayouwant. Dataontheharddiskplattersiswritteninconcentric rings(likegrowthringsonatreestump),called 'tracks'. Tracksaredividedupinto'sectors'. Onesectoronaharddiskcanhold512bytesofdata. Actuallythereareagreaternumberofsectorsonthe outsidetracksandfewerontheinsidetracks.


DMO LSA

The'beginning'ofadiskmeanstheoutside edge,andthe'end'isreallythepartclosest tothecenter.

DMO

LSA

Partitions
Inoldentimes,adiskcouldonlyhavefour partitions.Thepartitionnumbers1,2,3and4are reservedforthepartitions.

Thesearecalledprimarypartitions

DMO

LSA

Thenitbecamepossibletosubpartitiononeofthese fourprimarypartitions.Onlyoneofthefourprimary partitionsisallowedtobedividedupinthisway.

Thesubpartitionedprimarypartitioniscalledan 'extended'partition.Itcanhavethenumberfrom5. Thepartitionsthatareinsideitarecalled'logical' partitions.


DMO LSA

Becausethenumbers1,2,3and4arereservedforthe fourprimarypartitions(orthreeprimaryandone extendedpartition),thepartitionnumberingfor logicalpartitionsalwaysbeginswithnumber5. Evenifthereisonlyanextendedpartitionandno otherprimarypartitions,thelogicalpartitionscan neverhaveanumberlowerthan5. Logicalpartitionnumberingbeginsatfiveandcounts upwardsfromthere.OnanIDEdisk,wecanmakeas manyas63logicalpartitions DMO LSA

TheLinuxBootprocess
BasicInput/Outputsystemstartsandchecksfor Hardwaredevices. BIOSisaprogramandisbuiltintothehardware memory. ThepurposeoftheBIOSistofindthehardware devicesthatwillbeneededbythebootprocess.

DMO

LSA

TheBIOShandsovercontroltothefirststageboot loader,LILO. Itthenreadsinthepartitiontableandlooksforthe secondstagebootloaderonthepartitionlistedinthe /etc/lilo.conffile.

DMO

LSA

LILOrunsthesecondstageboot loader,/boot/boot.b. Thesecondstagebootloaderfindsthekernelimage andrunsit.

DMO

LSA

Thekernelimagecontainsasmalluncompressed programthatdecompressesthecompressedportion ofthekernelandrunsit. Thekernelscansforthesysteminformation includingtheCPUtimeandspeed. Itsdriversscanforotherhardwaresandconfigure whattheyfind. Thekernelthenmountstherootfilessysteminread onlymode.


LSA

DMO

Thekernelstartstheinitprocess. Theinitprocessstartsthegettyprocessforvirtual consolesandserialterminalsandinitiatesother processes.

DMO

LSA

Das könnte Ihnen auch gefallen