我的电脑启动到黑屏,我有什么选择来解决它?

我想在我的电脑上启动Ubuntu。 当我启动Ubuntu时,它会启动到黑屏。 我怎样才能解决这个问题?

目录:

  1. 如果您正在尝试安装Ubuntu
  2. 如果你有双启动系统
  3. 如果更新或其他原因导致您的问题

如果您正在尝试安装Ubuntu

1.确保正确刻录/刻录CD / DVD或USB闪存盘并且没有损坏:

  • 如何MD5测试Ubuntu ISO。 另请参见: 在哪里可以找到Ubuntu ISO映像的校验和? 或ubuntu .iso的MD5哈希(14.04到17.04)
  • 查看这些步骤,了解如何在启动CD后检查CD,以确保它已准备就绪。
  • validation刻录的CD / DVD或写入的USB闪存驱动器的完整性 (这也会检查您希望安装的计算机是否可以访问它)。

2.尝试启动LiveCD时出现黑/紫色屏幕

Ubuntu安装程序的启动部分有时与某些图形卡不兼容。 修复它并进入Ubuntu桌面尝试或安装它通常可以非常容易地修复: nomodeset参数。 看看它是否适合你:

  • 从Desktop Live CD启动并在看到以下内容时按键:

    屏幕截图1

  • Enter键并选择英语:

    屏幕截图2

  • 按F6,使用 键下移到nomodeset ,然后按Enter键 。 左边会出现一个x 。 然后按Esc ,然后按Enter键 “尝试不安装Ubuntu”。

    屏幕截图3

如果nomodset也显示为黑屏,你也可以尝试acpi = offnolapic

3.黑屏

要么

“你需要首先加载内核”和“无法读取文件/ cd0”错误

安装到支持UEFI的机器时:

尝试以UEFI模式运行时,Ubuntu的安装程序将因不同制造商的UEFI规范实现而挂起和停止,并将以不同方式挂起。 要确定您的计算机是否在安装程序UEFI模式下启动,您将看到

屏幕截图4

REF:UEFI社区Ubuntu文档部分2.4

如果您的计算机具有CSMfunction(具有模拟BIOS层的完整UEFI实施),则从grub列表中选择任何选项后,系统将挂起黑屏。

上面的图片实际上只确认您的DVD / USB使用UEFI启动,并且在固件设置中会有一些方法来确保驱动器启动以便使UEFI安装程序运行(解决方案可能就像确保SATA设置为AHCI一样简单) – 检查您的供应商手册! 另请查看UEFI社区文档部分2.3以获取更多详细信息。

首先需要做的是在固件设置中禁用SECURE BOOT。 如果这不能使Ubuntu安装程序运行,请尝试禁用在固件设置中提及UEFI的任何内容。 要么
如果找不到UEFI设置,则启用CSM – 这将禁用UEFI引导安装程序,然后允许Ubuntu的旧版/ BIOS安装。
之后安装grub-efi将允许重新启用UEFI。 再次参考第4节中的 UEFI社区Ubuntu文档

有些机器使用带有模拟UEFI层的完整BIOS,可能会出现错误,如“你需要首先加载内核”和“无法读取文件/ cd0”

并非所有这些机器都实现了安全启动。 只需在BIOS设置中选择UEFI,即可在硬盘驱动器上配置UEFI模式。 这些错误没有解决方案,解决方法是禁用UEFI以使Ubuntu安装程序能够以传统模式运行; 之后可以使用boot-repair来安装grub-efi ,然后在Ubuntu使用UEFI启动之前允许/需要UEFI重新打开。 再次参阅第4节中的UEFI社区Ubuntu文档


第一次启动Ubuntu 后出现黑/紫色屏幕

这通常是因为您拥有Nvidia或AMD显卡,或具有Optimus或可切换/混合显卡的笔记本电脑,并且Ubuntu没有安装专有驱动程序以允许它使用这些。

解决方案是在nomodeset模式下启动Ubuntu(您的屏幕可能看起来很奇怪)绕过黑屏, 下载并安装驱动程序 ,然后重新启动以永久修复它。

  • 启动计算机,然后在启动时按向右键 ,以获取Grub菜单。 使用 键导航/突出显示所需的条目(通常是第一个)。

    屏幕截图5

  • e编辑该条目,该条目将显示详细信息:

    屏幕截图6

  • 找到如上所示的linux条目,使用 键到达它,然后按结束键到达该行的结尾(可能在下一行!)。

    屏幕截图7

    • 输入nomodeset ,如图所示,然后按Ctrl + X启动到可以成功安装图形驱动程序的位置。

如果您运行的是Ubuntu 12.04或12.10,并且有ATI / AMD显卡,则必须按照此处的说明进行操作,否则每次重新启动计算机时都会遇到此问题。

LUKS加密

如果你已经安装了带有LUKS加密/ LVM选项的Ubuntu,可能是Ubuntu只是要求你输入密码 – 而你却看不到它。 如果您有黑屏,请尝试按Alt + 然后按Alt + 切换您的tty,这可能会带回密码查询并重新打开背光。

如果您有紫色屏幕(也许您需要设置nomodeset -option?)并且您已经加密了完整的Ubuntu安装,请尝试在等待几秒(或几分钟后)之后输入加密/ LUKS密码,以确保)继续按Enter键 。 如果这是成功的,您应该在几秒钟后看到您的登录屏幕。


  1. 尝试使用备用安装程序 – 这是一个基于文本的安装程序,可能比liveCD更好,具体取决于您的硬件。
    如果你这样做,你可能会在你打gr之前得到黑屏。 一个简单的Ctrl + Alt + Del将一些用户带到一个可用的grub屏幕
  2. 如果您有Nvidia Optimus卡,则不应安装nvidia驱动程序,只需使用内置驱动程序,请参阅此处:

    • 是否支持Ubuntu支持Optimus技术的NVIDIA GeForce?
  3. 选择引导选项后,您可以使用键盘手动编辑引导标志。 替换quiet splashno splash以了解您的系统失败的步骤。 使用该信息在论坛或互联网上搜索社区的答案。

  4. 如果您仍然无法安装Ubuntu,那么很遗憾您可能遇到了特定于硬件的错误,请参阅此处: 如何报告错误?

如果更新或其他原因导致您的启动问题:

  1. 冻结:

    • 在Ubuntu Wiki上冻结故障排除
    • Ubuntu Wiki上的黑屏故障排除
  2. nVidia用户:

    • 安装nvidia限制驱动程序后的空白屏幕
    • 使用NVIDIA显卡安装Ubuntu 16.04 / 16.10之后/之后的图形问题
  3. ATI / AMD用户:

    • Fglrx导致严重的黑屏错误!
  4. Grub恢复交叉链接

    • 如何在启动过程中启用在屏幕上打印的启动消息?
    • 如何调查启动和分区问题?
  5. 重新安装您的机器

    • 更新后我无法启动可用系统。 我该怎么办?
  6. 有时内核升级会导致问题,特别是如果您使用的是关闭的驱动程序,您可以通过引导到旧内核来确认是否是这种情况。

    • 如何使用较旧的内核版本启动? 如果您的旧内核有效,那么您在新内核中发现了一个错误,请参阅此文章的结尾以向内核团队报告!
    • 在Ubuntu Wiki上调试内核启动
  7. LiveCD恢复交联

  8. 等等 …
  9. 如果您仍然无法启动Ubuntu,那么很遗憾您可能遇到其他类型的错误,请参阅此处: 如何报告错误?

如果您的系统是双启动:

链接以下内容:

  • 引导扇区修复

    启动修复

  • grub的东西

    安装并重新安装GRUB

  • 如果您想完全删除Ubuntu并想要安装Windows:

    如何删除Ubuntu并重新打开Windows

如果您的图形卡是Nvidia ,请按照下列步骤操作:

  1. 在启动时的GRUB菜单中,按e ; 然后,
  2. 使用箭头键替换quiet splashno splashnomodeset
  3. 然后按Ctrl + x组合键进行引导。

如果您的图形卡是ATI ,请按照下列步骤操作:

  1. 在启动时的GRUB菜单中,按“e”; 然后
  2. 使用箭头键用radeon.modeset=0替换quiet splash
  3. 然后按Ctrl + x组合键进行引导。

提高屏幕亮度

在某些笔记本电脑(如HP Pavilion )上,由于屏幕亮度较低 ,您可能会启动黑屏。

