[SOLVED] How to change default O/S from Ubuntu to Windows 7?
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.
How to change default O/S from Ubuntu to Windows 7?
I have a dual booting set up with Ubuntu as default O/S and Windows 7. wish to have Windows 7 as my default O/S. I tried by clicking Alt+F2 and entering 'Sudo gedit/boot/grub/menu.lst' but nothing happens. Please help.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
Have you got access to "Startup Manager" in Ubuntu? Probably under Administation or Preferances. If so, set the default OS to Windows 7 in the drop down and close and that should hopefully be it.
I got this info from the picture here:
Have you got access to "Startup Manager" in Ubuntu? Probably under Administation or Preferances. If so, set the default OS to Windows 7 in the drop down and close and that should hopefully be it.
I got this info from the picture here:
I have a dual booting set up with Ubuntu as default O/S and Windows 7. wish to have Windows 7 as my default O/S. I tried by clicking Alt+F2 and entering 'Sudo gedit/boot/grub/menu.lst' but nothing happens. Please help.
It's "sudo", not "Sudo", and also there should be a space between "gedit" and the path (the way it is now, it's trying to look for for the "menu.lst" command in the directory "gedit/boot/grub", which of course doesn't exist).
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by KVIKRAMAN
I have a dual booting set up with Ubuntu as default O/S and Windows 7. wish to have Windows 7 as my default O/S. I tried by clicking Alt+F2 and entering 'Sudo gedit/boot/grub/menu.lst' but nothing happens. Please help.
The latest version of Ubuntu use GRUB 2 .
Grub 2 do not have a menu.lst .
But do have grub.cfg .
It is use full to read about the difference between grub 1 and grub 2
The latest version of Ubuntu use GRUB 2 .
Grub 2 do not have a menu.lst .
But do have grub.cfg .
It is use full to read about the difference between grub 1 and grub 2
True, however, grub.cfg is a read-only file. While one can change permissions and edit it manually, the changes will be overwritten the next time update-grub is executed. To properly change default menu settings, you need to edit the /etc/default/grub file, then run update-grub to add the changes to grub.cfg.
Code:
sudo gedit /etc/default/grub
then
Code:
sudo update-grub
or install Startup Manager from Ubuntu Software Center.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by Mr. Bill
True, however, grub.cfg is a read-only file. While one can change permissions and edit it manually, the changes will be overwritten the next time update-grub is executed. To properly change default menu settings, you need to edit the /etc/default/grub file, then run update-grub to add the changes to grub.cfg.
Code:
sudo gedit /etc/default/grub
then
Code:
sudo update-grub
or install Startup Manager from Ubuntu Software Center.
Yes you're solution works no doubt at all .
But in my opinion still OP should learn the difference between GRUB 1 and GRUB 2 .
Next time he runs again to a problem he has good a change to solve it on his own .
Yes you're solution works no doubt at all .
But in my opinion still OP should learn the difference between GRUB 1 and GRUB 2 .
Next time he runs again to a problem he has good a change to solve it on his own .
Very true, as there is quite a difference. Another example- to manually add a new entry, you no longer edit an existing file, but rather, write a script, make it executable, add it to the /etc/grub.d folder, then again run update-grub to place the changes in grub.cfg. One needs to know the proper layout, syntax, and naming convention of the script for it to work correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.