zoukankan      html  css  js  c++  java
  • Win10安装Ubuntu14.04.5双系统(显示器为DP接口)

    系统安装主要参考了这篇博文Win10+Ubuntu17.04双系统安装,不再重复。

    重点说说DP接口的事,如果主机有VGA接口的话可以到此为止了,如果只有DP接口的话可以参考以下内容。

    一、Ubuntu系统安装时的修改

    用U盘安装Ubuntu系统时,在grub界面选择Try或者Install都可以,但是不要直接回车,而是按e进入编辑界面,在“quiet splash”前面添加“nomodeset”参数,这样后面的安装过程才能继续,否则只能看着显示器Auto Shutdown。

    二、Ubuntu系统安装完成后的修改

    安装完成重启之后就不会再出现grub界面了,也就没法修改参数。查了一下,有一种说法是在启动过程中按住Shift键,可以进入grub界面,但是试了之后没有效果,不知道是系统版本的问题还是其他问题,无奈只能继续找。

    最后在这里找到了解决办法:How do I set 'nomodeset' after I've already installed Ubuntu?

    原文如下:

    • Run from the Live CD, and either install Ubuntu or move on if already done
    • Check your installed partition with the command "gparted". It opens a Window telling you where you installed Ubuntu. In my case it was /dev/sda2 which contained an ext4 partition.
    • Mount the partition: 

    sudo mount /dev/sdXY /mnt

    • Then mount/bind the directories Grub needs to access: 

    sudo mount --bind /dev /mnt/dev

    sudo mount --bind /dev/pts /mnt/dev/pts

    sudo mount --bind /proc /mnt/proc

    sudo mount --bind /sys /mnt/sys

    • Then move on to this environment using chroot, which I found a supersmart idea: sudo chroot /mnt

    • You should now be able to edit /etc/default/grub, as the others pointed out. Like: sudo vi /etc/default/gruband change the line GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" I found it very useful to also remove quiet and splash so I could see something moving on behind the scenes.
    • The author originally noted, he needs that after an installation of Windows, which broke Grub. He had to reinstall. In my case Grub was intact, but my computer (mac) didn't boot with the original Grub settings. So the only thing left for me was was update-grub

    说实话,老外写的英文比我们的四六级考试容易太多,完全不需要看懂每个单词就可以明白他所表述的内容了。

    然而,如果你完全按照作者所说的去做,会发现update-grub的时候会报错,这是因为在分区的时候,我们把/boot单独分了一个区,但是并没有挂载,因此update-grub的时候就会因为找不到/boot而报错。

    解决方法:同时挂载/和/boot分区 sudo mount /dev/sdXY /mnt/boot,这样在后面就不会报错了,重启之后也可以顺利进入系统了。

  • 相关阅读:
    Activity(活动)生命周期(1)--返回栈
    探究Activity(1)--Activity的基本用法
    Z-Stack协议栈网络号与信道号的设置
    如何搭建自己的网站到远程服务器(亲测有效)
    新手搭建springmvc+mybits框架的经验分享
    spring+mybits 整合所需jar包的下载路径(亲测有效)
    Map集合的四种常用遍历方式整理
    java设计模式----单例模式
    浅谈H5技术
    jsp内置对象分析
  • 原文地址:https://www.cnblogs.com/saszhuqing/p/8715994.html
Copyright © 2011-2022 走看看