使用组合键增加亮度 (每个型号都有所不同。例如, FN + F7

看起来我们都共享相同的硬件。 至少相同的CPU,相同的P67和相同的显卡(我的是GT 440)。 你能做的是以下几点:

  1. 启动时按ESC键或按住SHIFT键直到出现GRUB菜单。

  2. 在GRUB菜单中选择RECOVERY MODE 。 它应该说:

    Ubuntu, with Linux 3.2.0-25-generic-pae (recovery mode)

  3. 恢复模式完成加载后,它会显示一个菜单。 选择有关以root访问权限转到shell的选项( root选项。下图中的最后一个选项)

    在此处输入图像描述

  4. 现在我们需要安装Nvidia驱动程序并更新系统。 按顺序执行下一行,以正确的顺序执行此操作。 还要确保您已连接到Internet:

    A. 更新系统

    1. sudo apt-get update
    2. sudo apt-get upgrade

    B. Nvidia司机

    有两种方法可以安装专有驱动程序。 PPA方式或默认Ubuntu方式。

    1. 默认的Ubuntu方式只需输入终端sudo apt-get install nvidia-current (对于当前正常的驱动程序)或sudo apt-get install nvidia-current-updates (对于最新的当前驱动程序)。 选择一个。

    2. PPA方式有最新流血的边缘驱动程序。 我之所以提到这个,因为我在一些与使用电视和16:9/16:10分辨率的问题相关的用例中进行了测试。 要安装这个,请执行以下操作:

      sudo add-apt-repository ppa:graphics-drivers/ppa并按ENTER键接受您将收到的消息。 然后做sudo apt-get update 。 最后做sudo apt-get install nvidia-375 。 请注意,您不能将此与Ubuntu方式混合使用。 一个人会覆盖另一个人。

  5. 重启sudo reboot

现在,如果您遇到任何问题,请再次通过终端执行以下操作,但这次转到您的主文件夹。 在我的情况下它是/home/cyrex ,所以我会cd /home/cyrex 。 在您的情况下,您应该将其更改为您的用户并应用以下内容:

 sudo rm -fr ./config/monitors.xml sudo rm -fr .nv* sudo rm -fr /etc/X11/xorg.conf 

然后当你启动到Ubuntu时,通过Ubuntu设置菜单中的显示选项更改分辨率(右上角的齿轮)

我们在那里做的是删除monitors.xml以解决一些解决问题,删除.nvidia-settings来修复一些Nvidia配置问题并删除xorg.conf(在最新的Ubuntu版本中并不是真的需要)来删除任何错误配置选项。

最后,我们可以在恢复菜单中执行grub选项来修复任何引导加载程序问题。

我昨晚遇到了这个问题。 突然间,我的系统不再启动了。 BIOS检查完成后,它会挂在黑屏上,光标闪烁。 为了以防万一,将它留在那里几个小时。 当这不起作用时,我拔掉了所有的USB设备,突然间它再次启动了。 我没有完全缩小它,但在我的情况下,它是我的USB集线器或插入USB集线器的iPod导致它挂起。

不是说这一定是您遇到的问题,但希望您的启动问题与拔掉某些USB设备一样容易修复……!

如果您使用的是Windows Installer(五笔)

除了在Windows中运行安装程序后第一次重新启动时 ,Wubi覆盖与正常安装相同

更复杂的是,由于Ubuntu 11.10有两种不同的方法可以与Wubi一起安装。 第一种方法是使用Desktop ISO,它适用于所有子风格(Kubuntu,Lubuntu,Mythbuntu等)以及您自己下载Ubuntu ISO。

第二种方法是使用预安装的磁盘映像 ,如果你运行wubi.exe standalone并选择安装Ubuntu

方法1

你会看到这个:

 Completing the Ubuntu installation For more installation options, press ESC now 5...4...3...2...1 

Esc然后你会看到:

 Normal mode Safe graphic mode ACPI workarounds Verbose mode Demo mode 

忽略了2008年应用于Ubuntu的安全图形模式 ,并且对现代的nvidia / radeon问题没有任何作用。 将光标置于普通模式 ,然后按E。 然后编辑该条目并插入nomodeset ,如下所示(在中间的nopromptquiet splash之间查找它;注意可能存在其他一些差异,但不要更改任何其他内容 – 只需添加nomodeset ):

 linux /ubuntu/install/boot/vmlinuz debian-installer/custom-installation=/ubuntu/install/custom-installation iso-scan/filename=/ubuntu/install/installation.iso automatic-ubiquity noprompt nomodeset quiet splash boot=casper ro debian-installer/locale=en_US.UTF-8 console-setup/layoutcode=us console-setup/variantcode= -- rootflags-syncio initrd /ubuntu/install/boot/initrd.lz 

现在按Ctrl + X启动。

注意 :这仅适用于安装; 下次启动时,你必须再次覆盖它,为此它将与正常安装相同( 上面回答)。 确保按住Shift键以显示Grub菜单。

方法2当您运行wubi.exe独立并安装Ubuntu(不是子风格)时,它会下载预安装的压缩磁盘映像,并使用默认的Ubuntu安装,然后将其解压缩到虚拟磁盘的大小。 还没有grub.cfg设置,所以它使用文件\ubuntu\install\wubildr-disk.cfg进行首次启动,你可以编辑并添加nomodeset

 loopback loop0 /ubuntu/disks/root.disk set root=(loop0) search --set=diskroot -f -n /ubuntu/disks/root.disk probe --set=diskuuid -u $diskroot linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk preseed/file=/ubuntu/install/preseed.cfg wubi-diskimage ro quiet splash nomodeset initrd /initrd.img boot 

注意 – 如果您是第一次启动后来到此线程,则可能已经创建了grub.cfg (即使它冻结了)。 在这种情况下,编辑\ubuntu\install\wubildr-disk.cfg文件将不执行任何操作 – 它始终首先检查虚拟磁盘中的/boot/grub/grub.cfg 。 因此,您应该按照上面的正常安装说明进行操作。

另请注意,在Wubi安装时默认情况下会禁止Grub菜单(即使有两个操作系统 – 因为你 Windows启动Ubuntu,因此从Ubuntu的Grub菜单中添加一个Windows条目毫无意义)所以你必须按住选择Ubuntu后的Shift键,以显示Grub菜单。 在Windows 8上,它会在您选择启动到Wubi后重新启动,在这种情况下,您应该在BIOS发布后按住Shift键。
(这仅适用于带有BIOS的Windows 8 – Wubi不适用于UEFI)。

我也有这个问题,或类似的问题。 事实certificate,出于某种原因,Ubuntu已经开始将屏幕亮度设置为最低设置。 如果我进入一个非常黑暗的房间,我可以看到屏幕恰好足以进入“亮度和锁定”控制面板并将亮度调到应有的位置。

怎么修 :

  1. 启动ubuntu,登录,现在在黑屏中转到控制台Ctrl + Alt + F1并键入nautilus

  2. 如果nautilus无法在终端类型unity打开

  3. 现在没有退出或停止unity命令返回我的电脑中的ubuntu界面是Ctrl + Alt + F7
  4. 使用Ctrl + Alt + T在nautilus中打开终端并键入nautilus
  5. nautilus仍然打开,在终端类型sudo software-properties-gtk
  6. 搜索图形驱动程序,我的问题是X.org的默认驱动程序。 我有一个ativideo卡,我安装了fglrx-updates的驱动程序,如果你有nvidia安装nvidia的驱动程序或如果你有ati驱动程序
  7. 重启
  8. 登录后,你会看到nautilus运行良好,壁纸唯一不起作用的是团结。 打开终端并输入: dconf reset -f /org/compiz/setsid unity

而已。

我希望这可以解决你的问题。

我意识到这是一个老问题,但它也很普遍,没有任何关于所涉及的具体硬件的细节。 也就是说,在找出更多细节之前,你不能提交错误或修复问题。

我以为自从我遇到这个问题并且最近从中恢复以来,我就会对此进行一次尝试。 我可能会在以后再次运行,并提供更多信息并简化步骤,但答案列表已经相当大,所以我会轻松截图。

恢复模式是您的朋友,但您并不总是需要单用户root会话来解决问题。 实际上,您可以通过选择“resume”来执行正常的控制台登录,而无需考虑恢复菜单上的任何其他选项。 关于单用户root模式的正常控制台会话的好处是你可以同时运行多个终端 – 在它们之间切换或用Alt + F1Alt + F2等打开新的终端。这是一个很好的机会这是一个阻止您进入图形登录的video驱动程序问题,它可能只是您在重新启动计算机之前进行的某些升级的结果。

您可能会在没有遇到类似问题的情况下一次使用几年,但了解您的硬件并准备好使用终端是个不错的主意。 基本上有两个video驱动程序需要担心:内核驱动程序和xorg驱动程序。 Xorg是一个video服务器,它使用x11协议以全彩色显示深度和各种疯狂效果的东西 – 它是桌面环境或窗口管理器和内核驱动程序之类的应用程序之间的抽象层。 内核驱动程序是另一个抽象层,但它更接近于与实际硬件的通信。

在应用程序和硬件之间传递消息是内核的工作(在本例中为Linux)。 驱动程序既可以编译到内核中,也可以通过内核模块以更加临时的方式添加。 除非您配置和编译自己的自定义内核,否则您可能正在使用模块。 作为模块的内核驱动程序在启动后很快就会加载,这样可以在关闭交换卡时更容易升级。 好消息是,您可以从命令行运行一些或多或少的标准工具,以便为您提供有关这些类型的驱动程序,实际硬件以及它们是否正在加载的更多信息:lspci,dmidecode和dmesg,以便命名一些。 这些工具有man手册页(例如$man dmidecode )和许多howtos,所以我暂时不会详细介绍。

然后是xorg驱动程序。 要列出存储库中可用的内容,可以键入apt-cache search xserver-xorg-video | less apt-cache search xserver-xorg-video | less给你一个所有可能的司机列表。 使用’|’将其管道less 您可以通过在按住shift的同时点击斜杠键来键入的符号(要清楚这是什么符号),您可以选择在驱动程序列表中来回滚动(使用箭头键)。 要获取有关特定驱动程序的更多信息,可以键入apt-cache show xserver-xorg-video-vesa (随机选择一个)。 要安装一个,你可以输入apt-get install xserver-xorg-video-vesa并希望最好。 至于我不知道有多少版本以前Xorg会尝试自动加载一个已安装的驱动程序,但在某些情况下,你可能会在/etc/X11有一个名为xorg.conf的配置文件。 所以看看是否有一个: ls /etc/X11/xorg.conf

如果你升级了Xorg驱动程序而没有直接升级Xorg本身,有可能通过apt-get install恢复到旧驱动程序将不会自动拉入与它兼容的Xorg版本 – 它应该但并不总是这样做它应该是什么。 最低限度,您需要匹配的xserver-xorg-core版本。 不用担心卸载升级的xorg替代品,只需输入命令apt-get install xserver-xorg-core以恢复并自动卸载更新的版本。 此建议主要适用于过渡重命名的包,它提供虚拟包以替换仍在包树的同一分支中维护的包。 虚拟包有时是一团糟,可以使用在升级/降级过程中交换的许多依赖项中的任何一个来做有趣的事情,但是首先要集中精力回到GUI。

现在我已经概述了从故障排除开始的一些方向,让我们回到控制台屏幕,您希望在恢复菜单中选择“恢复”时顺利完成。 当你需要大量的复制和粘贴时,没有鼠标在控制台上被卡住会很痛苦,所以准备一些gpm用于鼠标支持和其他一些工具:links / links2或w3m(web browsers), vim(文本编辑器),dpkg,apt,less(vim样式键和像man一样搜索)和grep。 我可能会留下一些。

dpkg的一些特别有用的命令是dpkg -L用于显示已安装的软件包的文件和dpkg -l | less dpkg -l | less显示当前安装的所有软件包(管道less )。有时gpm对于让你选择东西有点挑剔,所以你可以用/etc/init.d/gpm restart启动它但你可能遇到点击问题重新启动w3m或浏览器links之前页面中的links 。 w3m更易于滚动,通常更适合经过身份validation的会话(例如,登录论坛寻求帮助)。 虽然需要点击Esc键来点击链接(超链接),但学习曲线比使用称为links的浏览器更陡峭。

除非你有一个Nvidia卡或者你想要尝试的Linux专有驱动程序支持,否则在使用xorg尝试之前我会回避内核驱动程序 – 首先尝试对xorg驱动程序进行故障排除,因为它可以更轻松而不是为硬件定制内核(取决于品牌)。 问题是,你可能会发现一系列链接导致你走向错误的方向,芯片制造商将你送到卡制造商和卡制造商那里,不给你任何支持。 至于为驱动程序的不同“vanilla”版本尝试不同的内核,请坚持使用与当前版本不同的内核版本(由uname -r给出),除非您真的对测试感兴趣。 最新的主流内核甚至不能在你的系统上启动,所以如果你遇到一个中途破坏的设置,为什么还要烦恼呢? 继续专注于尽可能少地重新恢复,这样你就不会落后于过多的工作。 你可以在emacs,vim或pico / nano中输入内容,或者用mutt或pine查看你的邮件,但最终你会想要回到21世纪。

祝好运!

如果Ubuntu 10.04启动,但不启动10.10或更新版本

有可能是您的计算机的ACPI不受支持。 Ubuntu 10.04支持ACPI的驱动程序,但自10.10以来支持掉了。

要尝试这样做,请将BootOptions更改为nolapic然后查看Ubuntu Live CD是否启动( info )。


如果它工作,你有2个选项来使LiveCD启动:

  1. 禁用“新卡接口”(我在UbuntuForums中看到了该方法)

    • 进入BIOS>安全> I / O接口安全>“新接口卡”。 将其设置为已锁定。

    • 如果您使用Windows,请确保您有可用的Windows恢复光盘,因为Windows可能会显示为错误。

  2. 或者,禁用ACPI,这是不推荐的,因为它可能会禁用您计算机上的某些关键function(如风扇)。 除非您尝试过第一个选项并且知道自己在做什么,否则不建议这样做!

    说明( 来源 ):

    • 重启你的电脑。

    • 按启动消息中指示的键(通常为F2EscF1 )进入BIOS。

    • 单击“电源设置”菜单。

    • 突出显示ACPI条目,按Enter键 ,选择“已禁用”,然后再次按Enter键

    • EscY退出并保存。

    • 同样,如果您有Windows,请确保您有可用的Windows恢复CD,因为Windows可能会显示为错误。

不同的PC制造商有不同的BIOS,因此如果计算机的BIOS没有显示,请阅读计算机手册。

我有同样的问题。

我刚修好了。 (种类)我的解决方案(所以你可以重新启动你的GUI)(不知道它是否真的是这个或者它是否在某些东西在一起):

  • 打开TTY( ctrl + alt + F1 )键入命令。

  • 确保安装了radeon开源驱动程序。
    https://help.ubuntu.com/community/RadeonDriver

  • 删除所有fglrx驱动程序:
    我第一次尝试: https : //wiki.ubuntu.com/X/Troubleshooting/VideoDriverDetection#Problem : _Need_to_purge_-fglrx
    后来试过这个:
    sudo apt-get remove fglrx*

之后我可以重启并登录。

可选:如果您有登录循环(键入密码并被接受,它将重新询问您的密码):(备份文件)
mv ~/.Xauthority ~/.Xauthority.old试登录。

任何问题,请问。

If you have more than one video port on your graphics card (or more than one graphics card), then plugging the monitor into a different port may fix the problem.

I’ve had an issue in the past with dual-DVI graphic cards, where it won’t boot using one of the ports (secondary maybe?), but works fine on the other port.

I upgraded from 10.10 to 11.04 to 12.04 LTS, and when 12.04 loaded for the first time, I had a blank screen after the GRUB menu. It actually booted fine – I could SSH into the system as usual, but the video at the actual console didn’t work. Booting into recovery mode worked fine, too. Here was the solution.

Hardware = Macbook, early 2008, Macbook4,1. (Black – Early 2008/Penryn)

After much trial and error, the solution was the editing and updating GRUB as shown below. The relevant edits were

  • GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset”
  • GRUB_GFXMODE=1024×768

sudo nano /etc/defaults/grub
sudo update-grub

 # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=2 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset" GRUB_CMDLINE_LINUX="nopat" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' GRUB_GFXMODE=1024x768 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" 

Turns out I had to create a LiveCD and completely reinstall GRUB. After I did this, things are working fine again.

Documentation for re-installing grub is here : help.ubuntu.com .

This one helped at least a bit: http://ubuntuforums.org/showpost.php?p=9965194&postcount=8

综上所述:

  1. Run gksu gedit /etc/initramfs-tools/conf.d/splash .
  2. In the text editor, add FRAMEBUFFER=y to the file.
  3. Save the file and quit the text editor.
  4. Run (in a Terminal): sudo update-initramfs -u

I have had this problem a few times. I occasionally get errors detecting one of the HDDs, and I think the boot order gets corrupted in the BIOS. Fixing the boot order solves the boot problem. I have an old Nov 2005 ASUS mobo with a 750 GB WD and a 1.5TB Samsung hard disk.

When the grub boot menu comes up, press e to edit the correct boot line. Where it says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" change this to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset" .

If this works, then you can install proprietary graphics drivers which should get you going again.

If you have trouble with the above, you can change the above line permanently in the grub configuration file.

Boot into recovery mode (selection from the grub boot loader) and edit the file /etc/default/grub as per the above instructions.

You can edit this file by typing:

 nano /etc/default/grub 

You’ll have to update the grub menu:

 update-grub 

then reboot by typing

 reboot 

I had this issue with Ubuntu 12.04 64bit version. I install all goes well, I enable the Nvidia drivers reboot and nothing but a black screen. I re-installed several times with the same results. I then remembered that I had this problem with previous versions of Ubuntu. I downloaded and installed the 32bit version then installed the Nvidia drivers and I did not have this issue. It only happens when I use the 64bit version with the Nvidia drivers.

In case that the black screen is only intermittent (and that there might be a blinking cursor), lightgdm having a race condition and not being able to start properly could be the issue.

At least that was the case for me. See here for a solution: http://www.webupd8.org/2013/01/ubuntu-lightdm-black-screen-when-using.html (see also this bug report ).

The gist of it: Use gdm and not lightgdm (ie sudo apt-get install gdm , and choose gdm as default login manager when asked).

Let me quickly describe the symptoms I had: At first, because also the graphics was having a problem, when this problem occurred, I would only see a blank screen, and no chance to switch to the other terminals by pressing Ctrl+Alt+F1-6 (the screen simply stayed completely black, or rather, a very dark purple or something).

This I fixed by adding the “nomodeset” kernel option, as stated eg in this answer .

But after that, I still intermittently couldn’t boot up properly; now it would stop with a blinking cursor. And this, as the above link tells in more detail, is caused by lightdm having a race condition – which manifests itself mainly if the boot-up is very quick, eg from an SSD (as it is the case for me).

Hope this helps someone.

On my notebook I had funny problem. I thought I had black screen two times and I had to shut down it with button. Shortly before I tried again and I barely saw some dark letters in the center of the screen so I pressed the button which brightens up the screen and now it works 🙂
Also, I’ve used http://sourceforge.net/projects/unetbootin/ , maybe it helped.

UBUNTU 12.04 LTS install Problem, stuck/crash at loading screen. (Nvidia Graphics Cards)

  1. Remove Graphics Card from your machine.
  2. Install Ubuntu (You shouldn’t get any errors when running generic driver.)
  3. After Ubuntu is installed then put graphics card back into machine while the tower still powered off. Then swap your VGA/HDMI/DVI cables to the graphics card. Turn on computer and select the recovery option from the GRUB menu then boot normally.

  4. Go to Nvidia website and grab the linux driver it will come in .run format

  5. Install Driver using the following steps.

    一个。 Move the driver to the desktop and rename it something simple and easy to remember.

    Ctrl + Alt + F1

    C。 Run command sudo /etc/init.d/lightdm stop

    d。 Run command cd ~/Desktop DRIVERNAME.run (What you renamed it.)

    即 Run command chmod +x DRIVERNAME.run

    F。 Run command sudo ./DRIVERNAME.run

    G。 Follow instructions and continue

    TIP If you still get hung with “It appears you are running “X” server then change the command on Step 5c to as follows: sudo /etc/init.d/gdm stop

  6. Ctrl + Alt + F7

  7. Ctrl + Alt + t (Only use steps 7 & 8 if you can’t access the restart button or see your screen.)

  8. Run the command Shutdown -h (OR sudo shutdown 0 -h if the other command fails.)

  9. Boot computer and enjoy 🙂 I suggest printing these instructions.

PS I am not sure if you can place graphics card into PC after installation this is the way it worked for me and I am passing it on. I might suggest trying to install the graphics card on step 1 with machine off first as it is much safer this way.

I tried those methods as well — no joy. Here’s what did worked for me .

Here’s the part that was useful:

Getting 1366×768 resolution

Create file /etc/grub.d/01_915resolution

 echo insmod 915resolution echo 915resolution 58 1366 768 32 

and execute:

 chmod +x /etc/grub.d/01_915resolution 

In file /etc/default/grub , assign value 1366x768x32 to variables GRUB_GFXMODE and GRUB_GFXPAYLOAD_LINUX :

 GRUB_GFXMODE=1366x768x32 GRUB_GFXPAYLOAD_LINUX=1366x768x32 

执行:

 sudo update-grub 

reboot, now you have 1366×768 resolution.


Actually, I already had this resolution. But the added commands got rid of the black screen on boot-up and the need to switch video modes.

This is specific to where the install fails and your installation behaves badly.

Requeriments

  • You need access to the Recovery menu, if you don’t then look for other options.
  • Internet access with a DHCP-enabled network
  • GUTS! Since this is a delicate process.

程序

  1. Once you are in the recovery menu, select Activate Networking.
  2. Now select drop to a root shell.
  3. Run mount -a . (In my case that bad was the installation that I was forced to do this)
  4. Verify that your network is up and running: ping -c 2 4.2.2.2 If this fails run dhclient . ping -c google.com if this fails run dhclient .
  5. Now update your repositories: apt-get update
  6. Install debsums: apt-get install debsums
  7. Run debsums -s . It will give you a list of packages that have problems. Take note of each.
  8. Now reinstall the packages that has problems: apt-get --reinstall install packages .
  9. Update your grub just in case. update-grub .
  10. Reboot and good luck.

After upgrading from 12.10 to 13.04, the login screen is black because brightness is set to lowest level (Intel Integrated Graphics)

I’ve noticed that it would be a brightness problem cause I’ve listened to the Ubuntu’s default drum sound when booting for the first time after upgrading. Before I find this solution, I had to increase the brightness level to see anything on the screen.

For me, the solution came from this bug report at https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1173059 , by changing /etc/default/grub as root this way:

Make a backup file, so you’ll be able to restore it, if this solution doesn’t work:

 sudo cp /etc/default/grub /etc/default/grub.original 

To open the file with sudo you can use this in the Terminal, for example:

 sudo gedit /etc/default/grub 

Then, replace:

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor" 

You’ll need to run update-grub2 to apply the change:

 sudo update-grub2 

而已。 After rebooting, it worked flawlessly for me (that is, my login screen has a normal brightness level).

It turns out the ATI Catalyst drivers were not compatible with the 13.10. I ended up re-installing the OS from the live CD and everything went fine, except now I have to figure out why there is no sound.

I just had a similar issue with Xubuntu after installing ATI catalyst drivers. Purging the 2 fglrx packages allowed me to log in properly and have a desktop….though without the proper drivers and acceleration.

situation 1) Impossible to solve at uefi-black-screen – uefi-bios has to be visible so you could then use an live-usb-stick properly. The accumulator has a chip too, this way the ransomware attacks via this chip…

