LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-06-2009, 11:06 AM   #1
Rimbaum
LQ Newbie
 
Registered: Nov 2009
Location: Michigan
Distribution: ubuntu 10.04
Posts: 7

Rep: Reputation: 0
Setting up Wubi-installed Ubuntu to auto-select at startup


Hi!

I know I haven't been very active around here, but I have a question that's been nagging at the back of my mind for a little while now. I installed Ubuntu 9.04 on my Acer Aspire One netbook using the Wubi installer. Now, when I turn on my computer, it allows me to choose between Windows 7 and Ubuntu, but it only gives me somewhere around 7-10 seconds to choose.

Now, a habit I got into in the early mornings while I was getting ready for work was to turn the computer on and walk away for a few minutes to fix breakfast or whatnot. However, I can't do that with my netbook, or it will automatically start up in Windows 7, when, 99% of the time, I want to start in Ubuntu.

My question is this: Is there a way, either in Windows or Ubuntu, to set up the boot menu so that Ubuntu is automatically selected instead of Windows 7? If I had installed Ubuntu normally, I know this would be less of a hassle, but I'd had various frustrating issues trying to install from my USB drive and then found out about Wubi, which made things much easier for a total Linux newbie that had never even set up a computer to dual-boot before.

I'm hoping that there is a way to do this without having to uninstall Wubi and reinstall Linux from my USB drive. It'll take me a better portion of the day, and obviously, I've gotten my settings just the way I want them. It's not that urgent of an issue, just something I'm hoping that it's possible to change.

Thanks in advance for your help!

~Rimbaum
 
Old 12-06-2009, 11:37 AM   #2
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
You're asking about the Windows bootloader. This belongs in Non-*NIX-General.

Also, this would take you to this.

Last edited by Bratmon; 12-06-2009 at 11:40 AM.
 
Old 12-06-2009, 11:45 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Bratmon View Post
You're asking about the Windows bootloader. This belongs in Non-*NIX-General.
I respectfully disagree----OP is asking how to boot Linux.

Doesn't the config file for the Windows loader (boot.ini) have an option for setting the default?
 
Old 12-06-2009, 11:55 AM   #4
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by pixellany View Post
I respectfully disagree----OP is asking how to boot Linux.
But, he's not asking ABOUT Linux. He's asking about the Windows bootloader.

Also, if you need specific instructions, please post your boot.ini.

Last edited by Bratmon; 12-06-2009 at 11:56 AM.
 
Old 12-06-2009, 11:57 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
So now we've agreed to disagree.......

Feel free to report it---some other mod may have a different (dis)agreement.

Note that many mods regard "general" as the junk pile to which all manner of nonsense gets relegated.

Last edited by pixellany; 12-06-2009 at 11:59 AM.
 
Old 12-06-2009, 01:06 PM   #6
Rimbaum
LQ Newbie
 
Registered: Nov 2009
Location: Michigan
Distribution: ubuntu 10.04
Posts: 7

Original Poster
Rep: Reputation: 0
I've never played with the Windows bootloader, so I wasn't aware that was what I should be looking for. If that is the case, and if this thread belongs somewhere else, a moderator is free to move it. However, I had figured that since my question was related to the Wubi installer for Ubuntu, this was where I should put it.
 
Old 12-06-2009, 01:41 PM   #7
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 815

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
Originally Posted by Rimbaum View Post
Hi!

I know I haven't been very active around here, but I have a question that's been nagging at the back of my mind for a little while now. I installed Ubuntu 9.04 on my Acer Aspire One netbook using the Wubi installer. Now, when I turn on my computer, it allows me to choose between Windows 7 and Ubuntu, but it only gives me somewhere around 7-10 seconds to choose.

Now, a habit I got into in the early mornings while I was getting ready for work was to turn the computer on and walk away for a few minutes to fix breakfast or whatnot. However, I can't do that with my netbook, or it will automatically start up in Windows 7, when, 99% of the time, I want to start in Ubuntu.

My question is this: Is there a way, either in Windows or Ubuntu, to set up the boot menu so that Ubuntu is automatically selected instead of Windows 7? If I had installed Ubuntu normally, I know this would be less of a hassle, but I'd had various frustrating issues trying to install from my USB drive and then found out about Wubi, which made things much easier for a total Linux newbie that had never even set up a computer to dual-boot before.

