如何用U盘启动盘来修复Ubuntu系统
Ubuntu系统如何使用U盘启动盘修复更新后无法启动系统的问题?下文给出了详细的描述。
最近,相信很多使用wubi在Windows下安装Ubuntu的系统更新后无法再进入系统的问题,让人不寒而慄,有很多人为此不得不重装系统。
出现此问题的原因在于更新Ubuntu时选择更新grub组件,以至于把引导区grub破坏,这也是个不小的bug吧???
下面说说如何通过U盘启动盘来修复Ubuntu。
当然,你得有个1G以上的U盘,再有,你的主板必须支持U盘启动!
首先,当然是准备一个1G以上容量的U盘,用来制作可启动U盘;
其次,到官网上下载Ubuntudesktop镜像文件。UbuntuDesktop镜像一般700多兆,从而可以把它写到1G大的U盘上,可以从Ubuntu官网下载10.4的镜像文件。
用UltraISO将其写入U盘,制作成可启动的U盘。自作完成后重启电脑,选择从U盘启动。
由于你写入U盘的实际上是个像光盘一样的Ubuntu安装盘,所以进入U盘Ubuntu后,你可以选择不安装而直接试用体验Ubuntu,这也是本方法的关键所在,利用LiveCD,我们可以暂时进入系统,借以修复原有系统!
进入Ubuntu系统后,启动命令终端,输入如下指令,在线安装lilo和mbr:
1. Ubuntu@ubuntu:~$sudoapt-getinstalllilo
2.
3. Readingpackagelists...Done
4.
5. Buildingdependencytree
6.
7. Readingstateinformation...Done
8.
9. Thefollowingextrapackageswillbeinstalled:
10.
11. mbr
12.
13. Suggestedpackages:
14.
15. lilo-doc
16.
17. ThefollowingNEWpackageswillbeinstalled:
18.
19. lilombr
20.
21. 0upgraded,2newlyinstalled,0toremoveand408notupgraded.
22.
23. Needtoget413kBofarchives.
24.
25. Afterthisoperation,1,315kBofadditionaldiskspacewillbeused.
26.
27. Doyouwanttocontinue[Y/n]?y
28.
29. Get:1[23.0kB]
30.
31. Get:2:22.8-8ubuntu1[390kB]
32.
33. Fetched413kBin3s(124kB/s)
34.
35. Preconfiguringpackages...
36.
37. Selectingpreviouslydeselectedpackagembr.
38.
39. (Readingdatabase...129801filesanddirectoriescurrentlyinstalled.)
40.
41. Unpackingmbr(from.../archives/mbr_1.1.10-2_i386.deb)...
42.
43. Selectingpreviouslydeselectedpackagelilo.
44.
45. Unpackinglilo(from.../lilo_1%3a22.8-8Ubuntu1_i386.deb)...
46.
47. Processingtriggersforman-db...
48.
49. Settingupmbr(1.1.10-2)...
50.
51. Settinguplilo(1:22.8-8Ubuntu1)...
52.
53. WARNING:kernel&initrdnotfoundintherootdirectory(/vmlinuz&/initrd.img)
54.
55. WARNING:DoNOTrebootorLILOmayfailtobootifyourkernel+initrdislarge.
56.
57. WARNING:Pleaseread/usr/share/doc/lilo/README.Debian
58.
59. Ubuntu@ubuntu:~$
安装过程中,会得到如下lilo的配置提示,按OK就行了:
1. Packageconfiguration
2.
3. ┌───────────────────────────┤Configuringlilo├────────────
────────────────┐
4.
5. ││
6.
7. │LILOconfiguration│
8.
9. ││
10.
11. │ItseemstobeyourfirstLILOinstallation.Itisabsolutelynecessary│
12.
13. │torunliloconfig(8)whenyoucompletethisprocessandexecute│
14.
15. │/sbin/liloafterthis.│
16.
17. ││
18.
19. │LILOwon'tworkifyoudon'tdothis.│
20.
21. ││
22.
23. ││
24.
25. ││
26.
27. └──────────────────────────────────────────────────
─────────────────────────┘
28.
然后使用lilo修复系统:
1. Ubuntu@ubuntu:~$sudolilo-M/dev/sdambr
2.
3. Backupcopyof/dev/sdain/boot/boot.0800
4.
5. TheMasterBootRecordof/dev/sdahasbeenupdated.
6.
7. Ubuntu@ubuntu:~$
修复完成,重启系统:
1. Ubuntu@ubuntu:~$sudo-s-H
2.
3. root@Ubuntu:/home/ubuntu#reboot
OK了,相信重启后选择进入系统的画面就出现了,是不是很简单?