a) pull out accumulator after machine is switched off (20 seconds pressing slightly the power-button off).

b) pull off the power-supply cable both ends.

c) after waiting only do use the power-supply cable

d) switch on and quickly two fingers changing pressing ‘ESC’ and ‘F2’

e) disable recovery mode of uefi-settings

f) disable secure-boot

g) get sure that usb-booting order allows usb-live-stick at 1st place !!! save and reboot from bios (leave accumulator away)

h) re-install ubuntu or repair the disk with ubuntu-recovery-modes, but I would prefer complete new installation alongside previous ubuntu-installation and delete Windows. i) you need to delete Windows, because the chip of the accumulator wants to make a revival of ransomware for windows as previous first-boot-installation.

situation 2) Black screen with Windows on booting first hard-disk, then it is deadly sure ransomware:

… I had black screen today in the morning too, but my password was too long … so the ransomware had no luck, despite of fact that I dont have dual-boot installation with windows here. There was only an buffer-overrun visible at my machine. I rebooted and the buffer-overrun (or underrun? – hybrid device here …) was gone.

In case Jorge Castro has a dual-boot installation with Windows (no-matter-which-one) then I simply would press quick changing with two fingers the keys ‘esc’ and ‘F2’ to get back into uefi-bios before the machine boots into black screen after you have pressed the switch-off-button slightly for 20 seconds.

