如何用U盘启动盘来修复Ubuntu系统?

运维 系统运维
很多使用wubi在Windows下安装Ubuntu的系统更新后无法再进入系统的问题,出现此问题的原因在于更新Ubuntu时选择更新grub组件,以至于把引导区grub破坏。本文介绍了如何通过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:1http://mirror.bjtu.edu.cn/Ubuntu/lucid/mainmbr1.1.10-2[23.0kB]  
  30.  
  31. Get:2http://mirror.bjtu.edu.cn/Ubuntu/lucid/mainlilo1: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了,相信重启后选择进入系统的画面就出现了,是不是很简单?

总结:

希望本文介绍的使用U盘启动盘来修复Ubuntu系统的方法能够对读者有所帮助,更多有关linux系统的知识还有待于读者去探索和学习。

【编辑推荐】

  1. Ubuntu11.04之三大变化
  2. Ubuntu11.04系统安装过程中的截图
  3. 解决Ubuntu10.04系统上网慢的问题
  4. Ubuntu11.04系统有何全新功能及其界面变化?
  5. Linux技巧之Ubuntu11.04下安装极点五笔输入法
责任编辑:韩亚珊 来源: 雨木林风
相关推荐

2019-09-11 08:57:10

Linux操作系统电脑

2015-05-28 16:33:27

运维

2020-05-08 19:25:00

Windows 7Windows 10U盘启动盘

2011-08-03 17:08:56

2021-12-10 23:44:34

U盘系统电脑

2021-02-22 18:30:37

LinuxUSB启动盘Windows

2017-09-06 23:56:27

RufusVMware ESXi启动盘

2015-09-18 17:31:52

U盘启动盘Windows 10

2011-09-15 16:08:03

windows7ubuntu11.04U盘

2021-09-29 08:52:31

Ventoy 开源工具U盘

2023-09-06 17:02:53

2010-08-27 09:51:10

2021-11-02 22:43:44

电脑U盘

2009-07-16 16:40:18

Windows Emb

2010-04-22 10:42:22

2016-10-20 09:17:23

LinuxU盘驱动器

2017-11-22 09:00:46

Windows 10Ubuntu 17.1U盘安装

2009-07-17 14:04:54

Windows Emb

2009-07-17 14:27:13

Windows Emb

2010-01-05 14:26:19

U盘安装ubuntu
点赞
收藏

51CTO技术栈公众号