I'm hoping that there is a way to do this without having to uninstall Wubi and reinstall Linux from my USB drive. It'll take me a better portion of the day, and obviously, I've gotten my settings just the way I want them. It's not that urgent of an issue, just something I'm hoping that it's possible to change.

Thanks in advance for your help!

~Rimbaum
You can change the default menu entry or menu timeout using the "BCDEDIT" command from a Windows command prompt. In Windows 7, click on the start button that brings up the menu. Click "All Programs" then click "Accessories". Look for "Command Prompt". Right click on "Command Prompt" and then click (the left mouse button) on "Run as administrator".

First, find out the identifier for the Ubuntu boot entry by displaying the boot database. Type in this command and then press "Enter" to display the database.

bcdedit /enum all /v

Look for the information describing the Ubuntu boot entry. You should be able to recognize it from the "description".

Note the information for "identifier". That is the information in curly braces including the curly braces. Right click anywhere in the command prompt window and click "Mark". Drag the mouse across the identifier including the curly braces to select it. Then click the right mouse button or press "Enter" to copy it to the clipboard.

Scroll the command prompt window down to the line where you can enter a new command.

Enter this command to change the Ubuntu entry to the default.

bcdedit /default {ID}

Replace "{ID}" with the ID that you noted (or copied to the clipboard) in curly braces.

To paste in the ID from the clipboard, type in the command up to that point including the space after "default". Then right click anywhere in the window and click "Paste".

To change the default back to Windows later you can use this command.

bcdedit /default {current}

To change the menu timeout you can use this command.

bcdedit /timeout nn

Replace "nn" with the time-out in seconds. For example:

bcdedit /timeout 30

That will set the menu time-out to 30 seconds. A value of 0 will make the default start immediately with no menu display and a -1 will display the menu forever until a choice is made. NOTE: If you accidentally set the default to 0 and the default choice does not boot the OS, you can press F8 to get the menu at start-up. Then choose a different menu entry.

You can get help from "bcdedit" using the /? command.

bcdedit /?
bcdedit /set /?
bcdedit /default /?


If you need further help you can send me a message or find me in the MySpace computer forums (along with other people).

Last edited by Erik_FL; 12-06-2009 at 01:44 PM.
 
1 members found this post helpful.
Old 12-06-2009, 05:00 PM   #8
Rimbaum
LQ Newbie
 
Registered: Nov 2009
Location: Michigan
Distribution: ubuntu 10.04
Posts: 7

Original Poster
Rep: Reputation: 0
@pixellany & Bratmon: Windows 7 doesn't appear to have a boot.ini file. Might be something to keep in mind in case this question pops up again.

@Erik_FL: Thank you! That worked beautifully.
 
Old 12-06-2009, 05:31 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Rimbaum View Post
@pixellany & Bratmon: Windows 7 doesn't appear to have a boot.ini file. Might be something to keep in mind in case this question pops up again.
Memo to self: "Stop answering Windows questions."
 
Old 12-06-2009, 06:38 PM   #10
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 815

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
Originally Posted by pixellany View Post
Memo to self: "Stop answering Windows questions."
Sometimes I feel that way too. Microsoft keeps changing everything, and it never seems to get simpler, just more and more complicated. The syntax for BCDEDIT is horrible and confusing.

Like the previous "BOOT.INI" file there is also a way to "chain" to a boot sector with the Windows 7 boot loader. That can be useful as an alternative to installing "grub" in the MBR. I suspect that WUBI uses a boot sector file but I've never confirmed that. The sector has to be copied to a file first and the file has to be placed somewhere that Windows can read (like the system root directory). I won't post the details, but it involves more cryptic BCDEDIT commands.

I'm slowly becoming more comfortable using Linux and all the people who help answer my Linux questions on LQ are much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Are files in Ubuntu installed with Wubi readable by Fedora? smurthy Fedora 5 01-21-2011 12:27 PM
Need help connecting to internet through ubuntu 8.04 installed through Wubi girsdeciple Linux - Newbie 2 07-09-2009 06:39 PM
Wubi (ubuntu) installed with windows xp - how do i get rid of xp? jrjone General 8 06-03-2009 09:01 PM
Just installed Ubuntu with Wubi. Is linux right for me? PSBubcha Linux - Newbie 7 03-29-2009 04:09 AM
how to use ubuntu wubi installed system for new clean install waynenener Ubuntu 3 03-01-2009 01:55 AM


All times are GMT -5. The time now is 10:48 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration