每當我啟動系統時,Linux 都會直接啟動。如果我按shift,GRUB 將僅顯示 Linux,而不顯示 Windows。這是fdisk
和的結果update-grub
。我想我安裝Linux的方式是錯的。
$ fdisk
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
$ update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img-3.19.0-32-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
No volume groups found
done
答案1
首先我嘗試使用sudo os-prober
andsudo update-grub
它無法辨識我的窗戶。
最後我按照以下步驟解決了這個問題啟動修復
安裝引導修復
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
按下“建議修復”並按照建議在終端機中輸入一些命令。
我認為我的 Grub 由於關機錯誤而無法識別 Windows,它解決了問題。
我希望這對你有幫助。