在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#1

帖子 chenlose » 2017-12-25 18:17

本人电脑有两块硬盘,打算分别安装win和linux,按照教程安装好双系统后,在grub下选择ubuntu,按ENTER后进入,屏幕却卡在黑屏处(如下)
(无法添加图像,图像可见于我在知乎的提问:https://www.zhihu.com/question/264501126

教程:http://m.blog.csdn.net/qq_22812319/arti ... glemessage

(就是最后一步,和教程不一样)

备注:本人之前在两块硬盘上分别安装了win7和ubuntu16.04双系统,后来删了ubuntu(参考:https://jingyan.baidu.com/article/642c9 ... 6f768.html),并把win7升级到win10,再次安装就出现了所述问题。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#2

帖子 poloshiao » 2017-12-25 18:28

1. 使用同一版本 Ubuntu Live USB 開機
登入 試用桌面 把下面指令 複製 貼進終端機 執行
1-1. sudo efibootmgr -v
1-2. sudo parted -l print
1-3. sudo ls -al /dev/disk/by-uuid/*
1-4. sudo ls -al /dev/disk/by-partuuid/*
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀

2. 根據 1-2
請說明 / 掛載在哪個分割區
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#3

帖子 chenlose » 2017-12-25 18:52

poloshiao 写了:1. 使用同一版本 Ubuntu Live USB 開機
登入 試用桌面 把下面指令 複製 貼進終端機 執行
1-1. sudo efibootmgr -v
1-2. sudo parted -l print
1-3. sudo ls -al /dev/disk/by-uuid/*
1-4. sudo ls -al /dev/disk/by-partuuid/*
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀

2. 根據 1-2
請說明 / 掛載在哪個分割區

第一次用这个论坛,竟然没找到回“回复”选项,我用U盘试了一下,选择try without installation,结果花屏了
1843595541.jpg
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#4

帖子 poloshiao » 2017-12-25 20:06

第一次用这个论坛,竟然没找到回“回复”选项
1. 你是指這個發表回覆按鈕 ?
附件
發表回覆 按鈕
發表回覆 按鈕
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#5

帖子 poloshiao » 2017-12-25 20:14

我用U盘试了一下,选择try without installation,结果花屏了
1. 這個花屏 跟 本論壇 無關
跟你電腦的顯卡硬件還沒安裝合適的驅動有關

2. 幾乎安裝大部份的 Linux 作業系統都可能碰到
通常是在 选择 try without installation 前 按下 F6
可以加上合適的核心參數就可以解決
合適的核心參數需要根據你的顯卡品牌與型號
等安裝好 Ubuntu 及 合適的顯卡驅動後 就不必再加上合適的核心參數
2-1. 意思是 請提供 你電腦的顯卡品牌與型號
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#6

帖子 chenlose » 2017-12-25 22:06

poloshiao 写了:1. 使用同一版本 Ubuntu Live USB 開機
登入 試用桌面 把下面指令 複製 貼進終端機 執行
1-1. sudo efibootmgr -v
1-2. sudo parted -l print
1-3. sudo ls -al /dev/disk/by-uuid/*
1-4. sudo ls -al /dev/disk/by-partuuid/*
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀

2. 根據 1-2
請說明 / 掛載在哪個分割區
我现在还是根据那个硬盘安装教程进去了ubuntu的试用版,输入上述命令的结果我复制如下:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ sudo efibootmgr -v
efibootmgr: EFI variables are not supported on this system.
ubuntu@ubuntu:~$ sudo parted -l print
Model: ATA WDC WD10EZEX-21M (scsi)
磁盘 /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
Disk Flags:

数字 开始: End 大小 类型 文件系统 标志
1 32.3kB 107GB 107GB primary ntfs 启动
2 107GB 1000GB 893GB extended lba
5 107GB 406GB 299GB logical ntfs
6 406GB 703GB 297GB logical ntfs
7 703GB 1000GB 297GB logical ntfs


Model: ATA WDC WD10EZEX-21M (scsi)
磁盘 /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
Disk Flags:

数字 开始: End 大小 类型 文件系统 标志
1 1049kB 300GB 300GB primary ext4
2 300GB 1000GB 700GB extended
5 300GB 600GB 300GB logical ext4
6 600GB 800GB 200GB logical ext4
7 800GB 820GB 20.0GB logical linux-swap(v1)
8 820GB 1000GB 180GB logical ext4


Model: General UDisk (scsi)
磁盘 /dev/sdc: 8054MB
Sector size (logical/physical): 512B/512B
分区表:msdos
Disk Flags:

数字 开始: End 大小 类型 文件系统 标志
4 131kB 8054MB 8054MB primary fat32 启动


ubuntu@ubuntu:~$ sudo ls -al /dev/disk/by-uuid/*
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/0003B540000E3254 -> ../../sda5
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/000A2146000AFFFF -> ../../sda6
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/000AFD74000B23F9 -> ../../sda7
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/012da417-3eeb-4ed7-80f8-f774d3b03df7 -> ../../sdb8
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/14157e1e-18a4-441a-ac4c-6d43a4c31492 -> ../../sdb5
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/200f3bf1-51ad-4241-9682-81bd078b5184 -> ../../sdb1
lrwxrwxrwx 1 root root 11 12月 25 2017 /dev/disk/by-uuid/2017-08-01-11-51-33-00 -> ../../loop0
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/7E8476A984766415 -> ../../sda1
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/B4FE-5315 -> ../../sdc4
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/c6c76cf4-2bdc-4d8d-82e1-e252e510f955 -> ../../sdb7
lrwxrwxrwx 1 root root 10 12月 25 13:54 /dev/disk/by-uuid/d9eb17ac-2e57-40f5-8a5b-82efabb8bbb5 -> ../../sdb6
ubuntu@ubuntu:~$ sudo ls -al /dev/disk/by-partuuid/*
ls: 无法访问'/dev/disk/by-partuuid/*': 没有那个文件或目录
ubuntu@ubuntu:~$
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#7

帖子 poloshiao » 2017-12-26 12:38

sudo efibootmgr -v
efibootmgr: EFI variables are not supported on this system.
磁盘 /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
磁盘 /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
磁盘 /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
1. 表示 你是在 Legacy Bios (不是 UEFI) 開機 啟動 試用桌面
我现在还是根据那个硬盘安装教程进去了ubuntu的试用版
2-1. 意思是 請提供 你電腦的顯卡品牌與型號
2. 登入試用桌面 把下面指令 複製 貼進終端機 執行
2-1. uname -r
2-2. sudo lspci -knn | grep -A2 -i "display\|vga"
2-3. sudo lshw -numeric -class video
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
2. 根據 1-2
請說明 / 掛載在哪個分割區
3. 請說明 / 掛載在哪個分割區
3-1. 目的
要教你如何從試用桌面 進去 你已安裝的 Ubuntu 系統 尋找/編輯 需要的資訊
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#8

帖子 chenlose » 2017-12-26 21:05

poloshiao 写了:
sudo efibootmgr -v
efibootmgr: EFI variables are not supported on this system.
磁盘 /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
磁盘 /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
磁盘 /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
分区表:msdos
1. 表示 你是在 Legacy Bios (不是 UEFI) 開機 啟動 試用桌面
我现在还是根据那个硬盘安装教程进去了ubuntu的试用版
2-1. 意思是 請提供 你電腦的顯卡品牌與型號
2. 登入試用桌面 把下面指令 複製 貼進終端機 執行
2-1. uname -r
2-2. sudo lspci -knn | grep -A2 -i "display\|vga"
2-3. sudo lshw -numeric -class video
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
2. 根據 1-2
請說明 / 掛載在哪個分割區
3. 請說明 / 掛載在哪個分割區
3-1. 目的
要教你如何從試用桌面 進去 你已安裝的 Ubuntu 系統 尋找/編輯 需要的資訊
根据您的提示,现得到如下结果:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ uname -r
4.10.0-28-generic
ubuntu@ubuntu:~$ sudo lspci -knn | grep -A2 -i "display\|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [1458:d000]
Kernel modules: i915
--
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)
Subsystem: Gigabyte Technology Co., Ltd GM204 [GeForce GTX 970] [1458:367a]
Kernel modules: nvidiafb, nouveau
ubuntu@ubuntu:~$ sudo lshw -numeric -class video
*-display UNCLAIMED
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:412]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)
*-display UNCLAIMED
description: VGA compatible controller
product: GM204 [GeForce GTX 970] [10DE:13C2]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:04:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
ubuntu@ubuntu:~$
至于根文件/ 我记得是ext4系统的数字1,数字2 extended我也不知道是什么,5是/home,6是/boot,8可能是/usr
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#9

帖子 poloshiao » 2017-12-26 23:32

*-display UNCLAIMED
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:412]
configuration: latency=0
*-display UNCLAIMED
description: VGA compatible controller
product: GM204 [GeForce GTX 970] [10DE:13C2]
configuration: latency=0
1. 雙顯卡
1-1. 但是 兩個顯卡驅動 可能都沒有合適啟動

2. 建議
2-1. 參閱你的主板或電腦使用說明書
是否支援雙顯卡 ?
2-2. 找找看 你的 Bios 有沒有
2-2-1. 關閉 內建顯卡
2-2-2. 關閉 獨顯
的選項

3. 參閱
https://www.geforce.com.tw/hardware/des ... ifications
GeForce GTX 970
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#10

帖子 chenlose » 2017-12-27 16:37

poloshiao 写了:
*-display UNCLAIMED
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:412]
configuration: latency=0
*-display UNCLAIMED
description: VGA compatible controller
product: GM204 [GeForce GTX 970] [10DE:13C2]
configuration: latency=0
1. 雙顯卡
1-1. 但是 兩個顯卡驅動 可能都沒有合適啟動

2. 建議
2-1. 參閱你的主板或電腦使用說明書
是否支援雙顯卡 ?
2-2. 找找看 你的 Bios 有沒有
2-2-1. 關閉 內建顯卡
2-2-2. 關閉 獨顯
的選項

3. 參閱
https://www.geforce.com.tw/hardware/des ... ifications
GeForce GTX 970
您好,回到我最初的问题,只是显卡的问题吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#11

帖子 poloshiao » 2017-12-27 17:12

回到我最初的问题,只是显卡的问题吗?
目前還無足夠資訊來判斷
但是 安裝合適顯卡驅動 通常是最需要先熟悉的一步

說明
安裝 Ubuntu 時 通常預裝 開源驅動 跟 試用桌面 一樣
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#12

帖子 chenlose » 2017-12-27 18:24

poloshiao 写了:
回到我最初的问题,只是显卡的问题吗?
目前還無足夠資訊來判斷
但是 安裝合適顯卡驅動 通常是最需要先熟悉的一步

說明
安裝 Ubuntu 時 通常預裝 開源驅動 跟 試用桌面 一樣
我之前安装ubuntu16.04.2并没有出现问题,ubuntu安装的时候应该会安装合适的显卡驱动吧,我的主板是支持双显卡的,之前在win7下切换使用都没问题
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#13

帖子 chenlose » 2017-12-27 20:39

poloshiao 写了:
回到我最初的问题,只是显卡的问题吗?
目前還無足夠資訊來判斷
但是 安裝合適顯卡驅動 通常是最需要先熟悉的一步

說明
安裝 Ubuntu 時 通常預裝 開源驅動 跟 試用桌面 一樣
谢谢大神的热情回复,确实是显卡原因,我通过添加nomodeset就进去了,现在已经没问题了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#14

帖子 poloshiao » 2017-12-27 21:03

我通过添加nomodeset就进去了
1. 這只是暫時解決方案
1-1. 如果安裝好合適的驅動 (開源驅動或閉源驅動) 後
就不必再加 nomodeset

2. GeForce GTX 970 在新推出的 開源驅動 Vulkan 支援名單中 你可以試試
2-1. https://developer.nvidia.com/vulkan-driver
Vulkan Driver Support
Vulkan Driver Release Notes
GeForce 900 Series: GeForce GTX 960, GeForce GTX 970, GeForce GTX 980, GeForce GTX 980 Ti, GeForce GTX Titan X
2-2. 在 Ubuntu 安裝
https://askubuntu.com/questions/774131/ ... -for-16-04
Installing nvidia vulkan drivers for 16.04

3. 本論壇網友還未曾分享安裝使用 Vulkan 開源驅動 的經驗
歡迎你分享成功/失敗使用經驗
chenlose
帖子: 9
注册时间: 2017-12-25 18:07
系统: windows10

Re: 在windows10下安装ubuntu16.04.3后通过grub2无法进入ubuntu的问题?

#15

帖子 chenlose » 2017-12-27 21:21

poloshiao 写了:
我通过添加nomodeset就进去了
1. 這只是暫時解決方案
1-1. 如果安裝好合適的驅動 (開源驅動或閉源驅動) 後
就不必再加 nomodeset

2. GeForce GTX 970 在新推出的 開源驅動 Vulkan 支援名單中 你可以試試
2-1. https://developer.nvidia.com/vulkan-driver
Vulkan Driver Support
Vulkan Driver Release Notes
GeForce 900 Series: GeForce GTX 960, GeForce GTX 970, GeForce GTX 980, GeForce GTX 980 Ti, GeForce GTX Titan X
2-2. 下載
Linux
Download for Linux 32-bit
Download for Linux 64-bit

3. 本論壇網友還沒未曾分享安裝使用 Vulkan 開源驅動 的經驗
歡迎你分享成功/失敗使用經驗
非常感谢您热情的帮助,我已经完成了各种更新及升级,暂时没有问题了,如果再遇到问题我会再麻烦您,望到时不吝赐教
回复