修改Ubuntu12.04和Windows双系统默认启动系统
来源:互联网 发布:域名注册要多少钱 编辑:程序博客网 时间:2024/04/28 05:16
http://www.erikrosado.com/2012/07/how-to-change-default-boot-order-in-linux-based-ubuntu-12-04-lts/
Note: This article is based on Ubuntu 12.04 Precise Pangolin LTS version. However it should work fine in all versions using GRUB2.
Well a lot many of us have a dual booting system setup with one operating system as Ubuntu and the other being Windows 7 in most cases or any other. However the problem Ubuntu beginners face is – getting used to it. The geeky linux culture is a bit of a daunting task to get used to, but then again, once used to it, people never turn back on open source.
How many times have you wanted to boot into Windows but forgot to select Windows in the boot menu or may be (in rare cases) ran out of time before you did that. Believe me, i’m one of such dreamy busy guys. After repeatedly booting into Ubuntu and restarting my system again only to get back to Windows, I was done. I set my mind, opened up the legendary Google Search page and typed ‘how to change boot order in ubuntu’. That’s it..! It was a piece of cake. Read on to know how i did it.
To change the default boot operating system, we have to first know its position. To know this, on your boot screen start counting from 0. That is, the first entry is numbered 0 and the last entry, Windows 7 in my case, is numbered 4【我的是5】. We will call this the boot-number.
First things first. Let me make you people clear that there are many small programs that do this in a jiffy. But what’s the fun in running applications in linux systems..? So lets get a bit more geeky and open up your ubuntu terminal by pressing Ctrl+T on your keyboard.
The file that needs our attention now is the ‘grub’ (GRUB: Grand Unified Bootloader) located in ‘/etc/default’. Before we make any changes to this file, lets take a backup of it. To do this, in the terminal, type the following command and hit enter.
sudo cp /etc/default/grub /etc/default/grub.bak
It may ask for the account password. And the password won’t be visible when typed (as you can see in the above image). Just type the password and hit enter. ’cp’ is a command to copy files through terminal.
That ends the backup thing. Now lets complete our mission. In the terminal, type and execute
gksu gedit /etc/default/grub
This opens up the grub file in which the changes are to be made.
Now change boot-number in ‘GRUB_DEFAULT’ field (highlighted in the image below) from 0 to 4【我的是5.可以数出来的,从上到下0开始数,在第几个就是几】, so that Windows 7 becomes the default operating system to boot into.
Now save the file and come back to the terminal.
sudo update-grub
That’s it! Piece of cake isn’t it?
In case something goes wrong, replace the edited file with the backed up file by executing
sudo cp /etc/default/grub.bak /etc/default/grub
Nothing went wrong in my case though
- 修改Ubuntu12.04和Windows双系统默认启动系统
- ubuntu12.04和windows双系统启动顺序修改方法
- Windows和linux双系统——修改默认启动顺序
- Windows和Linux双系统修改默认启动项、超时时间
- Linux和windows双系统修改开机默认启动项
- 修改Ubuntu和XP双系统默认启动系统
- 修改Ubuntu和WIN7双系统的默认启动系统
- XP和Linux双系统如何修改默认启动的系统
- 修改 Ubuntu 和 WIN7 双系统的默认启动系统
- 修改Ubuntu和WIN7双系统的默认启动系统
- Win7和Ubuntu14.04.02双系统下,默认启动系统修改
- linux和windows双系统设置默认启动系统
- Ubuntu16.04与Windows双系统修改默认开机启动顺序
- ubuntu/windows双系统默认启动系统设置
- 如何在安装了双系统的机器上修改默认启动系统(Linux,Windows)
- Ubuntu12.04和XP双系统 grub2 默认启动项的更改
- ubuntu12.04修改开机默认启动项
- ubuntu13.04和windows双系统启动顺序的修改
- IE浏览器JSON不兼容问题及浏览器版本问题解决
- Spring Security 3.x 完整入门教程
- Nginx常用的 URL 重写方法
- 【Alarm】Android中alarm的使用
- javagames Java实现网页截图技术 博客 收藏 如何实现 java
- 修改Ubuntu12.04和Windows双系统默认启动系统
- Cocos2dx tolua ++ 创建项目
- mapreduce程序中读取文件过程详解
- hibernate save 后实体对象不会注销
- maven tomcat eclipse
- 微信公众平台开发(八) 自定义菜单功能开发
- oracle取得表中总记录数最快的方法
- Oracle分析函数OVER的用法
- 各地区2.4G/5G信道一览表