LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2009, 04:39 PM   #1
ZxPwn
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Boot from USB Pendrive to boot into Ubuntu


Hey guys.

So basically, my setup consists of, Ubuntu which was installed with WUBI, and obviously my Windows XP installation. Basically, i want to be able to boot Ubuntu ONLY when the USB pendrive is inside, well, boot to the pendrive which then boots the Ubuntu WUBI installation. So that the user who normally uses Windows XP can just turn on the PC, without having to select anything, which will just boot straight into XP. But when i put the pendrive and boot from that, the pendrive boots from the WUBI installation.
I was thinking of making a boot.ini on the USB pendrive, specifying the WUBI installation item, so that it would boot that way, do you guys have any ideas?

Thanks
 
Old 04-07-2009, 09:32 AM   #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
If you want your computer to boot xp by default, just change the entry in the /boot/grub/menu.lst file so that the 'default' is the number of xp. If xp is on the first partition, you would just put 'default 0' in the menu.lst file.

I'm not really sure what it is you are trying to do. The above will default boot xp. If you want it to default boot Ubuntu with the pendrive you will need to have the boot files on the pendrive and set the first boot priority in BIOS to the pendrive. This all assumes you are booting with Grub?
 
Old 04-12-2009, 05:48 PM   #3
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Quote:
Originally Posted by ZxPwn View Post
Hey guys.

So basically, my setup consists of, Ubuntu which was installed with WUBI, and obviously my Windows XP installation. Basically, i want to be able to boot Ubuntu ONLY when the USB pendrive is inside, well, boot to the pendrive which then boots the Ubuntu WUBI installation. So that the user who normally uses Windows XP can just turn on the PC, without having to select anything, which will just boot straight into XP. But when i put the pendrive and boot from that, the pendrive boots from the WUBI installation.
I was thinking of making a boot.ini on the USB pendrive, specifying the WUBI installation item, so that it would boot that way, do you guys have any ideas?

Thanks
If you are using Grub then you can do what you want.
Code:
default=0
timeout=0
fallback 1

title USB Flash
        root (hd1,0)
        kernel /boot/bzImage rw root=LABEL=USB_Flash
        initrd /boot/initrd.img

title Winders
        rootnoverify (hd0,0)
        chainloader +1
I haven't tested this but you get the idea?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux can't boot from dvd/cd nor usb-pendrive padr Linux - Hardware 1 12-07-2008 12:22 PM
Hos to boot Redhat from a USB pendrive for instalation procfs Linux - General 0 07-20-2006 10:54 PM
Creating network install boot iso on usb pendrive Qwik Fedora - Installation 1 02-23-2006 02:10 PM
No boot of PuppyLinux on USB pendrive d1s4st3r Linux - Hardware 0 07-21-2004 12:49 PM
How to get the boot images to work with my USB pendrive?? FilipK Mandriva 2 05-10-2004 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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