LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-05-2011, 08:57 AM   #1
KVIKRAMAN
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
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.
 
Old 05-05-2011, 09:10 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Check the Ubuntu forums site below which has multiple ways to do it:

http://ubuntuforums.org/showthread.php?t=1308665
 
Old 05-05-2011, 09:11 AM   #3
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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:

http://en.wikipedia.org/wiki/Grub_2

Play Bonny!
 
Old 05-05-2011, 10:11 AM   #4
Mr. Bill
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
Quote:
Originally Posted by Soadyheid View Post
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:

http://en.wikipedia.org/wiki/Grub_2

Play Bonny!
If you don't have it, it can be installed from the Ubuntu Software Center, and yes it works.
 
Old 05-05-2011, 11:06 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by KVIKRAMAN View Post
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).
 
Old 05-05-2011, 11:37 AM   #6
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
Quote:
Originally Posted by KVIKRAMAN View Post
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
 
Old 05-05-2011, 02:42 PM   #7
Mr. Bill
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
Quote:
Originally Posted by ronlau9 View Post
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.
 
Old 05-05-2011, 03:06 PM   #8
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
Quote:
Originally Posted by Mr. Bill View Post
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 .
 
Old 05-05-2011, 03:24 PM   #9
Mr. Bill
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
Quote:
Originally Posted by ronlau9 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
Change default depth from 24 to 16 in Ubuntu 8.04 rob.linux Linux - Hardware 3 08-25-2008 11:23 PM
How do I change the default os in Ubuntu? Petlay Linux - Newbie 2 05-01-2007 11:42 PM
How do I change the default boot from Windows to Linux? jdruin Linux - Newbie 4 04-26-2004 06:50 PM
How to change default OS to Windows arraman Linux - General 1 06-11-2001 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration