ubuntu16.04与win10双系统,无法正常启动

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

ubuntu16.04与win10双系统,无法正常启动

#1

帖子 scallop » 2018-03-24 10:59

我是在win10情况下安装的ubuntu。安装时就出现卡logo的情况。
当时我通过网上说的更改grub的方法:删掉quiet splash 加入 acpi_osi=linux nomodeset 后成功安装。
但是重新启动后选择 ubuntu 后会一直黑屏。
但是我尝试通过 ubuntu高级选项 -recovery-mode 然后 resume 就成功进入了了。
请问我应该如何做,来正常进入呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04与win10双系统,无法正常启动

#2

帖子 poloshiao » 2018-03-24 11:21

但是我尝试通过 ubuntu高级选项 -recovery-mode 然后 resume 就成功进入了了。
把下面指令 複製 貼進終端機 執行
2-1. sudo efibootmgr -v
2-2. sudo parted -l print
2-3. sudo lshw -numeric -class video
2-4. echo $DESKTOP_SESSION
2-5. sudo cat /etc/os-release
2-6. sudo cat /etc/fstab
把指令及結果全部直接 選取/複製/貼上來
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

Re: ubuntu16.04与win10双系统,无法正常启动

#3

帖子 scallop » 2018-03-24 13:26

2-1. sudo efibootmgr -v
BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0009,0000,000A,000B,0003,0004,0005,0006,0007,0008,0001,0002,000C
Boot0000* Windows Boot Manager HD(1,GPT,1f390f97-fc6e-4440-aa08-caf8b260c742,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* UEFI:Removable Device BBS(130,,0x0)
Boot0003* Diskette Drive BBS(Floppy,,0x0)..GO..NO[.......+.D.i.s.k.e.t.t.e. .D.r.i.v.e.........................rN.D+..,.\...........BO
Boot0004* Hard Drive BBS(CDROM,,0x0)..GO..NO........o.H.a.r.d. .D.r.i.v.e....................A...........................>..Gd-.;.A..MQ..L.7.1.4.3.1.5.2.4.4.4.2.1. . . . . . . . ........BO
Boot0005* USB Storage Device BBS(PCMCIA,,0x0)..GO..NO........c.U.S.B. .S.t.o.r.a.g.e. .D.e.v.i.c.e....................A.......................6..Gd-.;.A..MQ..L.1.7.3.8.3.3.1.D.F.5.4.2.3.6.6.8........BO
Boot0006* CD/DVD/CD-RW Device BBS(USB,,0x0)..GO..NO........h.C.D./.D.V.D./.C.D.-.R.W. .D.e.v.i.c.e....................A............................6..Gd-.;.A..MQ..L.1.7.3.8.3.3.1.D.F.5.4.2.3.6.6.8........BO
Boot0007* NetWork BBS(Network,,0x0)..GO..NO........k.N.e.t.W.o.r.k.........................rN.D+..,.\...........<..Gd-.;.A..MQ..L.R.e.a.l.t.e.k. .P.X.E. .B.0.2. .D.0.0........BO
Boot0008* Second HDD BBS(8,,0x0)..GO..NO........o.S.e.c.o.n.d. .H.D.D....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .D.W.R.E.L.1.6.X........BO
Boot0009* ubuntu HD(1,GPT,1f390f97-fc6e-4440-aa08-caf8b260c742,0x800,0xfa000)/File(\EFI\ubuntu\grubx64.efi)
Boot000A* Onboard NIC (IPV4) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(f48e38f73752,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)..BO
Boot000B* Onboard NIC (IPV6) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(f48e38f73752,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot000C* UEFI:Network Device BBS(131,,0x0)
2-2. sudo parted -l print
Model: ATA SanDisk X400 M.2 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 525MB 524MB fat32 EFI system partition boot, esp
2 525MB 660MB 134MB Microsoft reserved partition msftres
3 660MB 111GB 111GB ntfs Basic data partition msftdata
4 111GB 112GB 875MB ntfs hidden, diag
5 112GB 127GB 14.5GB ntfs hidden, diag
6 127GB 128GB 1211MB ntfs hidden, diag


Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 135MB 134MB Microsoft reserved partition msftres
2 135MB 893GB 893GB ntfs Basic data partition msftdata
3 893GB 893GB 538MB fat32 EFI System Partition boot, esp
4 893GB 992GB 98.5GB ext4
5 992GB 1000GB 8348MB linux-swap(v1)
2-3. sudo lshw -numeric -class video
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1C8D]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:df000000-df07ffff
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:591B]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:dd000000-ddffffff memory:b0000000-bfffffff ioport:f000(size=64) memory:c0000-dffff
2-4. echo $DESKTOP_SESSION
ubuntu
2-5. sudo cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
2-6. sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb4 during installation
UUID=5a7b5fb7-a296-41ba-b2f3-09052e5777f4 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=D857-9612 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sdb5 during installation
UUID=b2359642-e6c7-4afc-915b-ba3772f28e04 none swap sw 0 0
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04与win10双系统,无法正常启动

#4

帖子 poloshiao » 2018-03-24 15:18

重新启动后选择 ubuntu 后会一直黑屏。
1. 先看顯卡
sudo lshw -numeric -class video
*-display UNCLAIMED
product: NVIDIA Corporation [10DE:1C8D]
configuration: latency=0
*-display UNCLAIMED
product: Intel Corporation [8086:591B]
configuration: latency=0
1-1. 雙顯卡 Intel 及 nvidia 顯卡 都沒有合適驅動 來啟用 顯卡
但是我尝试通过 ubuntu高级选项 -recovery-mode 然后 resume 就成功进入了了。
1-2. 部份原因 可能是 因為你選了 -recovery-mode

2. 補充
2-1. nvidia 顯卡
product: NVIDIA Corporation [10DE:1C8D]
2-1-1. http://pci-ids.ucw.cz/v2.2/pci.ids
10DE NVIDIA Corporation
1c8d GP107M [GeForce GTX 1050 Mobile]
2-1-2. GeForce GTX 1050 Mobile 支援 Optimus 功能
https://zh.wikipedia.org/wiki/NVIDIA_Op ... 3%E5%8F%B0
NVIDIA Optimus
支援平台 ... GeForce 10 系列筆記型版
2-1-3. https://en.wikipedia.org/wiki/GeForce_1 ... _notebooks
GeForce 10 (10xx) series for notebooks
GeForce GTX 1050 (Notebook)
2-2. Intel 顯卡
product: Intel Corporation [8086:591B]
2-2-1. http://pci-ids.ucw.cz/v2.2/pci.ids
8086 Intel Corporation
591B 還沒有該 product ID
2-2-2. 表示 你的 Intel 顯卡型號 可能太新了
把下面指令 複製 貼進終端機 執行
sudo cat /usr/share/misc/pci.ids | grep -i 591B
把指令及結果全部直接 選取/複製/貼上來
2-2-3. 請參閱 筆電規格說明書 提供準確的 Intel 內建顯卡 詳細型號
2-2-4. 安裝 Ubuntu 時 預裝開源驅動 i915

3. 雙顯卡 nvidia + intel
預設 需要安裝 nvidia 閉源驅動 # 安裝 Ubuntu 時 預裝 開源驅動
3-1. Ubuntu 官方套件庫 提供閉源驅動 nvidia 最新版驅動 nvidia-384 (版本 384.111-0ubuntu0.16.04.1)
https://packages.ubuntu.com/search?suit ... chon=names
3-1-1. GeForce GTX 1050 在 nvidia-384 (版本 384.111)支援名單內
http://www.nvidia.com/Download/driverRe ... 8737/en-us
Version: 384.111
Supported products
GeForce 10 Series (Notebooks):
GeForce GTX 1050
3-1-2. 如何安裝 nvidia-384
https://help.ubuntu.com/community/Binar ... wto/Nvidia
3-1-3. 進一步參閱
http://us.download.nvidia.com/XFree86/L ... index.html
当时我通过网上说的更改grub的方法:删掉quiet splash 加入 acpi_osi=linux nomodeset 后成功安装。
4. 當你成功安裝 Ubuntu 以後 重新開機 最好也是 在 grub 開機選單 Linux 那一欄 删掉 quiet splash 加入 acpi_osi=linux nomodeset
目的 幫助你 成功登入 Ubuntu 桌面 以利安裝 顯卡閉源驅動 nvidia-384
成功安裝 顯卡閉源驅動 nvidia-384 以後 重開機 就不必 再 删掉 quiet splash 加入 acpi_osi=linux nomodeset
4-1. 詳細參閱
https://wiki.ubuntu.com/Kernel/KernelBo ... or_Testing
Temporarily Add a Kernel Boot Parameter for Testing
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

Re: ubuntu16.04与win10双系统,无法正常启动

#5

帖子 scallop » 2018-03-24 16:10

1-2. 部份原因 可能是 因為你選了 -recovery-mode
如果我不这样做,我该如何进入?
1-1. 雙顯卡 Intel 及 nvidia 顯卡 都沒有合適驅動 來啟用 顯卡
您的意思是我应该从这里(见附件)安装显卡驱动,然后正常进入?


我发还没有收到您刚刚的回复.
附件
2018-03-24 16-03-01屏幕截图.png
上次由 scallop 在 2018-03-24 16:37,总共编辑 1 次。
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

Re: ubuntu16.04与win10双系统,无法正常启动

#6

帖子 scallop » 2018-03-24 16:20

sudo cat /usr/share/misc/pci.ids | grep -i 591B
没有任何信息
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04与win10双系统,无法正常启动

#7

帖子 poloshiao » 2018-03-24 16:42

没有任何信息
1. 先處理 nvidia-384
如果我不这样做,我该如何进入?
2. 參見
http://forum.ubuntu.com.cn/viewtopic.ph ... 0#p3202840
4. 當你成功安裝 Ubuntu 以後 重新開機 最好也是 在 grub 開機選單 Linux 那一欄 ... 略
您的意思是我应该从这里(见附件)安装显卡驱动,然后正常进入?
3. 參見
http://forum.ubuntu.com.cn/viewtopic.ph ... 0#p3202840
3-1-2. 如何安裝 nvidia-384

4. 補充
從 額外驅動安裝畫面 比較容易失敗 造成死機
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

Re: ubuntu16.04与win10双系统,无法正常启动

#8

帖子 scallop » 2018-03-24 18:42

poloshiao, 我按照你给的链接
3-1-2. 如何安裝 nvidia-384
https://help.ubuntu.com/community/Binar ... wto/Nvidia
所说的安装了nividia,但是出现了:【登录界面---输入密码---闪过---回到登录界面】 这种情况。

而且即便我加入了 acpi_osi=linux nomodeset 仍然不能解决问题。
请问我应该怎么办呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04与win10双系统,无法正常启动

#9

帖子 poloshiao » 2018-03-24 20:34

所说的安装了nividia,但是出现了:【登录界面---输入密码---闪过---回到登录界面】 这种情况。
而且即便我加入了 acpi_osi=linux nomodeset 仍然不能解决问题。
请问我应该怎么办呢?
1. 不要加入 acpi_osi=linux nomodeset
重開機
在上述登入畫面
按下 ctrl + alt + F2
登入 tty2
1-1. sudo lshw -numeric -class video
看看
configuration: latency=0
這一行 有沒有改變
1-2. lsmod | grep nouveau
有沒有結果
1-3. lsmod | grep nvidia
有沒有結果
scallop
帖子: 6
注册时间: 2018-03-24 10:51
系统: ubuntu 16.04

Re: ubuntu16.04与win10双系统,无法正常启动

#10

帖子 scallop » 2018-03-24 21:24

我这次又重启了一遍,发现可以正常进入了。谢谢您poloshiao
回复