LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Boot from USB Pendrive to boot into Ubuntu (https://www.linuxquestions.org/questions/linux-general-1/boot-from-usb-pendrive-to-boot-into-ubuntu-717265/)

ZxPwn 04-06-2009 04:39 PM

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

yancek 04-07-2009 09:32 AM

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?

MrUmunhum 04-12-2009 05:48 PM

Quote:

Originally Posted by ZxPwn (Post 3500479)
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?


All times are GMT -5. The time now is 02:57 PM.