Replay:

a) switch-off the machine with slightly pressing 20 seconds the power- supply-button

b) wait a while … in case of notebook pull the plugin-cable of power- supply and stick it in again, then take out the accumulator and put it in again.

c) wait a while … then switch-on your machine

d) now quick changing with two fingers between key ‘F2’ and ‘ESC’

e) uefi-bios should appear again … then this is not finish !

f like foolproof) decide the boot-mode whether to enable or disable secure-boot ( http://www.eightforums.com/tutorials/17058-secure-boot-enable-disable-uefi.html ). This decides whether you get back into windows to launch really http://malwarebytes.org – program.

g like gentleman) this is not gentleman-style but I saved your day.

When malwarebytes – program finished its job and avast too finished its job, use then a freeware registry-cleaner ( http://heise.de )

situation 3.) This way ubuntu-recovery should work again after step 1.) and step 2.)

a) free the memory

b) repair the file-system

c) go into root – terminal

type there:

sudo apt-get install –reinstall grub* –fix-missing

sudo apt-get update

sudo update-grub2

sudo passwd (new password like method here : http://nosy-x.com/password-001.html in paranoid method a suiting quantum-password)

happy coding and dont forget to eat a meal …

I have just had the same problem on Ubuntu 14.04.2. And this solved it:

  apt-get install ubuntu-desktop