LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-01-2013, 12:36 PM   #1
thehafenator
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Unable to boot back to Windows 7


My friend recently introduced me to Linux (Ubuntu) and I decided to try the operating system out. I downloaded the 12.04 iso file and burned it to a disk. Then I installed the OS on my 16GB Flash drive. I tried it out and I really liked it.

So whenever I turn on the computer and the flash drive is in, it boots to Linux, but when I try taking it out, I get an error message saying the device is out. I went to the boot menu by pressing F8, and my old hard drive does not appear as a bootable device, but for some reason I can acsess files as the hard drive appears as an ejectable device. I know that I did not Install Ubuntu to the hard drive as I installed with the option to erase and install, and all my files are still on the hard drive.

The reason I'm trying to get back to windows 7 is so I can use programs that linux does not support.
 
Old 08-01-2013, 01:12 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,394
Blog Entries: 6

Rep: Reputation: Disabled
Hi:

While your 16 GB flash drive is plugged in and your done using Ubuntu shut down your computer.
Wait about 30 seconds and with the computer shut down unplug your flash drive.
The next time you boot up your computer it should boot to Windows 7 (Unless) you have it set in your BIOS to boot to usb first.

If you decide to install Linux Ubuntu on your computer you can do so in a dual boot.
In other words when your computer starts you will have the opportunity to choose Windows 7 or Linux Ubuntu.

You can tell your BIOS to boot to usb first or hdd or cd/rom drive.

http://pcsupport.about.com/od/tipstr...otusbflash.htm
http://www.hiren.info/pages/bios-boot-cdrom
http://helpdeskgeek.com/how-to/chang...rder-xp-vista/
 
1 members found this post helpful.
Old 08-05-2013, 10:47 PM   #3
thehafenator
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
After looking all over the internet, I put these commands(in quotes) into command prompt and it fixed my error message and booted right to windows. "bootrec /Fixmbr" and "bootrec /Fixboot"
 
Old 08-06-2013, 12:13 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,394
Blog Entries: 6

Rep: Reputation: Disabled
That's good news.
 
Old 08-06-2013, 11:30 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,168

Rep: Reputation: 201Reputation: 201Reputation: 201
I'd suggest that the Ubuntu install on the USB stick has written the grub boot loader to the stick, so the MBR on your hard drive is pointing at the stick. If you remove it... There's nothing to boot from as the MBR is now pointing at a non-existant device! Hence your error message. Tah Dah!

Play Bonny!

 
1 members found this post helpful.
Old 08-06-2013, 03:16 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
did you mean to install to the usb or create a live-usb ?

according to soadyheid it seems like you did an install which messed with the pc's internals (mbr). a live-usb leaves everything untouched.
 
Old 08-07-2013, 11:30 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,168

Rep: Reputation: 201Reputation: 201Reputation: 201
As per schneidz...

If you make a live USB you can boot from it without disturbing your system as the BIOS, (providing it can handle USB and has the boot list configured correctly), will boot the USB before looking for a hard disk.

Just adding a USB stick as storage and installing to it is NOT the same thing. The hard disk's MBR will be changed to point at Grub which is installed on the stick during Ubuntu installation. Removing the stick and booting will therefore try to access a non-existant file; the Grub or Grub2 boot loader which is on the stick and would be used to redirect the boot sequence back to Windows on your hard drive. (With Ubuntu as first choice/default)

Play Bonny!

 
  


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
Unable to create dual boot (Ubuntu 12.04 / Windows 7). Windows 7 won't start. J_angel2000 Linux - Desktop 2 04-17-2013 11:50 PM
Cant switch back to or double-boot windows carocrazy123 Linux - Hardware 3 10-15-2005 07:35 PM
setting the boot back to windows noahfields Linux - Newbie 3 05-18-2004 09:02 AM
How do i boot back to Windows pinpalsapu Linux - Newbie 3 12-13-2003 06:20 PM
How do i boot back to Windows pinpalsapu Linux - General 17 12-12-2003 06:16 AM


All times are GMT -5. The time now is 08:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration