I have Linux Mint 14.1 Nadia x64 and Windows 7 Ult---How do I Change Boot order?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GRUB_DEFAULT=saved The information in this section applies to GRUB 1.98 and later. The "saved" entry enables the "grub-reboot" and "grub-set-default" commands to set the default OS for future boots.
The default OS for future boots will not be set merely by selecting an OS when booting.
grub-set-default Sets the default boot entry until changed.
The format is sudo grub-set-default X, with X being the menu entry position (starting with 0 as the first entry) or the exact menu string.
Example: sudo grub-set-default 3
Example: sudo grub-set-default "Ubuntu, Linux 2.6.32-15-generic"
To obtain the existing menu entry choice number (starting from 0) or the menu entry "string", run:
grep menuentry /boot/grub/grub.cfg
grub-reboot This command sets the default boot entry for the next boot only. The format of the command is the same as for grub-set-default (see above).
set the default to the number that windows is in the list
I tried your suggestions and never could get to work. I took LinuxMint off and added PCLinuxOS kde 10-13 which allowed me to install kGrubEditor which I have used in the past.This allowed me to Boot Win7 as first option, Then PCLinuxOS AS 2nd Boot option.
Thank you for your help
Problem Solved, Thank You
Last edited by cowboy5709; 10-15-2013 at 07:35 PM.
You could have accomplished what you wanted with any system using Grub2 by opening a text editor and typing:
sudo gedit /etc/default/grub
That would have opened the grub file in a text editor and you would have seen at the top of the file this line:
Quote:
GRUB_DEFAULT=0
You would change the 0 to whatever number the entry for windows was, if it was third you would put a 2, fourth a 3 as Grub counts from zero. Save the change and run sudo update-grub and you're done.
Thank You for your reply. I will check out what you requested I do.
Quote:
Originally Posted by yancek
You could have accomplished what you wanted with any system using Grub2 by opening a text editor and typing:
sudo gedit /etc/default/grub
That would have opened the grub file in a text editor and you would have seen at the top of the file this line:
You would change the 0 to whatever number the entry for windows was, if it was third you would put a 2, fourth a 3 as Grub counts from zero. Save the change and run sudo update-grub and you're done.
As a PCLinux user myself for years, good choice.
Actually, everything wasn't as easy as I said. I had Linux Mint 14.1 Nadia installed when I wanted to change Boot Order. I decided to install Linux Mint 15 KDE instead. It installed all the way to the end, almost to the point of rebooting and then screen froze and wouldn't do anything (not even reboot). I shut computer off,restarted with No grub menu to boot to. Used "Boot Repair" disk and restarted and told it to repair Boot. It Did, and this allowed me to get back into Windows. I went to Distrowatch in windows and downloaded the newest Ubuntu and PCLinuxOS. Installed Ubuntu first (went well) but I did not like as well as Linux Mint 14.1. Went back to windows and used "MiniTool Partition Wizard Home Edition" to remove all of Ubuntu. Then I installed PCLinuxOS 10-13 and I am very happy with my choice.
I think most made a serious mistake by not offering "KGrubEditor" in the popular Distro's anymore. Those kinds of programs help users such as myself get acclimated to Linux. When you take away those tools, you are making it harder for the "Average person" to stay with Linux long enough to learn it and like it. You Drive many back to Windows. Give us those tools,then the Terminal interaction will come later.
Been back and forth to windows and Linux so many times I can't count. It makes many scared of Linux such as my wife. Linux should not be Scary, it should be FUN!!!!!!!
trick your mind to thinking it's fun, make a game out of it and try more, one of my favorite things looking back was all the distros I tried to find my likes
What I said was the command would work with Mint. Since you indicated you have installed PCLinuxOS over Mint, there is no Grub2 nor is there and /etc/default/grub file. If you boot a Mint CD, you would see it there. You could not edit it on a CD as it is a read-only system. My earlier post was for informational purposes, what you could have done when Mint was installed.
Grub has changed since I used to tweaked it a lot, use your file browser and look at /boot/grub/grub.cfg or 'cat /boot/grub/grub.cfg' this is probably where you need that edit (as root) then run:
After editing /etc/default/grub need to run sudo update-grub, for changes to take place. It isn't recommended to edit /boot/grub/grub.cfg, any changes to it will change back the next time update-grub is ran either by updates or manually.
hope 5709 did not keep : when running take a look in /etc/grub.d/ the README will open when clicked but right click and say open with text editor for the other files ? just for informative purposes
Last edited by jamison20000e; 10-16-2013 at 09:26 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.