didn't have that problem. maybe you want to reinstall grub? if you have multiple drives, what likely happened was that you installed linux and grub boot loader to a separate drive, say /dev/sdb. but windows boot loader is located on /dev/sda. you have two choices, you can go to your bios and set sdb as your 1st boot drive (instead of sda), this way, grub will manage the boot menu. otherwise, you can reinstall grub to /dev/sda in order to make sure it loads by default.
you must have installed grub on the Linux partition (say, /dev/sda5) instead of the partition with mbr (/dev/sda). you can fix it by reinstalling grub to /dev/sda. you can do this by (use sudo fdisk -l to find out which one is your boot drive) sudo grub-install /dev/XXX sudo update-grub or using the live usb http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd if your windows partition is missing from grub menu, you can repair it by sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair you can always fix it using a live usb.
sudo nano /etc/default/grub change GRUB_DEFAULT to your desired OS id. then sudo update-grub alternatively, you can use grub-customizer
【在 l*********n 的大作中提到】 : 如何调整到默认windows而不是ubuntu
H*F
8 楼
thanks.这是我的根据sudo fdisk -l的结果。windows boot manager在sdb1,然后应该用 哪个命令? Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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 Disklabel type: gpt Disk identifier: EE3E2143-9DC0-458E-80D0-E4521B111B29 Device Start End Sectors Size Type /dev/sdb1 2048 411647 409600 200M EFI System /dev/sdb2 411648 673791 262144 128M Microsoft reserved /dev/sdb3 673792 494908817 494235026 235.7G Microsoft basic data /dev/sdb4 494909440 904230911 409321472 195.2G Linux filesystem /dev/sdb5 904230912 937701375 33470464 16G Linux swap
instead
【在 F***Q 的大作中提到】 : : sudo nano /etc/default/grub : change GRUB_DEFAULT to your desired OS id. then : sudo update-grub : alternatively, you can use grub-customizer
H*F
9 楼
最后改了bios设置,可以直接进入grub界面了
thanks.这是我的根据sudo fdisk -l的结果。windows boot manager在sdb1,然后应该用 哪个命令? Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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 Disklabel type: gpt Disk identifier: EE3E2143-9DC0-458E-80D0-E4521B111B29 Device Start End Sectors Size Type /dev/sdb1 2048 411647 409600 200M EFI System /dev/sdb2 411648 673791 262144 128M Microsoft reserved /dev/sdb3 673792 494908817 494235026 235.7G Microsoft basic data /dev/sdb4 494909440 904230911 409321472 195.2G Linux filesystem /dev/sdb5 904230912 937701375 33470464 16G Linux swap instead