LinuxQuestions.org
Help answer threads with 0 replies.
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 08-01-2013, 11:36 AM   #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, 12:12 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 09: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-05-2013, 11:13 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
That's good news.
 
Old 08-06-2013, 10:30 AM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
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, 02:16 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 10:30 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

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



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 10:50 PM
Cant switch back to or double-boot windows carocrazy123 Linux - Hardware 3 10-15-2005 06:35 PM
setting the boot back to windows noahfields Linux - Newbie 3 05-18-2004 08:02 AM
How do i boot back to Windows pinpalsapu Linux - Newbie 3 12-13-2003 05:20 PM
How do i boot back to Windows pinpalsapu Linux - General 17 12-12-2003 05:16 AM

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

All times are GMT -5. The time now is 06:32 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
Open Source Consulting | Domain Registration