首先,當然是準備一個1G以上容量的隨身碟,用來製作可啟動隨身碟;其次,到官網上下載Ubuntudesktop映象檔案。UbuntuDesktop映象一般700多兆,從而可以把它寫到1G大的隨身碟上,可以從Ubuntu官網下載10.4的映象檔案。用UltraISO將其寫入隨身碟,製作成可啟動的隨身碟。自作完成後重啟電腦,選擇從隨身碟啟動。由於你寫入隨身碟的實際上是個像光碟一樣的Ubuntu安裝盤,所以進入隨身碟Ubuntu後,你可以選擇不安裝而直接試用體驗Ubuntu,這也是本方法的關鍵所在,利用LiveCD,我們可以暫時進入系統,藉以修復原有系統!進入Ubuntu系統後,啟動命令終端,輸入如下指令,線上安裝lilo和mbr:ubuntu@ubuntu:~$sudoapt-getinstallliloReadingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneThefollowingextrapackageswillbeinstalled:mbrSuggestedpackages:lilo-docThefollowingNEWpackageswillbeinstalled:lilombr0upgraded,2newlyinstalled,0toremoveand408notupgraded.Needtoget413kBofarchives.Afterthisoperation,1,315kBofadditionaldiskspacewillbeused.Doyouwanttocontinue[Y/n]?yFetched413kBin3s(124kB/s)Preconfiguringpackages...Selectingpreviouslydeselectedpackagembr.(Readingdatabase...129801filesanddirectoriescurrentlyinstalled.)Unpackingmbr(from.../archives/mbr_1.1.10-2_i386.deb)...Selectingpreviouslydeselectedpackagelilo.Unpackinglilo(from.../lilo_1%3a22.8-8ubuntu1_i386.deb)...Processingtriggersforman-db...Settingupmbr(1.1.10-2)...Settinguplilo(1:22.8-8ubuntu1)...WARNING:kernel&initrdnotfoundintherootdirectory(/vmlinuz&/initrd.img)WARNING:DoNOTrebootorLILOmayfailtobootifyourkernel+initrdislarge.WARNING:Pleaseread/usr/share/doc/lilo/README.Debianubuntu@ubuntu:~$安裝過程中,會得到如下lilo的配置提示,按OK就行了:Packageconfiguration┌───────────────────────────┤Configuringlilo├────────────────────────────┐│││LILOconfiguration││││ItseemstobeyourfirstLILOinstallation.Itisabsolutelynecessary││torunliloconfig(8)whenyoucompletethisprocessandexecute││/sbin/liloafterthis.││││LILOwon"tworkifyoudon"tdothis.││││<Ok>│││└───────────────────────────────────────────────────────────────────────────┘然後使用lilo修復系統:ubuntu@ubuntu:~$sudolilo-M/dev/sdambrBackupcopyof/dev/sdain/boot/boot.0800TheMasterBootRecordof/dev/sdahasbeenupdated.ubuntu@ubuntu:~$修復完成,重啟系統:ubuntu@ubuntu:~$sudo-s-Hroot@ubuntu:/home/ubuntu#rebootOK了,相信重啟後選擇進入系統的畫面就出現了,是不是很簡單?
首先,當然是準備一個1G以上容量的隨身碟,用來製作可啟動隨身碟;其次,到官網上下載Ubuntudesktop映象檔案。UbuntuDesktop映象一般700多兆,從而可以把它寫到1G大的隨身碟上,可以從Ubuntu官網下載10.4的映象檔案。用UltraISO將其寫入隨身碟,製作成可啟動的隨身碟。自作完成後重啟電腦,選擇從隨身碟啟動。由於你寫入隨身碟的實際上是個像光碟一樣的Ubuntu安裝盤,所以進入隨身碟Ubuntu後,你可以選擇不安裝而直接試用體驗Ubuntu,這也是本方法的關鍵所在,利用LiveCD,我們可以暫時進入系統,藉以修復原有系統!進入Ubuntu系統後,啟動命令終端,輸入如下指令,線上安裝lilo和mbr:ubuntu@ubuntu:~$sudoapt-getinstallliloReadingpackagelists...DoneBuildingdependencytreeReadingstateinformation...DoneThefollowingextrapackageswillbeinstalled:mbrSuggestedpackages:lilo-docThefollowingNEWpackageswillbeinstalled:lilombr0upgraded,2newlyinstalled,0toremoveand408notupgraded.Needtoget413kBofarchives.Afterthisoperation,1,315kBofadditionaldiskspacewillbeused.Doyouwanttocontinue[Y/n]?yFetched413kBin3s(124kB/s)Preconfiguringpackages...Selectingpreviouslydeselectedpackagembr.(Readingdatabase...129801filesanddirectoriescurrentlyinstalled.)Unpackingmbr(from.../archives/mbr_1.1.10-2_i386.deb)...Selectingpreviouslydeselectedpackagelilo.Unpackinglilo(from.../lilo_1%3a22.8-8ubuntu1_i386.deb)...Processingtriggersforman-db...Settingupmbr(1.1.10-2)...Settinguplilo(1:22.8-8ubuntu1)...WARNING:kernel&initrdnotfoundintherootdirectory(/vmlinuz&/initrd.img)WARNING:DoNOTrebootorLILOmayfailtobootifyourkernel+initrdislarge.WARNING:Pleaseread/usr/share/doc/lilo/README.Debianubuntu@ubuntu:~$安裝過程中,會得到如下lilo的配置提示,按OK就行了:Packageconfiguration┌───────────────────────────┤Configuringlilo├────────────────────────────┐│││LILOconfiguration││││ItseemstobeyourfirstLILOinstallation.Itisabsolutelynecessary││torunliloconfig(8)whenyoucompletethisprocessandexecute││/sbin/liloafterthis.││││LILOwon"tworkifyoudon"tdothis.││││<Ok>│││└───────────────────────────────────────────────────────────────────────────┘然後使用lilo修復系統:ubuntu@ubuntu:~$sudolilo-M/dev/sdambrBackupcopyof/dev/sdain/boot/boot.0800TheMasterBootRecordof/dev/sdahasbeenupdated.ubuntu@ubuntu:~$修復完成,重啟系統:ubuntu@ubuntu:~$sudo-s-Hroot@ubuntu:/home/ubuntu#rebootOK了,相信重啟後選擇進入系統的畫面就出現了,是不是很簡單?