Boot order in Ubuntu 10 and Win 7
Hi
* I have a laptop with win7 and ubuntu 10 on it. After installing Ubuntu 10 the default boot option became Ubuntu rather than Windows. * Is there an easy way to change the default boot option back to Win7 ? * Olly -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
Oliver Marshall wrote:
> I have a laptop with win7 and ubuntu 10 on it. After installing > Ubuntu 10 the default boot option became Ubuntu rather than Windows. > > Is there an easy way to change the default boot option back to Win7 ? According to [1] it should work like this: First locate the menu entry for Windows in the boot loader configuration file with the command grep ^menuentry /boot/grub/grub.cfg in a terminal. There should be several lines and probably the last one is for Windows. As I don't have Windows 7 I can only explain it with an entry for Ubuntu. If the appropriate line is menuentry 'Ubuntu, mit Linux 2.6.32-27-generic' --class ubuntu --class gnu-linux --class gnu --class os { then the part between the single quotes would be needed for the second step, i.e. here it would be Ubuntu, mit Linux 2.6.32-27-generic Now edit the grub config default file with the command gksu gedit /etc/default/grub Locate the entry for GRUB_DEFAULT and make it GRUB_DEFAULT="Ubuntu, mit Linux 2.6.32-27-generic" where the part between the double quotes is the exact menu entry from the first step - of course you would use your Windows entry. Finally run the command sudo update-grub and reboot to check if it works as desired. Nils [1] <https://help.ubuntu.com/community/Grub2#/etc/default/grub%20(file)> -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
On 01/21/2011 03:53 AM, Nils Kassube wrote:
Oliver Marshall wrote: I have a laptop with win7 and ubuntu 10 on it. After installing Ubuntu 10 the default boot option became Ubuntu rather than Windows. Is there an easy way to change the default boot option back to Win7 ? According to [1] it should work like this: First locate the menu entry for Windows in the boot loader configuration file with the command grep ^menuentry /boot/grub/grub.cfg in a terminal. There should be several lines and probably the last one is for Windows. As I don't have Windows 7 I can only explain it with an entry for Ubuntu. If the appropriate line is menuentry 'Ubuntu, mit Linux 2.6.32-27-generic' --class ubuntu --class gnu-linux --class gnu --class os { then the part between the single quotes would be needed for the second step, i.e. here it would be Ubuntu, mit Linux 2.6.32-27-generic Now edit the grub config default file with the command gksu gedit /etc/default/grub Locate the entry for GRUB_DEFAULT and make it GRUB_DEFAULT="Ubuntu, mit Linux 2.6.32-27-generic" where the part between the double quotes is the exact menu entry from the first step - of course you would use your Windows entry. Finally run the command sudo update-grub and reboot to check if it works as desired. Nils [1]<https://help.ubuntu.com/community/Grub2#/etc/default/grub%20(file)> Whatever you do, FIRST: cp grub.cfg grub.cfg.bak Then you have a backup of the original file, in case you mess up. --doug -- Blessed are the peacemakers...for they shall be shot at from both sides. --A. M. Greeley -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
On 21 January 2011 08:53, Nils Kassube <kassube@gmx.net> wrote:
> Oliver Marshall wrote: >> I have a laptop with win7 and ubuntu 10 on it. After installing >> Ubuntu 10 the default boot option became Ubuntu rather than Windows. >> >> Is there an easy way to change the default boot option back to Win7 ? > > According to [1] it should work like this: > > First locate the menu entry for Windows in the boot loader configuration > file with the command > > grep ^menuentry /boot/grub/grub.cfg That is the wrong file, it is /etc/default/grub that should be editted (as described in the link [1] you posted). grub.cfg is automatically generated and starts with the line # DO NOT EDIT THIS FILE Colin > > in a terminal. There should be several lines and probably the last one > is for Windows. As I don't have Windows 7 I can only explain it with an > entry for Ubuntu. If the appropriate line is > > menuentry 'Ubuntu, mit Linux 2.6.32-27-generic' --class ubuntu --class gnu-linux --class gnu --class os { > > then the part between the single quotes would be needed for the second > step, i.e. here it would be > > Ubuntu, mit Linux 2.6.32-27-generic > > Now edit the grub config default file with the command > > gksu gedit /etc/default/grub > > Locate the entry for GRUB_DEFAULT and make it > > GRUB_DEFAULT="Ubuntu, mit Linux 2.6.32-27-generic" > > where the part between the double quotes is the exact menu entry from > the first step - of course you would use your Windows entry. > > Finally run the command > > sudo update-grub > > and reboot to check if it works as desired. > > > Nils > > [1] <https://help.ubuntu.com/community/Grub2#/etc/default/grub%20(file)> > > -- > ubuntu-users mailing list > ubuntu-users@lists.ubuntu.com > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users > -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
Colin Law wrote:
> On 21 January 2011 08:53, Nils Kassube <kassube@gmx.net> wrote: > > Oliver Marshall wrote: > >> I have a laptop with win7 and ubuntu 10 on it. After installing > >> Ubuntu 10 the default boot option became Ubuntu rather than > >> Windows. > >> > >> Is there an easy way to change the default boot option back to > >> Win7 ? > > > > According to [1] it should work like this: > > > > First locate the menu entry for Windows in the boot loader > > configuration file with the command > > > > grep ^menuentry /boot/grub/grub.cfg > > That is the wrong file, it is /etc/default/grub that should be > editted (as described in the link [1] you posted). grub.cfg is > automatically generated and starts with the line > # DO NOT EDIT THIS FILE Hmm, where did I advise to edit /boot/grub/grub.cfg? [...] > > Now edit the grub config default file with the command > > > > gksu gedit /etc/default/grub Nils -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
On 21 January 2011 17:40, Nils Kassube <kassube@gmx.net> wrote:
> Colin Law wrote: >> On 21 January 2011 08:53, Nils Kassube <kassube@gmx.net> wrote: >> > Oliver Marshall wrote: >> >> I have a laptop with win7 and ubuntu 10 on it. After installing >> >> Ubuntu 10 the default boot option became Ubuntu rather than >> >> Windows. >> >> >> >> Is there an easy way to change the default boot option back to >> >> Win7 ? >> > >> > According to [1] it should work like this: >> > >> > First locate the menu entry for Windows in the boot loader >> > configuration file with the command >> > >> > grep ^menuentry /boot/grub/grub.cfg >> >> That is the wrong file, it is /etc/default/grub that should be >> editted (as described in the link [1] you posted). *grub.cfg is >> automatically generated and starts with the line >> # DO NOT EDIT THIS FILE > > Hmm, where did I advise to edit /boot/grub/grub.cfg? Sorry, you are quite right. Not paying attention here. Please erase my post from your memory banks. @OP - please follow the directions posted by Nils, his suggestions come highly recommended by myself. Colin -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Boot order in Ubuntu 10 and Win 7
Colin Law wrote:
> Sorry, you are quite right. Not paying attention here. No problem. :) > Please erase > my post from your memory banks. Done. Nils -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 05:09 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.