ubuntu17.10不能引导windows10

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
ITsnail
帖子: 3
注册时间: 2018-06-19 11:36

ubuntu17.10不能引导windows10

#1

帖子 ITsnail » 2018-06-19 12:08

像是windows引导损坏但是grub页面有windows的启动项,选它的话就会重启循环回grub页面,可以修复吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu17.10不能引导windows10

#2

帖子 poloshiao » 2018-06-19 12:31

ubuntu17.10
1. 登入 Ubuntu 17.10 桌面
把下面指令 複製 貼進終端機 執行
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/*
1-5. /etc/grub.d/30_os-prober
把指令及結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
eleanor
帖子: 4
注册时间: 2018-08-08 21:39
系统: ubuntu

Re: ubuntu17.10不能引导windows10

#3

帖子 eleanor » 2018-08-08 21:44

ubuntu@ubuntu:~$ sudo efibootmgr -v
EFI variables are not supported on this system.
ubuntu@ubuntu:~$ sudo parted -l print
Model: ATA SAMSUNG MZ7LN512 (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, hidden, esp
3 290MB 271GB 271GB ntfs Basic data partition msftdata
2 271GB 274GB 2248MB linux-swap(v1)
5 274GB 370GB 96.2GB ext4
4 370GB 370GB 200MB ext4
6 370GB 370GB 32.5MB bios_grub
7 370GB 512GB 142GB ext4


Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdb: 15.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 4129kB 15.5GB 15.5GB primary fat32 boot, lba


ubuntu@ubuntu:~$ sudo ls -al /dev/disk/by-uuid/*
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/0616566616565731 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/7769c4b2-0c8f-47b3-a559-0080b36fe86f -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/D653-45C6 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/E89E-BACA -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/c41f8967-3fd8-45b6-94d9-37f9a947ae33 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/d323fc3a-7e76-4a60-8482-ac243f628e3b -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-uuid/e2749e0a-d85d-4289-b51f-c0bde5551b42 -> ../../sda7
ubuntu@ubuntu:~$ sudo ls -al /dev/disk/by-partuuid/*
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/1f720ed0-e3b7-4747-9550-dda6e5adde55 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/35d80a73-78b2-4405-bc0d-ca404478ad6b -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/80a24c80-42b8-4ab6-a709-d060955010b3 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/911b3e24-d9f7-4556-b7c2-eab4f642fd4d -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/acbf4c4f-f557-4b84-9dbd-4e20f34d3c0f -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/af99f72d-91a6-43a2-8fc5-fed9fe52b97f -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/e84b2f0f-01 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 8 13:29 /dev/disk/by-partuuid/e8c39af9-8f6b-4edd-bfd5-202d06cd17ec -> ../../sda1
ubuntu@ubuntu:~$ /etc/grub.d/30_os-prober
/etc/grub.d/30_os-prober: 28: .: Can't open /grub-mkconfig_lib
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu17.10不能引导windows10

#4

帖子 poloshiao » 2018-08-08 22:05

1 1049kB 274MB 273MB fat32 EFI system partition boot, hidden, esp
Disk /dev/sda: 512GB
Partition Table: gpt
1. 猜測 你的 Windows 10 是在 UEFI 開機模式下 安裝
sudo efibootmgr -v
EFI variables are not supported on this system.
6 370GB 370GB 32.5MB bios_grub
2. 但是 你的 Ubuntu 17.10 是在 Legacy Bios 開機模式 安裝 / 開機 ?

3. 以上 請先確認一下
eleanor
帖子: 4
注册时间: 2018-08-08 21:39
系统: ubuntu

Re: ubuntu17.10不能引导windows10

#5

帖子 eleanor » 2018-08-09 9:50

谢谢版主 我是看到有同样的问题 只不过我是安装的18.04LTS版本的 现在的问题是我的电脑只有插u盘才能进ubuntu系统 并且不插u盘的话原来的Windows10系统也进不去了 不知道问题出在哪 然后再次安装ubuntu时也提醒电脑已经有Windows10和ubuntu系统了 我自己重新装过几次ubuntu 但一直未解决问题
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu17.10不能引导windows10

#6

帖子 poloshiao » 2018-08-09 11:05

现在的问题是我的电脑只有插u盘才能进ubuntu系统
1. 登入 Ubuntu 桌面
把下面指令 複製 貼進終端機 執行
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/*
1-5. sudo cat /etc/fstab
把指令及結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
eleanor
帖子: 4
注册时间: 2018-08-08 21:39
系统: ubuntu

Re: ubuntu17.10不能引导windows10

#7

帖子 eleanor » 2018-08-09 11:46

上面的那些就是我执行这些指令得到的结果 昨天发的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu17.10不能引导windows10

#8

帖子 poloshiao » 2018-08-09 14:54

#4
1. 猜測 你的 Windows 10 是在 UEFI 開機模式下 安裝
2. 但是 你的 Ubuntu 17.10 是在 Legacy Bios 開機模式 安裝 / 開機 ?
3. 以上 請先確認一下
eleanor
帖子: 4
注册时间: 2018-08-08 21:39
系统: ubuntu

Re: ubuntu17.10不能引导windows10

#9

帖子 eleanor » 2018-08-09 17:05

应该是的 您看是什么情况能解决呢
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu17.10不能引导windows10

#10

帖子 poloshiao » 2018-08-09 20:06

sudo parted -l print
Model: ATA SAMSUNG MZ7LN512 (scsi)
Disk /dev/sda: 512GB
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, hidden, esp
3 290MB 271GB 271GB ntfs Basic data partition msftdata
2 271GB 274GB 2248MB linux-swap(v1)
5 274GB 370GB 96.2GB ext4
4 370GB 370GB 200MB ext4
6 370GB 370GB 32.5MB bios_grub
7 370GB 512GB 142GB ext4
1. 如果你的電腦 已經在 UEFI 開機模式 預裝 Windows 10
那麼 Ubuntu 最好也是在 UEFI 開機模式 安裝
1-1. 先把 UEFI 的 Secure Boot 關閉
1-2. 安裝時 選擇最下方 something else
1-2-1. 掛載 /dev/sda1 到 /boot/efi 格式 fat32 或 esp
1-2-2. 掛載 /dev/sda5 到 / 格式 ext4 一定要勾選格式化
1-2-3. 如果你的內存 RAM 大於 2GB swap 可以暫時不掛載 等以後有需要時再貼文
1-2-4. 其它掛載項目 不需要 等以後有需要時再貼文
1-2-5. 安裝完畢 重新開機 進 UEFI 選擇 Ubuntu 的 grubx64.efi 開機選項 開機

2. 參閱
https://help.ubuntu.com/community/UEFI# ... _UEFI_mode
Case when Ubuntu must be installed in UEFI mode
Having a PC with UEFI firmware does not mean that you need to install Ubuntu in UEFI mode. What is important is below:
if the other systems (Windows Vista/7/8, GNU/Linux...) of your computer are installed in UEFI mode, then you must install Ubuntu in UEFI mode too.
回复