LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have Linux Mint 14.1 Nadia x64 and Windows 7 Ult---How do I Change Boot order? (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-linux-mint-14-1-nadia-x64-and-windows-7-ult-how-do-i-change-boot-order-4175480556/)

cowboy5709 10-12-2013 06:26 PM

I have Linux Mint 14.1 Nadia x64 and Windows 7 Ult---How do I Change Boot order?
 
How do I Change Boot order? I want to boot Win7 first because my wife wants to be happy!!!

My Knowledge of Linux is very basic


Thank You :o

andrewthomas 10-12-2013 06:43 PM

Code:

gksu gedit /etc/default/grub &

Code:

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

https://help.ubuntu.com/community/Gr...iguring_GRUB_2

cowboy5709 10-15-2013 08:34 PM

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

yancek 10-15-2013 11:59 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.

As a PCLinux user myself for years, good choice.

cowboy5709 10-16-2013 07:51 AM

Thank You for your reply. I will check out what you requested I do.
 
Quote:

Originally Posted by yancek (Post 5046567)
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!!!!!!!

My Opinion

jamison20000e 10-16-2013 08:13 AM

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 :)

cowboy5709 10-16-2013 08:43 AM

sudo gedit /etc/default/grub
 
This is what I got after typing in terminal what you said:

sudo gedit /etc/default/grub

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

(gedit:8418): Gtk-WARNING **: Theme parsing error: <data>:5:10: Not using units is deprecated. Assuming 'px'.

(gedit:8418): Gtk-WARNING **: Theme parsing error: <data>:7:20: Not using units is deprecated. Assuming 'px'.

(gedit:8418): Gtk-WARNING **: Theme parsing error: <data>:7:22: Not using units is deprecated. Assuming 'px'.

(gedit:8418): Gtk-WARNING **: Theme parsing error: <data>:8:15: Not using units is deprecated. Assuming 'px'.

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

** (gedit:8418): WARNING **: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

jamison20000e 10-16-2013 08:50 AM

You can use the code tags button[#] when posting \ no smileys and we'll know whats what ;) e.g:
Code:

;)
Try:
Code:

cat /etc/default/grub
to see if it is there and read it then it's just a mater of editing it as root

cowboy5709 10-16-2013 09:28 AM

tried it
 
cat: /etc/default/grub: No such file or directory

yancek 10-16-2013 09:48 AM

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.

jamison20000e 10-16-2013 09:48 AM

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:
Code:

su or sudo
update-grub


jamison20000e 10-16-2013 09:53 AM

Edited the above :o

colorpurple21859 10-16-2013 10:19 AM

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.

jamison20000e 10-16-2013 10:22 AM

Quote:

Originally Posted by cowboy5709 (Post 5046831)
cat: /etc/default/grub: No such file or directory

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

rokytnji 10-16-2013 11:46 AM

Quote:

Theme parsing error:
change the theme and then

Code:

sudo gedit /etc/default/grub
is what I would do when faced with this error.


All times are GMT -5. The time now is 05:34 PM.