Booting Linux: the History and the Future

Total Page:16

File Type:pdf, Size:1020Kb

Booting Linux: the History and the Future BÓ ÓØiÒg ÄiÒÙÜ: Ìhe Ài×ØÓÖÝ aÒd Øhe FÙØÙÖe ÏeÖÒeÖ AÐÑe×b eÖgeÖ ÏeÖÒeÖºAÐÑe×b eÖgeÖ@eÔ­ºch ÂÙÒe ¾5¸ ¾¼¼¼ ½ ÁÒØÖÓ dÙcØiÓÒ Ab×ØÖacØ Ìhe b Ó ÓØ ÔÖÓ ce×× cÓÒ×i×Ø× Óf ØÛÓ Ña jÓÖ Ôha×e×: ´½µ ÐÓadiÒg Øhe ÄiÒÙÜ keÖÒeÐ iÒØÓ ÑeÑÓÖÝ aÒd Ôa××iÒg cÓÒØÖÓÐ ØÓ iظ aÒd ´¾µ iÒiØiaÐiÞiÒg Øhe ÒÓÖÑaÐ ÓÔ eÖ¹ aØiÓÒ eÒÚiÖÓÒÑeÒغ ËÓÑe Óf Øhe Ô Ó××ibÐe ÛaÝ× ØÓ BÓ ÓØiÒg aÒ ÓÔ eÖaØiÒg ×Ý×ØeÑ ÑeaÒ× ØÓ ÑediaØe b e¹ Ô eÖfÓÖÑ× Øhe×e ×ØeÔ× aÖe deÔicØed iÒ ¬gÙÖe ½º ØÛeeÒ a Ù×ÙaÐÐÝ ÚeÖÝ ba×ic¸ aÒd fÖeÕÙeÒØÐÝ ÙÒÖeÐi¹ abÐe ×Ý×ØeÑ eÒÚiÖÓÒÑeÒØ ´eºgº Øhe ÈC BÁÇ˵¸ Øhe fÙÒcØiÓÒaÐiØÝ ÖeÕÙiÖed bÝ Øhe ÓÔ eÖaØiÒg ×Ý×ØeÑ iع ×eÐf¸ aÒd Øhe ×ÓÑeØiÑe× ÖaØheÖ ×ÓÔhi×ØicaØed ×eØÙÔ× Hardware startup Ù×eÖ× Ûi×h ØÓ cÖeaØeº ÖÓÑ Øhe hÙÑbÐe b egiÒÒiÒg× Óf Øhe ­ÓÔÔÝ b Ó ÓØ ×ec¹ F Firmware (BIOS) ØÓÖ¸ Øhe ÄiÒÙÜ b Ó ÓØ ÔÖÓ ce×× ha× gÖÓÛÒ Öich fÙÒcØiÓÒ¹ ݸÛiØhÚeÖ×aØiÐe b Ó ÓØ ÐÓadeÖ× ´ÄÁÄǸ ÄÇADÄÁƸ aÐiØ Boot selector GÊÍB¸ eØcºµ¸ ×eÚeÖaÐ bÓÓØ iÑage fÓÖÑaØ׸ aÒd aÒ iÒcÖea×iÒg ÚaÖieØÝ Óf ÓÔ eÖaØiÓÒ× ØhaØ caÒ be dÓÒe eÒ b efÓÖe Øhe ×Ý×ØeÑ i× fÙÐÐÝ b Ó ÓØed¸ eºgº ÐÓad¹ eÚ Legacy OS eÖ ÑÓ dÙÐe× b efÓÖe ÑÓÙÒØiÒg Øhe ÖÓ ÓØ ¬Ðe iÒg Óf dÖiÚ Linux−capable ×Ý×ØeѺ Linux loader boot loader Ìhe bÓÓØ ÔÖÓ ce×× i× aÐ×Ó b ecÓÑiÒg ÑÓÖe diÆcÙÐØ Linux kernel ÛiØh ØiÑe: ÒeÛ Ô eÖiÔheÖaÐ× ÛiØh iÒØeÖe×ØiÒg fÙÒc¹ ØiÓÒaÐiØÝ aÒd ×ÓÑeØiÑe× eÚeÒ ÑÓÖe iÒØeÖe×ØiÒg ÔÖÓb¹ Ýed aÒd Òeed ØÓ b e ×ÙÔÔ ÓÖØed¸ ÐeÑ× geØ ÛideÐÝ deÔÐÓ Mount initrd Ù×eÖ× cÖeaØe ÒeÛ aÒd cÓÑÔÐicaØed ×Ý×ØeÑ cÓÒ¬gÙÖa¹ ØiÓÒ× aÒd ×ØiÐÐ Òeed ØÓ b e abÐe ØÓ b Ó Óظ aÒd Ða×Ø bÙØ /linuxrc ÒÓØ Ðea×ظ ÒeÛ fÙÒcØiÓÒaÐiØÝi× cÓÒ×ØaÒØÐÝ added ØÓ Øhe keÖÒeи aÒd ×ÓÑe Óf iظ eºgº ÒeÛ ¬Ðe ×Ý×ØeÑ׸ caÒ Linux kernel Boot loader aÐ×Ó a«ecØ Øhe b Ó ÓØ ÔÖÓ ce×׺ Mount root file system AÐÐ Øhe cÓÑÔÐicaØiÓÒ× Øhe b Ó ÓØ ÔÖÓ ce×× ha× ØÓ haÒdÐe /sbin/init aÖe eÚeÒ ÛÓÖ×e dÙÖiÒg ×Ý×ØeÑ iÒ×ØaÐÐaØiÓÒ¸ b ecaÙ×e a ÐaÖge ÒÙÑbeÖ Óf Ô Ó××ibÐe cÓÒ¬gÙÖaØiÓÒ× ÑÙ×Ø be System runs cÓÒ×ideÖed¸ bÙØ ×ØÓÖage ×Ôace i× ÐiÑiØedº FÖeÕÙeÒØÐÝ a ×iÒgÐe ­ÓÔÔÝ di×k ha× ØÓ ×ÙÆce fÓÖ Øhe ¬Ö×Ø ×ØeÔ׺ FigÙÖe ½: BÓ ÓØ ÔÖÓ ce×× ÓÚeÖÚieÛº Ìhi× ÔaÔ eÖ de×cÖib e× Øhe b Ó ÓØ ÔÖÓ ce×× ÙÒdeÖ ÄiÒÙܸ Øhe chaÐÐeÒge× iØ ha× ØÓ face¸ aÒd hÓÛiØeÚÓÐÚed ØÓ ÑeeØ ØheѺ Be×ide× Øhi× hi×ØÓÖicaÐ ÓÚeÖÚieÛ¸ Ûhich ÏhiÐe Øhi× ÔaÔ eÖ fÓ cÙ×e× ÑaiÒÐÝ ÓÒ Øhe i¿86 aÖchi¹ aÐ×Ó iÐÐÙ×ØÖaØe× geÒeÖaÐ de×igÒ cÓÒceÔØ׸ ×ÓÑe ÑÓÖe ØecØÙÖe¸ ÑaÒÝ cÓÒceÔØ× aÐ×Ó aÔÔÐÝ ØÓ ÓØheÖ aÖchiØec¹ ÖeceÒØ addiØiÓÒ× aÖe di×cÙ××ed iÒ deØaiк ØÙÖe× ×ÙÔÔ ÓÖØed bÝÄiÒÙܺ Ìhi× ÔÖÓbÐeÑ i× ×ÓÐÚed bÝ Øhe iÒiØÖd ÑechaÒi×Ѹ ½º½ ÄÓadiÒg Øhe keÖÒeÐ ÛhichaÐÐÓÛ× Øhe Ù×e Óf a ÊAÅ di×k b efÓÖe ÑÓÙÒع iÒg Øhe acØÙaÐ ÖÓ ÓØ ¬Ðe ×Ý×ØeѺ Ìhi× ÊAÅ di×k i× Ìhe ¬Ö×Ø Ôha×e i× Øhe dÓÑaiÒ Óf b Ó ÓØ ÐÓadeÖ׺ ÌheÝ ÐÓaded bÝ Øhe bÓÓØ ÐÓadeÖº iÒiØÖd i× de×cÖib ed iÒ haÚe ØÓ ÖeØÖieÚe Øhe keÖÒeÐ eÜecÙØabÐe aÒd Ô Ó××ibÐÝ ×ecØiÓÒ ¿º addiØiÓÒaÐ daØa fÖÓÑ ×ÓÑe ×ØÓÖage Ñedia¸ eºgº a di×k¸ ÓÖ fÖÓÑ aÒ eÜØeÖÒaÐ ×ÓÙÖce¸ eºgº fÖÓÑ a bÓÓØ ÏhiÐe iÒiØÖd ha× ÔÖÓÚeÒ ØÓ b e ÚeÖÝ Ù×efÙи Øhe de×igÒ ×eÖÚeÖ ÓÒ Øhe ÒeØÛÓÖk¸ ÐÓad ØheÑ aØ Øhe ÖighØÑeѹ Óf Øhe ÑechaÒi×Ñ Ù×ed ØÓ ÑÓÙÒØ Øhe ÖÓ ÓØ ¬Ðe ×Ý×ØeÑ ÓÖÝ ÐÓ caØiÓÒ¸ ÑaÝb e chaÒge Øhe eÜecÙØiÓÒ ÑÓ de Óf afØeÖ iÒiØÖd ha× cÓÑÔÐeØed iØ× ÛÓÖk Ûa× ÒeÚeÖ ÕÙiØe Øhe ÔÖÓ ce××ÓÖ¸ aÒd ×ØaÖØ Øhe keÖÒeк ×aØi×facØÓÖݺ AÐ×Ó¸ ÓØheÖ chaÒge× iÒ Øhe keÖÒeÐ Ñade iØ iÒcÖea×iÒgÐÝ diÆcÙÐØ ØÓ Ù×e ØhaØ ÑechaÒi×Ñ iÒ a BÓ ÓØ ÐÓadeÖ× ØÝÔicaÐÐÝ ÔeÖfÓÖÑ ×ÓÑe addiØiÓÒaÐ \cÐeaÒ" Ûaݺ ËecØiÓÒ 4 di×cÙ××e× ØhÓ×e i××Ùe× iÒ ÑÓÖe Øa×k׸ ÐikeÔÖÓÚidiÒg Øhe keÖÒeÐ ÛiØh ÔaÖaÑeØeÖ× ×Ùch deØaiк a× iÒfÓÖÑaØiÓÒ ÖeØÖieÚed fÖÓÑ Øhe ¬ÖÑÛaÖe ÓÖ Øhe b Ó ÓØ cÓÑÑaÒd ÐiÒeº ËÓÑe b Ó ÓØ ÐÓadeÖ× caÒ aÐ×Ó acØ a× a b Ó ÓØ ×eÐecØÓÖ aÒd ÐÓad ÓØheÖ ÓÔ eÖaØiÒg ×Ý×ØeÑ׺ ½º4 Ìhe fÙØÙÖe Ìhe dÙØie× Óf bÓÓØ ÐÓadeÖ× aÒd ×ÓÑe cÓÑÑÓÒ de¹ ×igÒ× aÖe di×cÙ××ed iÒ ÑÓÖe deØaiÐ iÒ ×ecØiÓÒ ¾º AÒ iÒØÖÓ dÙcØiÓÒ ØÓ b Ó ÓØ cÓÒceÔØ× ÓÒ i¿86 iÒ geÒeÖaÐ caÒ ÌhÖee ÒeÛ chaÐÐeÒge× aÛaiØ Øhe b Ó ÓØ ÔÖÓ ce×× iÒ Øhe befÓÙÒdiÒ[½]º fÙØÙÖe: ´½µ Øhe ¬ÖÑÛaÖe aÒd aÒÝ haÖdÛaÖe Øhe b Ó ÓØ ÐÓadeÖ× haÚeØÓiÒØeÖface ÛiØh ÛiÐÐ gÖÓÛÑÓÖefÙÒc¹ ØiÓÒaÐiØÝ | aÒd¸ if Øhe Ôa×Ø i× aÒÝ iÒdicaØiÓÒ Óf Øhe ½º¾ ÍÔ aÒd ÖÙÒÒiÒg fÙØÙÖe¸ a ÖicheÖ ×eØ Óf bÙg× ØÓ Óº ´¾µ ¬Ðe ×Ý×ØeÑ× cÓÒ¹ ØaiÒiÒg keÖÒeÐ iÑage× ÛiÐÐ b ecÓÑe ÑÓÖe cÓÑÔÐeܸ eºgº jÓÙÖÒaÐiÒg ¬Ðe ×Ý×ØeÑ× ÓÖ ÊAÁD¸ aÒd cÓÖÖecØÐÝ ÇÒce Øhe keÖÒeÐ i× ÖÙÒÒiÒg¸ iØ iÒiØiaÐiÞe× iØ× iÒØeÖ¹ iÒØeÖÔÖeØiÒg ØheiÖ cÓÒØeÒØ ÛiÐÐ be ÚeÖÝ diÆcÙÐØ fÓÖ ÒaÐ daØa ×ØÖÙcØÙÖe׸ deØecØ× haÖdÛaÖe cÓÑÔ ÓÒeÒØ× bÓÓØ ÐÓadeÖ׺ ´¿µ ÔeÓÔÐe ÛiÐÐ ÛaÒØ ØÓ ÐÓad keÖÒeÐ× aÒd acØiÚaØe× Øhe cÓÖÖe×Ô ÓÒdiÒg dÖiÚeÖ׸ eØcº¸ ÙÒØiÐ fÖÓÑ ÓØheÖ eÜÓØic ×ÓÙÖce׸ eºgº fÖÓÑ Øhe ÒeØÛÓÖk¸ iØ eÚeÒØÙaÐÐÝ b ecÓÑe× ÖeadÝ ØÓ ÖÙÒ Ù×eÖ¹×Ôace ÔÖÓ¹ Ù×iÒg a ×ecÙÖe cÓÒÒecØiÓÒº gÖaÑ׺ BefÓÖe iØ caÒ ×ØaÖØ Øhe Ù×eÖ¹×Ôace eÒÚiÖÓÒ¹ ÑeÒظ iØ Òeed× ØÓ ÔÖÓÚide iØ ÛiØh a ¬Ðe ×Ý×ØeѸ ×Ó iØ ha× ØÓ ÑÓÙÒØ Øhe ÖÓ ÓØ ¬Ðe ×Ý×ØeÑ ¬Ö×غ New hard− and firmware ÁÒ ÓÖdeÖ ØÓ ÑÓÙÒØ Øhe ÖÓ ÓØ ¬Ðe ×Ý×ØeѸ Øhe keÖÒeÐ Òeed× ØÛÓ ØhiÒg×: iØ Òeed× ØÓ kÒÓÛ Øhe Ñedia ÓÒ h Øhe ÖÓ ÓØ ¬Ðe ×Ý×ØeÑ i× ÐÓ caØed¸ aÒd iØ Òeed× Ûhic Boot eÖ× ØÓ acce×× ØhaØ Ñediaº ÁÒ Øhe ÑÓ×Ø cÓÑÑÓÒ dÖiÚ process cÓÒ¬gÙÖaØiÓÒ¸ ÛheÒ Øhe ÖÓ ÓØ ¬Ðe ×Ý×ØeÑ i× ×iÑÔÐÝ aÒ eÜؾ ÔaÖØiØiÓÒ ÓÒ aÒ ÁDE di×k¸ Øhi× i× ×iÑÔÐe: Øhe ÙÑb eÖ Óf Øhe ÖÓ ÓØ deÚice i× Ôa××ed ØÓ Øhe keÖÒeÐ a× a Ò Linux system More complex eÖ i× ØÝÔicaÐÐÝ cÓÑÔiÐed ÔaÖaÑeØeÖ¸ aÒd Øhe ÁDE dÖiÚ architecture configurations ØÓ Øhe keÖÒeк iÒ advances ½º¿ CÓÑÔÐicaØiÓÒ× FigÙÖe ¾: Ìhe b Ó ÓØ ÔÖÓ ce×× i× faciÒg ÒeÛ chaÐÐeÒge× fÖÓÑ ØhÖee diÖecØiÓÒ׺ ÌhiÒg× geØ ÑÓÖe cÓÑÔÐicaØed if Øhe keÖÒeÐ ha× ÒÓ dÖiÚeÖ fÓÖ Øhe deÚiceº Ìhi× i× ÕÙiØe cÓÑÑÓÒ fÓÖ Øhe ÏhiÐe ØheÖe i× ÐiØØÐe chÓice bÙØ ØÓ Øeach Øhe bÓÓØ \geÒeÖic" keÖÒeÐ× ØhaØ aÖe Ù×ed ÛheÒ iÒ×ØaÐÐiÒg a ÐÓadeÖ× ØÓ deaÐ ÛiØh ØheiÖ iÑÑediaØe ¬ÖÑÛaÖe aÒd ÒeÛ ÄiÒÙÜ ×Ý×ØeѸ b ecaÙ×e a keÖÒeÐ ÛiØh aÐÐ aÚaiй haÖdÛaÖe eÒÚiÖÓÒÑeÒظ ÐÓadiÒg Øhe keÖÒeÐ fÖÓÑ dif¹ abÐe dÖiÚeÖ× ÛÓÙÐd ×iÑÔÐÝ b e faÖ ØÓ Ó big¸ aÒd ×ÓÑe ¬cÙÐØ ØÓ acce×× Ñedia caÒ be gÖeaØÐÝ ×iÑÔÐi¬ed bÝ dÖiÚeÖ× ÑaÝ aÐ×Ó ÙÔ×eØ ÓØheÖ haÖdÛaÖe ÛheÒ ÔÖÓbiÒg ÐeaÚiÒg ÑÓ×Ø Óf Øhe ÛÓÖk ØÓ a ÄiÒÙÜ keÖÒeк ËecØiÓÒ fÓÖ ØheiÖ deÚice׺ 5 eÐab ÓÖaØe× fÙÖØheÖ ÓÒ Øhi× ØÓÔicº ¾ BÓ ÓØ ÐÓadeÖ× addiØiÓÒaÐ daØaº Ìhi× fÖee× ØheÑ fÖÓÑ haÚiÒg ØÓ kÒÓÛ Øhe ×ØÖÙcØÙÖe Óf Øhe ÙÒdeÖÐÝiÒg ¬Ðe ×Ý×ØeÑ ÓÖ aÒÝ ÔÖÓÔ eÖØie× Óf Øhe acØÙaÐ ×ØÓÖe deÚice׺ ÇÒe Óf A b Ó ÓØ ÐÓadeÖ Ô eÖfÓÖÑ× Øhe fÓÐÐÓÛiÒg Øa×k×: ØheiÖ di×adÚaÒØage× i× ØhaØ ØheÝ haÚe ØÓ Øake ×Ô e¹ ciaÐ ÔÖecaÙØiÓÒ× ÛheÒ ÐÓadiÒg Øhe keÖÒeи iÒ ÓÖdeÖ ØÓ keeÔ Øhe hÓ×Ø ÓÔ eÖaØiÒg ×Ý×ØeÑ ÓÔ eÖaØiÓÒaÐ ÙÒØiÐ ¯ decide ÛhaØ ØÓ ÐÓad¸ eºgº bÝ ÔÖÓÑÔØiÒg Øhe Ù×eÖ ØheÝ aÖe ÖeadÝ ØÓ ÖÙÒ Øhe ÄiÒÙÜ keÖÒeи eºgº ØheÝ ÑÙ×Ø ÒÓØ ÓÚeÖÛÖiØe ÑeÑÓÖÝ ÐÓ caØiÓÒ× Ó ccÙÔied bÝ ¯ ÐÓad Øhe keÖÒeÐ aÒd Ô Ó××ibÐÝ addiØiÓÒaÐ daØa¸ Øhe hÓ×Ø ÓÔ eÖaØiÒg ×Ý×ØeѺ AÒÓØheÖ di×adÚaÒØage i× ×Ùch a× aÒ iÒiØÖd ÓÖ ÔaÖaÑeØeÖ× fÓÖ Øhe keÖÒeÐ ØhaØ Øhe eÒØiÖe b Ó ÓØ ÔÖÓ ce×× Øake× ÐÓÒgeÖ ØhaÒ ÛiØh ÓØheÖ b Ó ÓØ ÐÓadeÖ׸ b ecaÙ×e Øhe hÓ×Ø ÓÔ eÖaØiÒg ×Ý×¹ ¯ ×eØ ÙÔ aÒ eÜecÙØiÓÒ eÒÚiÖÓÒÑeÒØ ×ÙiØabÐe fÓÖ Øhe keÖÒeи eºgº ÔÙØ Øhe CÈÍ iÒ ÔÖiÚiÐeged ÑÓ de ØeÑ Òeed× ×ÓÑe ØiÑe ØÓ b Ó ÓØ ØÓ Óº ¯ ÖÙÒ Øhe keÖÒeÐ FiÐe ×Ý×ØeÑ aÛaÖe b Ó ÓØ ÐÓadeÖ× aÖe aÐÑÓ×Ø ÐiØØÐe ÓÔ¹ eÖaØiÒg ×Ý×ØeÑ× bÝ ØheÑ×eÐÚe×: ØheÝ kÒÓÛ Øhe ×ØÖÙc¹ ØÙÖe Óf ÓÒe ÓÖ ÑÓÖe ¬Ðe ×Ý×ØeÑ׸ ØheÝ acce×× deÚice× ¾º½ ÌaÜÓÒÓÑÝ Úia Øhe ×eÖÚice× ÔÖÓÚided bÝ Øhe ¬ÖÑÛaÖe¸ aÒd ×ÓÑe¹ ØiÑe׸ ØheÝ ÑaÝeÚeÒ haÚeØheiÖÓÛÒ dÖiÚeÖ× ØÓ ac¹ ce×× haÖdÛaÖe diÖecØÐݺ BÓ ÓØ ÐÓadeÖ× cÓÑe iÒ ÑaÒÝ ×iÞe× aÒd ×haÔ e׺ A× ×hÓÛÒ iÒ ¬gÙÖe ¿¸ Ûe ÛiÐÐ di×ØiÒgÙi×h Øhe fÓÐÐÓÛiÒg FiÐe ×Ý×ØeÑ ÙÒaÛaÖe bÓÓØ ÐÓadeÖ× ÖeÐÝ ÓÒ a ØhiÖd fÓÙÖ ØÝÔ e× Óf ØheÑ: ÔaÖØÝ ØÓ ÑaÔ Øhe ÓÒ¹di×k daØa ×ØÖÙcØÙÖe× ØÓ a ÑÓÖe geÒeÖaÐ aÒd ÑÓÖe cÓÒÚeÒieÒØ ÖeÔÖe×eÒØaØiÓÒº Eºgº iÒ Øhe ca×e Óf ÄÁÄǸ Øhe ×Ó¹caÐÐed ÑaÔ iÒ×ØaÐÐeÖ ¯ ×Ô eciaÐiÞed ÐÓadeÖ׸ eºgº Øhe ­ÓÔÔÝ b Ó ÓØ ×ecØÓÖ ´»×biÒ»ÐiÐÓµ Ù×e× Øhe ¬Ðe ×Ý×ØeÑ dÖiÚeÖ× aÐÖeadÝ ÄiÒÙÜBÁÇË [¾]¸ ËYËÄÁÆÍX [¿]¸ ÆeØb Ó ÓØ [4] cÓÒØaiÒed iÒ Øhe ÄiÒÙÜ keÖÒeÐ ØÓ Ô eÖfÓÖÑ Øhi× ÑaÔ¹ ÔiÒg¸ aÒd ×iÑÔÐÝ ÛÖiØe× Øhe Ði×Ø Óf daØa ×ecØÓÖ ÐÓ ca¹ ¯ geÒeÖaÐ ÐÓadeÖ× ÖÙÒÒiÒg ÙÒdeÖ aÒÓØheÖ ÓÔ eÖaع ØiÓÒ× iÒ iØ× ÑaÔ ¬Ðeº A de×cÖiÔØiÓÒ Óf ÄÁÄÇ iÒØeÖÒaÐ× iÒg ×Ý×ØeѸ eºgº ÄÇADÄÁÆ [5]¸ AÖÄÓ [6] caÒ b e fÓÙÒd iÒ [9]º ¯ ¬Ðe ×Ý×ØeÑ aÛaÖe geÒeÖaÐ ÐÓadeÖ× ÖÙÒÒiÒg ÓÒ Øhe ¬ÖÑÛaÖe¸ eºgº ËhÓ eÐace¸ GÊÍB [7]¸ ËÁÄÇ ¾º¾ FiÐe ×Ý×ØeÑ aÛaÖeÒe×× ¯ ¬Ðe ×Ý×ØeÑ ÙÒaÛaÖe geÒeÖaÐ ÐÓadeÖ× ÖÙÒÒiÒg ÓÒ Øhe ¬ÖÑÛaÖe¸ eºgº ÄÁÄÇ [8] k Óf ¬Ðe ×Ý×ØeÑ aÛaÖeÒe×× i× a cÓÑÑÓÒ cÓѹ FS−unaware Ìhe Ðac ÔÐaiÒØ ab ÓÙØ ÄÁÄǸ aÒd cÓÑÔ eØiÒg b Ó ÓØ ÐÓadeÖ× ad¹ eÖØiÞe ØheiÖ abiÐiØÝ ØÓ Öead ¬Ðe ×Ý×ØeÑ× ÛiØhÓÙØ By other OS User space Ú ÑaÔÔiÒg a× ÓÒe Óf ØheiÖ ÑaiÒ feaØÙÖe׺ ÁØ i× File abstraction ÔÖiÓÖ FS−aware Operating system ØeÖe×ØiÒg ØÓ cÓÑÔaÖe Øhe ØÛÓ aÔÔÖÓache׺ Device abstraction ØheÖefÓÖe iÒ Specialized Firmware No abstraction Û× ÛhaØ a ¬Ðe ×Ý×ØeÑ aÛaÖe b Ó ÓØ ÐÓadeÖ Hardware FigÙÖe 4 ×hÓ dÓ e× ÛheÒ Ù×iÒg Øhe ËecÓÒd EÜØeÒded ¬Ðe ×Ý×ØeÑ: ¬Ö×ظ Øhe ¬Ðe i× ÛÖiØØeÒ ØÓ di×k¸ Úia Øhe eÜؾ ¬Ðe ×Ý×¹ ØeÑ dÖiÚeÖº Ìhe ¬Ðe ×Ý×ØeÑ dÖiÚeÖ add× a biØ Óf FigÙÖe ¿: ÄaÝeÖ× aØ Ûhich b Ó ÓØ ÐÓadeÖ× iÒØeÖacØ ÛiØh ÑeØa iÒfÓÖÑaØiÓÒº AØ bÓÓØ ØiÑe¸ Øhe bÓÓØ ÐÓadeÖ Øhe ÙÒdeÖÐÝiÒg ×eÖÚice׺ iÒØeÖÔÖeØ× Øhe eÜؾ ÑeØa iÒfÓÖÑaØiÓÒ aÒd ÐÓad× Øhe cÓÖÖe×Ô ÓÒdiÒg daØa ×ecØÓÖ× iÒØÓ ÑeÑÓÖݺ ÁÒ ÓÖdeÖ ËÔ eciaÐiÞed ÐÓadeÖ× ØÝÔicaÐÐÝ kÒÓÛ ÓÒÐÝ ÓÒe ×ØÓÖage ØÓ dÓ ×Ó¸iØ ha× ØÓ cÓÒØaiÒ a ×iÑÔÐi¬ed ÚeÖ×iÓÒ Óf Øhe deÚice¸ eºgº ­a×h ÑeÑÓÖÝ ÓÖ Øhe ­ÓÔÔÝ di×k¸ ÓÒ ¬Ðe ×Ý×ØeÑ dÖiÚeÖº Ûhich a ×ÑaÐÐ ÒÙÑbeÖ Óf keÖÒeÐ× i× ×ØÓÖed iÒ ×ÓÑe fÓÖÑaØ ×Ô eci¬c ØÓ Øhe b Ó ÓØ ÐÓadeÖº A ¬Ðe ×Ý×ØeÑ ÙÒaÛaÖe b Ó ÓØ ÐÓadeÖ ´¬gÙÖe 5µ ÖeÕÙiÖe× aÒ addiØiÓÒaÐ ×ØeÔ afØeÖ ÛÖiØiÒg Øhe ¬Ðe: Øhe ÑaÔ¹ BÓ ÓØ ÐÓadeÖ× ØhaØ ÖÙÒ ÙÒdeÖ aÒÓØheÖ ÓÔ eÖaØiÒg ×Ý×¹ ÔiÒg¸ dÙÖiÒg Ûhich Øhe geÒeÖaÐiÞed ÑeØa iÒfÓÖÑaØiÓÒ ØeÑ ÒÓÖÑaÐÐÝ Ù×e Øhe ×eÖÚice× ÔÖÓÚided bÝ Øhe hÓ×Ø i× ÛÖiØØeÒº Ìhe b Ó ÓØ ÐÓadeÖ Ù×e× Øhi× ÑeØa iÒfÓÖÑa¹ ÓÔ eÖaØiÒg ×Ý×ØeÑ fÓÖ ÖeadiÒg Øhe keÖÒeÐ iÑage aÒd Kernel image ¾º¿ FiÐe ×Ý×ØeÑ hi×ØÓÖÝ aÒd ÄÁÄÇ ÁÒ Øhe eaÖÐÝ daÝ× Óf ÄiÒÙܸ Øhe ÓÒÐÝ bÓÓØ ÐÓadeÖ× ÚaiÐabÐe
Recommended publications
  • Linux Boot Loaders Compared
    Linux Boot Loaders Compared L.C. Benschop May 29, 2003 Copyright c 2002, 2003, L.C. Benschop, Eindhoven, The Netherlands. Per- mission is granted to make verbatim copies of this document. This is version 1.1 which has some minor corrections. Contents 1 introduction 2 2 How Boot Loaders Work 3 2.1 What BIOS does for us . 3 2.2 Parts of a boot loader . 6 2.2.1 boot sector program . 6 2.2.2 second stage of boot loader . 7 2.2.3 Boot loader installer . 8 2.3 Loading the operating system . 8 2.3.1 Loading the Linux kernel . 8 2.3.2 Chain loading . 10 2.4 Configuring the boot loader . 10 3 Example Installations 11 3.1 Example root file system and kernel . 11 3.2 Linux Boot Sector . 11 3.3 LILO . 14 3.4 GNU GRUB . 15 3.5 SYSLINUX . 18 3.6 LOADLIN . 19 3.7 Where Can Boot Loaders Live . 21 1 4 RAM Disks 22 4.1 Living without a RAM disk . 22 4.2 RAM disk devices . 23 4.3 Loading a RAM disk at boot time . 24 4.4 The initial RAM disk . 24 5 Making Diskette Images without Diskettes 25 6 Hard Disk Installation 26 7 CD-ROM Installation 29 8 Conclusions 31 1 introduction If you use Linux on a production system, you will only see it a few times a year. If you are a hobbyist who compiles many kernels or who uses many operating systems, you may see it several times per day.
    [Show full text]
  • Filesystems HOWTO Filesystems HOWTO Table of Contents Filesystems HOWTO
    Filesystems HOWTO Filesystems HOWTO Table of Contents Filesystems HOWTO..........................................................................................................................................1 Martin Hinner < [email protected]>, http://martin.hinner.info............................................................1 1. Introduction..........................................................................................................................................1 2. Volumes...............................................................................................................................................1 3. DOS FAT 12/16/32, VFAT.................................................................................................................2 4. High Performance FileSystem (HPFS)................................................................................................2 5. New Technology FileSystem (NTFS).................................................................................................2 6. Extended filesystems (Ext, Ext2, Ext3)...............................................................................................2 7. Macintosh Hierarchical Filesystem − HFS..........................................................................................3 8. ISO 9660 − CD−ROM filesystem.......................................................................................................3 9. Other filesystems.................................................................................................................................3
    [Show full text]
  • The Linux Startup Process
    The Linux startup process Jerry Feldman <[email protected]> The Linux Expertise Center Hewlett-Packard Company Document produced via OpenOffice.org Overview ● The Linux boot process – GRUB. This is the default for X86/Linux – LILO – Other boot loaders ● The Linux Operating modes – Single-user mode – Multi-user mode. ● Run Levels – What are run levels – What are the Linux standard run levels – How Linux manages run levels 2 The Linux Boot process ● The PC boot process is a 3-stage boot process that begins with the BIOS executing a short program that is stored in the Master Boot Record (MBR) of the first physical drive. Since this stage 1 boot loader needs to fit in the MBR, it is limited to 512 bytes and is normally written in assembly language. There are a number of boot loaders that can load Linux. ● GRUB and LILO are the most commonly used ones on X86 hardware. ® ® ● EFI is used on the Intel Itanium family. 3 The GRand Unified Bootloader The GRand Unified Bootloader (GRUB) is default boot loader on most distributions today. It has the capability to load a number of different operating systems. 1.The stage 1 boot resides in the MBR and contains the sector number of the stage 2 boot that is usually located in the /boot/grub directory on Linux. 2.The stage 2 boot loader presents a boot menu to the user based on /boot/grub/grub.conf or menu.lst. This contains a boot script. It is the stage2 loader actually loads the Linux kernel or 4 other OS.
    [Show full text]
  • State of the Art: Where We Are with the Ext3 Filesystem
    State of the Art: Where we are with the Ext3 filesystem Mingming Cao, Theodore Y. Ts’o, Badari Pulavarty, Suparna Bhattacharya IBM Linux Technology Center {cmm, theotso, pbadari}@us.ibm.com, [email protected] Andreas Dilger, Alex Tomas, Cluster Filesystem Inc. [email protected], [email protected] Abstract 1 Introduction Although the ext2 filesystem[4] was not the first filesystem used by Linux and while other filesystems have attempted to lay claim to be- ing the native Linux filesystem (for example, The ext2 and ext3 filesystems on Linux R are when Frank Xia attempted to rename xiafs to used by a very large number of users. This linuxfs), nevertheless most would consider the is due to its reputation of dependability, ro- ext2/3 filesystem as most deserving of this dis- bustness, backwards and forwards compatibil- tinction. Why is this? Why have so many sys- ity, rather than that of being the state of the tem administrations and users put their trust in art in filesystem technology. Over the last few the ext2/3 filesystem? years, however, there has been a significant amount of development effort towards making There are many possible explanations, includ- ext3 an outstanding filesystem, while retaining ing the fact that the filesystem has a large and these crucial advantages. In this paper, we dis- diverse developer community. However, in cuss those features that have been accepted in our opinion, robustness (even in the face of the mainline Linux 2.6 kernel, including direc- hardware-induced corruption) and backwards tory indexing, block reservation, and online re- compatibility are among the most important sizing.
    [Show full text]
  • Linux Booting Procedure How Linux Boot?
    Linux Booting Procedure How Linux boot? 2 What is “boot”? • boot (n.) [1] http://en.wikipedia.org/wiki/Boot 4 Brief etymology[2] • Phrase “pull oneself up by one’s bootstraps” • Misattributed (at latest in 1901!) to “The Surprising Adventures of Baron Munchausen” (1781, Rudolf Erich Raspe) : The baron pulls himself out of a swamp by his hair (pigtail). • The use of this phrase is found in 1834 in the U.S. • “[S]omeone is attempting or has claimed some ludicrously far-fetched or impossible task” • In the 20th century, the “possible bootstrap[3] task” meaning has appeared • “To begin an enterprise or recover from a setback without any outside help; to succeed only on one's own effort or abilities” 5 [2] http://en.wiktionary.org/wiki/pull_oneself_up_by_one%27s_bootstraps [3] http://en.wikipedia.org/wiki/Bootstrapping Bootstrapping (in Computer) • The process of loading the basic software (typically, operating systems) into the main memory from persistent memory (HDD, flash ROM, etc.) • “Boot” is an abbreviation for “bootstrap(ping)” Boostrapping Code 6 System startup Booting sequence 1. Tern on 2. CPU jump to address of BIOS (0xFFFF0) 3. BIOS runs POST (Power-On Self Test) 4. Find bootale devices 5. Loads and execute boot sector form MBR 6. Load OS 5 BIOS (Basic Input/Output System) BIOS refers to the software code run by a computer when first powered on The primary function of BIOS is code program embedded on a chip that recognises and controls various devices that make up the computer. BIOS on board BIOS on screen 6 How computer startup? Booting is a bootstrapping process that starts operating systems when the user turns on a computer system A boot sequence is the set of operations the computer performs when it is switched on that load an operating system 4 Boot loader MBR (Master Boot Record) OS is booted from a hard disk, where the Master Boot Record (MBR) contains the primary boot loader The MBR is a 512-byte sector, located in the first sector on the disk (sector 1 of cylinder 0, head 0) After the MBR is loaded into RAM, the BIOS yields control to it.
    [Show full text]
  • Debian GNU/Linux Installation Guide
    Debian GNU/Linux Installation Guide July 31, 2021 Debian GNU/Linux Installation Guide Copyright © 2004 – 2021 the Debian Installer team This manual is free software; you may redistribute it and/or modify it under the terms of the GNU General Public License. Please refer to the license in Appendix F. Build version of this manual: 20210730. i Contents 1 Welcome to Debian 1 1.1 What is Debian? . 1 1.2 What is GNU/Linux? . 1 1.3 What is Debian GNU/Linux? . 2 1.4 What is the Debian Installer? . 3 1.5 Getting Debian . 3 1.6 Getting the Newest Version of This Document . 3 1.7 Organization of This Document . 3 1.8 About Copyrights and Software Licenses . 4 2 System Requirements 5 2.1 Supported Hardware . 5 2.1.1 Supported Architectures . 5 2.1.2 CPU, Main Boards, and Video Support . 6 2.1.2.1 CPU . 6 2.1.2.2 I/O Bus . 6 2.1.3 Laptops . 6 2.1.4 Multiple Processors . 6 2.1.5 Graphics Hardware Support . 6 2.1.6 Network Connectivity Hardware . 7 2.1.6.1 Wireless Network Cards . 7 2.1.7 Braille Displays . 7 2.1.8 Hardware Speech Synthesis . 7 2.1.9 Peripherals and Other Hardware . 7 2.2 Devices Requiring Firmware . 7 2.3 Purchasing Hardware Specifically for GNU/Linux . 8 2.3.1 Avoid Proprietary or Closed Hardware . 8 2.4 Installation Media . 8 2.4.1 CD-ROM/DVD-ROM/BD-ROM . 9 2.4.2 USB Memory Stick .
    [Show full text]
  • Installing Fedora the Installation • Choosing How to Install Fedora
    CHAPTER 3 IN THIS CHAPTER • Before You Begin Installing Fedora the Installation • Choosing How to Install Fedora This chapter shows you how to get a basic installation of • Step-by-Step Installation Fedora up and running. You will learn how to start installa- tion, as well as specify certain configuration options during • Logging In and Shutting the install. Before you even insert the disc, we will take a Down look at some considerations you need to think about that • Reference will affect how you install Fedora. It is impossible to take you through every single variation of the install, but you will get a step-by-step guide of a typical installation, includ- ing how to log in to your new system and shut down or reboot the system. Before You Begin the Installation Installing a new operating system is a major event and you should make sure that you have properly thought through what is going to take place. The first thing you should consider is how the hardware will be affected by the soft- ware that you propose to install. Although Fedora runs well on an extremely wide variety of hardware, it is worthwhile checking out your hardware components because there may be a banana peel waiting for you to slip up on. The following sections provide some areas for you to investigate and think about, and may even save you hours of frustra- tion when something goes wrong. The sections are designed to complement the ideas and checklists presented in Chapter 2, “Preparing to Install Fedora.” You start by researching and documenting your hardware.
    [Show full text]
  • Design and Implementation of the Spad Filesystem
    Charles University in Prague Faculty of Mathematics and Physics DOCTORAL THESIS Mikul´aˇsPatoˇcka Design and Implementation of the Spad Filesystem Department of Software Engineering Advisor: RNDr. Filip Zavoral, Ph.D. Abstract Title: Design and Implementation of the Spad Filesystem Author: Mgr. Mikul´aˇsPatoˇcka email: [email protected]ff.cuni.cz Department: Department of Software Engineering Faculty of Mathematics and Physics Charles University in Prague, Czech Republic Advisor: RNDr. Filip Zavoral, Ph.D. email: Filip.Zavoral@mff.cuni.cz Mailing address (advisor): Dept. of Software Engineering Charles University in Prague Malostransk´en´am. 25 118 00 Prague, Czech Republic WWW: http://artax.karlin.mff.cuni.cz/~mikulas/spadfs/ Abstract: This thesis describes design and implementation of the Spad filesystem. I present my novel method for maintaining filesystem consistency — crash counts. I describe architecture of other filesystems and present my own de- sign decisions in directory management, file allocation information, free space management, block allocation strategy and filesystem checking algorithm. I experimentally evaluate performance of the filesystem. I evaluate performance of the same filesystem on two different operating systems, enabling the reader to make a conclusion on how much the performance of various tasks is affected by operating system and how much by physical layout of data on disk. Keywords: filesystem, operating system, crash counts, extendible hashing, SpadFS Acknowledgments I would like to thank my advisor Filip Zavoral for supporting my work and for reading and making comments on this thesis. I would also like to thank to colleague Leo Galamboˇsfor testing my filesystem on his search engine with 1TB RAID array, which led to fixing some bugs and improving performance.
    [Show full text]
  • LINUX: Rute User's Tutorial and Exposition
    LINUX: Rute User’s Tutorial and Exposition Paul Sheer August 14, 2001 Pages up to and including this page are not included by Prentice Hall. 2 “The reason we don’t sell billions and billions of Guides,” continued Harl, after wiping his mouth, “is the expense. What we do is we sell one Guide billions and billions of times. We exploit the multidimensional nature of the Universe to cut down on manufacturing costs. And we don’t sell to penniless hitchhikers. What a stupid notion that was! Find the one section of the market that, more or less by definition, doesn’t have any money, and try to sell to it. No. We sell to the affluent business traveler and his vacationing wife in a billion, billion different futures. This is the most radical, dynamic and thrusting business venture in the entire multidimensional infinity of space-time-probability ever.” ... Ford was completely at a loss for what to do next. “Look,” he said in a stern voice. But he wasn’t certain how far saying things like “Look” in a stern voice was necessarily going to get him, and time was not on his side. What the hell, he thought, you’re only young once, and threw himself out of the window. That would at least keep the element of surprise on his side. ... In a spirit of scientific inquiry he hurled himself out of the window again. Douglas Adams Mostly Harmless Strangely, the thing that least intrigued me was how they’d managed to get it all done. I suppose I sort of knew.
    [Show full text]
  • 1.106.1 Boot the System Weight 3
    1. Context 1.106.1 2 9 License Of This Document 5 1.106.1 1 Context Boot the system Topic 106 Boot, Initialization, Shutdown and Runlevels [6] Weight 3 1.106.1 Boot the system [3] 1.106.2 Change runlevels and shutdown or reboot system [3] Linux Professional Institute Certification — 102 Angus Lees [email protected] 2 Objective [email protected] Description of Objective Nick Urbanik Candidates should be able to guide the system through the booting process. This in- This document Licensed under GPL—see section 9 cludes giving commands to the boot loader and giving options to the kernel at boot time, and checking the events in the log files. 2005 July Key files, terms, and utilities include: Outline dmesg — command to show kernel message ring buffer /var/log/messages — main syslog file Contents /etc/conf.modules or /etc/modules.conf — modprobe configuration file 1 Context 2 LILO — older bootloader system, less used now 2 Objective 2 GRUB — newer, more flexible bootloader system 3 Boot Process 2 • Note that with Red Hat systems, 2.6 kernels use the file /etc/modprobe.conf, not /etc/modules.conf 4 How BIOS finds boot loader 3 • The name /etc/conf.modules has been out of favour for some years 5 Boot Loaders 3 5.1 LILO . 3 5.2 GRUB . 4 3 Boot Process 5.3 Other boot loaders . 4 Booting 6 Chaining Boot Loaders 4 • Machine powers up, BIOS POST, spin up SCSI drives, etc 7 dmesg 5 • BIOS boots boot loader 8 /etc/modules.conf 5 • (Boot loader may load its “second stage” from somewhere else) 4.
    [Show full text]
  • Le Loadlin+Win95 Mini-HOWTO
    Version fran¸caise, Eric Maisonobe [email protected] Le Loadlin+Win95 mini-HOWTO v1.4.3, 9 Novembre 1998 Ce document d´ecrit comment utiliser Loadlin avec Windows 95 pour lancer Linux. Contents 1 Introduction 1 1.1 Copyright ............................................... 2 1.2 Nouvelles versions de ce document ................................. 2 1.3 R´eactions ............................................... 2 1.4 D´en´egation .............................................. 2 2 IMPORTANT: Information Pr´eliminaire et Setup 2 2.1 ATTENTION! pour les utilisateurs de Windows95 OSR2 (version 4.00.950b): ......... 2 2.2 Nous consid´ereronscomme acquis: ................................. 3 2.3 Ce dont vous avez besoin avant de commencer: .......................... 3 3 AVANT DE COMMENCER: 3 3.1 D´eterminez quelle version de Windows 95 vous poss´edez. ..................... 3 3.2 D´eterminez si vous utilisez le syst`eme de fichier FAT32. ..................... 4 3.3 Soyez certain que les extensions de vos fichiers sont visibles dans l’Explorateur Windows. .. 4 3.4 Renommez vos fichiers syst`eme. ................................... 4 3.5 Recommandation Importante. .................................... 4 3.6 Editez vos fichiers syst`eme. ..................................... 5 4 *** Ne consultez cette section QUE si vous utilisez une disquette de boot DOS 6.x. *** 5 4.1 Editez et renommez vos fichiers syst`eme DOS 6.x. ........................ 5 5 Etape finale 6 5.1 Bientˆotla fin ............................................. 6 5.2 Vous avez termin´e! .......................................... 6 5.3 Comment cela fonctionne. ...................................... 6 6 M´ethodes alternatives pour le d´emarrage automatique de Linux, sp´ecialement pour les Utilisateurs ayant un syst`eme de fichier FAT32. 6 6.1 Premi`ereM´ethode. .......................................... 6 6.2 Seconde M´ethode. .......................................... 7 7 Questions fr´equentes: 8 7.1 Ou puis-je trouver plus d’informations sur l’utilisation de Loadlin? ..............
    [Show full text]
  • Vmware Workstation
    User’s Manual VMwareTM Workstation Version 3.2 Please note that you will always find the most up-to-date technical docu- mentation on our Web site at http://www.vmware.com/support/. VMware, Inc. The VMware Web site also provides the latest product updates. 3145 Porter Drive Palo Alto, CA 94304 Copyright © 1998–2002 VMware, Inc. All rights reserved. U.S. Patent No. 6,397,242 and patents pending. www.vmware.com VMware, the VMware boxes logo, GSX Server and ESX Server are trademarks of VMware, Inc. Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. All other marks and names mentioned herein may be trademarks of their respective companies. Revision: 20020905 Item: WS-ENG-Q302-405 Table of Contents Introduction and System Requirements __________________________ 11 Welcome to VMware Workstation __________________________________12 Virtualizing Your Computing Resources ___________________________13 Host System Requirements ________________________________________14 Virtual Machine Specifications _____________________________________18 Supported Guest Operating Systems ________________________________21 What’s New in Version 3 __________________________________________23 New in Version 3.2 ____________________________________________23 New in Versions 3.0 and 3.1 _____________________________________23 Technical Support Resources ______________________________________26 The VMware Web Site _________________________________________26 VMware Newsgroups __________________________________________26
    [Show full text]