windows10和linuxmint双系统,如何使Windows10默认启动?

Ubuntu各种衍生版本
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

windows10和linuxmint双系统,如何使Windows10默认启动?

#1

帖子 worldcup » 2016-08-02 17:01

开机默认linuxmint为默认启动项,如何设置windows10为默认启动项?

刚刚接触linux,请高手详细讲解方法,谢谢!
402139492696131328.jpg
启动时的首选项为linuxmint,不是windows10,如何才能设置成windows10默认启动项?谢谢!
启动时的首选项为linuxmint,不是windows10,如何才能设置成windows10默认启动项?谢谢!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#2

帖子 poloshiao » 2016-08-02 17:11

把下面指令 複製 貼進終端機 執行
sudo cat /boot/grub/grub.cfg | grep Windows
把結果全部直接 選取/複製/貼上來
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#3

帖子 worldcup » 2016-08-02 17:20

把下面指令 複製 貼進終端機 執行
sudo cat /boot/grub/grub.cfg | grep Windows
把結果全部直接 選取/複製/貼上來
-------------------------------
请问是要进入到linuxmint系统中并打开终端,输入上面的指令就可以了吗?

谢谢!如何打开linuxmint中的终端?

新手,越详细越好!谢谢!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#4

帖子 poloshiao » 2016-08-02 17:46

请问是要进入到linuxmint系统中并打开终端,输入上面的指令就可以了吗?
1. 盡量使用複製貼上 避免新手打錯字
如何打开linuxmint中的终端?
2. you can find it in the menu or by right-clicking in the desktop.
2-1. 參閱
https://community.linuxmint.com/tutorial/view/100
The 5-Minute Essential Shell Tutorial
2-2. 提問問題 請記得先說明作業系統及版本
因為不同版本 給你的建議 可能不同
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#5

帖子 worldcup » 2016-08-02 17:50

刚才尝试了您的方法,但是不成功,为什么呢?谢谢!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#6

帖子 poloshiao » 2016-08-02 18:04

刚才尝试了您的方法,但是不成功,
1. 一句話 不成功 無法猜想是什麼狀況 不知如何幫你

2. 請提供 Linux Mint 版本
Linux Mint 10 ?
cinnamon ?
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#7

帖子 worldcup » 2016-08-02 18:09

版本号是这个:linuxmint-18-cinnamon-32bit
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#8

帖子 vickycq » 2016-08-02 18:09

worldcup 写了:刚才尝试了您的方法,但是不成功,为什么呢?谢谢!
需要按2楼的指示提供信息,才能有针对性地提出方案。

简单解决 不考虑以后可能出现的条目顺序变化:
修改 /etc/default/grub 中 GRUB_DEFAULT 的值
数一数 Windows 10 是菜单中第几项?第6项。
则修改 GRUB_DEFAULT=5
保存后执行 sudo update-grub

问题在于 若以后启动项变动,Windows10 不再是第6项,就会出现问题。因此最好采取2楼方法先提供信息,再请 @poloshiao 给出方案
上次由 vickycq 在 2016-08-02 18:13,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#9

帖子 worldcup » 2016-08-02 18:11

我不知道如何在linuxmint系统中截图,不然可以清晰的看到问题所在。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#10

帖子 vickycq » 2016-08-02 18:14

worldcup 写了:我不知道如何在linuxmint系统中截图,不然可以清晰的看到问题所在。
可以直接复制终端中文字并粘贴上来,更方便阅读。
也可按 PrtSc 截图。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#11

帖子 worldcup » 2016-08-02 18:35

john@john-OptiPlex-3020 ~ $ sudo cat /boot/grub/grub.cfg | grep Windows
[sudo] password for john:
Sorry, try again.
[sudo] password for john:
menuentry 'Windows Recovery Environment (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-9E2E2D4F2E2D222F' {
menuentry 'Windows 10 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-00002E9D00002114' {
john@john-OptiPlex-3020 ~ $



this is the output of terminal
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#12

帖子 poloshiao » 2016-08-02 19:19

sudo cat /boot/grub/grub.cfg | grep Windows
menuentry 'Windows 10 (loader) (on /dev/sda2)'
1. /etc/default/grub
GRUB_DEFAULT=0
1-1. 在 這一行 前面加個 #
# GRUB_DEFAULT=0
1-2. 並且 在下方 增加一行空白
1-3. 複製這一行 (避免打錯字)
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
貼在剛剛增加的空白行
1-4. 儲存

2. 產生新的開機選單 /boot/grub/grub.cfg
sudo update-grub

3. 重新開機
出現 Grub 2 開機選單
注意看看
代表預設開機選項的亮光條是否停在 Windows 10 (loader) (on /dev/sda2)
如果是 就對了
3-1. 如果要改回預設 Ubuntu 為預設開機選項
依照上面方法 把
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
改回
GRUB_DEFAULT=0
问题在于 若以后启动项变动,Windows10 不再是第6项,就会出现问题。
3-2. 採用
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
就不會因為 Ubuntu 安裝新的 Linux kernel 或 其它原因 而變更
預設開機選項一直是 Windows 10 (loader) (on /dev/sda2)

4. 如果是 UEFI 開機 上述指令 需要微調

5. 參閱
http://mcs.une.edu.au/doc/grub2-tools/g ... figuration
GRUB_DEFAULT’
For example, if you have:
5-1. 補充
GNU GRUB Manual 2.02~beta2
對於
GRUB_DEFAULT="......"
括號內的內容有新的寫法 有興趣可以試試
5-2.GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
是舊的寫法 但是仍然有效
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#13

帖子 worldcup » 2016-08-03 8:49

3-2. 採用
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
就不會因為 Ubuntu 安裝新的 Linux kernel 或 其它原因 而變更
預設開機選項一直是 Windows 10 (loader) (on /dev/sda2)
这个是在开机项目中更改吗?
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#14

帖子 worldcup » 2016-08-03 8:53

1. /etc/default/grub
GRUB_DEFAULT=0
1-1. 在 這一行 前面加個 #
# GRUB_DEFAULT=0
1-2. 並且 在下方 增加一行空白
1-3. 複製這一行 (避免打錯字)
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
貼在剛剛增加的空白行
1-4. 儲存

2. 產生新的開機選單 /boot/grub/grub.cfg
sudo update-grub

3. 重新開機
出現 Grub 2 開機選單
注意看看
代表預設開機選項的亮光條是否停在 Windows 10 (loader) (on /dev/sda2)
如果是 就對了
3-1. 如果要改回預設 Ubuntu 為預設開機選項
依照上面方法 把
GRUB_DEFAULT="Windows 10 (loader) (on /dev/sda2)"
改回
GRUB_DEFAULT=0
这个表示没有看懂,可以详细讲解下吗?谢谢!

/etc/default/grub
GRUB_DEFAULT=0

这些更改都是在终端更改吗?
worldcup
帖子: 25
注册时间: 2016-08-02 16:55
系统: windows10

Re: windows10和linuxmint双系统,如何使Windows10默认启动?

#15

帖子 worldcup » 2016-08-03 8:58

john@john-OptiPlex-3020 ~ $ /etc/default/grub
bash: /etc/default/grub: Permission denied
john@john-OptiPlex-3020 ~ $




why?
回复