LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-13-2012, 04:49 PM   #1
Sigshane
Member
 
Registered: Oct 2008
Location: Grovetown, GA
Distribution: Linux Mint
Posts: 33

Rep: Reputation: 12
Dual Boot from USB stick?


Hello all. I have a question to throw into the arena. (If this issue has already been addressed/resolved, kindly point me in the right direction.)

I want to dual boot Windows 7 and Ubuntu, but I want Ubuntu to boot only when I install a "grub"-type USB stick. So if the USB stick is not inserted, Windows boots normally. (Reason is, I share this computer with some non-computer-savvy folks, and wouldn't want them to hurt themselves in Linux )

Is this possible?
 
Old 04-13-2012, 05:50 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You should be able to install the Ubuntu Grub to a flash drive. You don't indicate what, if anything you will have on the drive besides Grub?
Check the Ubuntu link below, Section 12 has several methods. If you are successful, then set the flash drive to first boot priority. When it is plugged in, it should boot Ubuntu, when it is not plugged it will boot windows.

https://help.ubuntu.com/community/Grub2
 
Old 04-13-2012, 05:57 PM   #3
Sigshane
Member
 
Registered: Oct 2008
Location: Grovetown, GA
Distribution: Linux Mint
Posts: 33

Original Poster
Rep: Reputation: 12
Yes, well, the ONLY thing I want on the USB stick is GRUB. I want to use it like a car key - it will only boot into Ubuntu. I want the Ubuntu OS and files, etc. to be on a dedicated partition on my computer, I just don't particularly like the purple OS choice screen when I reboot every time.

Make sense?
 
Old 04-13-2012, 06:10 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I'm sorry, I don't know exactly how to achieve this, but you ought to be able to install Ubuntu whilst the USB stick is in there and tell it to write the MBR and GRUB to it and that ought to do what you want.
Bear in mind, however, that some BIOSs will only retain the boot from USB option while the device is still there. So, with that type of BIOS, every time you plug your USB stick into the PC you will have to change the BIOS to tell it to boot from USB.
 
Old 04-13-2012, 06:12 PM   #5
Sigshane
Member
 
Registered: Oct 2008
Location: Grovetown, GA
Distribution: Linux Mint
Posts: 33

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by 273 View Post
... tell it to write the MBR and GRUB to it...
Now that is a promising notion. I will try it, and report my findings.

Thanks!
 
Old 04-13-2012, 07:32 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I'd remove any connection to your real hard drive(s).

Then install all the linux you want to the usb. Be sure you power down system and insert the usb before you power back on. Be sure bios see's the usb as a hard drive. If not then you may have to fool with way the usb is.

There are also many tools and web how-to's on ways to use syslinux, grub, grub4dos to boot images or folders and such.

By the way. The iso deal at pendrivelinux would save a lot of space. Any real install is not compressed.
Multiboot and yumi might be good to start with.

Last edited by jefro; 04-13-2012 at 07:33 PM.
 
  


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
[SOLVED] Dual boot question - startupmanager changes don't stick Sigma66062 Linux - Newbie 28 09-10-2011 01:06 PM
[SOLVED] Slackware 13.1 will only boot if i used a usb boot stick dwclark84 Slackware 4 02-12-2011 06:26 PM
how to boot from a usb stick? rixtr66 Linux - Newbie 2 08-18-2008 08:06 PM
Boot from USB stick if no booting USB in Bios 1kyle SUSE / openSUSE 1 03-26-2007 12:24 AM
USB Stick boot KrYpToN Linux - Hardware 5 10-08-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:21 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