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.
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.
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.
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"
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
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!
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.