IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
> A Multiple Partition USB Stick with Multi Boot OS, Updated 5th April 2006
Markymoo
post Mar 5 2006, 12:49 PM
Post #1


Junior
*

Group: Members
Posts: 79
Joined: 22-April 04
From: England
Member No.: 18359
OS: none
Country Flag


A Multiple Partition USB Stick with Multi Boot OS

Scroll down for 5/4/2006 update

I wanted several operating systems on a USB stick and after many hours messing with syslinux, memdisk, grub4dos, xosl, freedos, avlgomgr, acronis os selector, ranish partition manager. I have succumbed. I first started out wanting to boot an iso off USB and ran into trouble loading large img with memdisk which I found out is due to a bug in msdos so I used freedos but things didn’t work out as planned and it’s a similar woe story’s with the rest. Acronis os selector lets you boot multiple os from one partition from different folders but don’t work great when it comes to dos.

I have 5 partitions on my USB stick and using the boot loader BootIt NG http://www.bootitng.com/bootitng.html This is a 30 day trial. There’s a iso boot image inside the zip you need to burn to cd.

Now I wasn’t happy just putting one os on my USB stick. I wanted linux and diagnostic tools etc.

I now have what I think is the easiest helpful solution below.

Stage 1.

Ok XP can only see one partition on a removable USB but if change the USB driver to a fixed disk driver then XP will see it as a hard drive then we can have lay down multiple partitions as we like. Now open regedit and goto HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR
and double click on USBSTORE and you see a subkey below it, select the first subkey below USBSTORE and right click and select Copy Key Name

Here is mine, yours maybe different.

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_Generic&Prod_USB_Flash_Disk&Rev_0.00

Now we need only need this part:

USBSTOR\Disk&Ven_Generic&Prod_USB_Flash_Disk&Rev_0.00

Copy and paste it temporarily into notepad.

You will now need this driver. http://www.xpefiles.com/viewtopic.php?t=92
Unpack it to a folder on your desktop. Inside the folder is the file cfadisk.inf. You need to open this file and scroll down to you see the line %Microdrive_devdesc% = cfadisk_install, specific data
Now you need to replace all lines %Microdrive_devdesc% = cfadisk_install, specific data with
the line you copied from your registry like so.

%Microdrive_devdesc% = cfadisk_install,USBSTOR\Disk&Ven_Generic&Prod_USB_Flash_Disk&Rev_0.00

There could be more lines so replace all and save the file.

Goto Device Manager and click on disk drives. You see your USB listed, dbl click on it and goto the driver tab and click update driver and install from a specific location and choose the driver to install and click on Have Disk and browse to the cfadisk.inf file your modified driver on your desktop and force that to replace your existing driver. It might ask you to reboot. You should now have your USB showing as Local Disk

We want your first partition dos bootable so run HP USB Disk Storage Format Tool. I’m using version 2.1.8. Select your drive letter of your USB device and select "Create a DOS startup disk" and browse to your 98 boot disk folder. Click Start. Your USB will be formatted and 3 files will be copied from your dos startup files. You need to manually copy the rest of the 98 boot files to your USB drive.

You can now resize the drive (mines 512MB) and create multiple partitions. All partition software now sees it as a fixed disk. I used acronis disk director and resized the partition keeping the first dos bootable partition intact and made another 4 fat partitions so I had 5 in total.

Make sure your format all partitions as Primary not Logical.

I now make all the os for each drive on my USB, so for example I copy all linux files to the root of I: and then syslinux I:

G: Dos bootable drive
H: BartPE2USB
I: Dsl Linux
J: UBCD
K: Partition Tools

So this way makes it easy to load multiple iso using ramdisk also. thumbup.gif

Stage 2

Insert your BootIt NG cd you made earlier and your USB stick and reboot and change your bios to boot from cd and disable all hard drives from your bios so they not detected, that way you wont delete any hard drive data and you know your using the USB only. You can now install BootIt onto your USB stick. This is a simple install. It install on the first partition. It will detect all partitions. You can now add the partitions easily. Your USB shows up as HD0 and the separate partitions as MBR 1, 2 ,3 ,4 5 etc and boot from each one from the menu.

BootIt is not free. I am using this till i can workout a freeware solution.


EDIT: Here comes the better freeware solutions.

I going to explain simple easy way that works, on how to create a bartpe and dos dual-boot on an USB stick install each on separate partitions including a menu to select either. I will use 2 partitions for now.

Download spfdisk it’s a good boot loader which has many features and is free.
http://spfdisk.sourceforge.net/Spf2K3rE.exe We will be using this. Unpack it. You need 1 file only from it, spfdisk.exe.

Plan how much space to split up for dos and bartpe. Delete all your USB stick so it’s unallocated space and then create 2 partitions of fat to the size you need and format. Make the first partition dos.

Acquire or make a dos bootable cd or floppy and put spfdisk.exe on it. Make sure you match the dos version of your boot disk to same version of dos system files you be using on your usb.

Copy dos,ghost whatever files to your dos partititon and copy your bartpe files to the bartpe partititon.

Check you have the 2 files mkbt.exe & pe2usb.bin in your pebuilder folder. Download Pe2usb if not.
Open up a cmd box in your pebuilder dir and run the command:

“mkbt.exe -x pe2usb.bin N:” N being the letter of your bartpe partition.

Reboot and keep your USB stick in and boot off the dos cd or floppy.

Type the command sys drive: drive being the letter of your dos partititon.

Run spfdisk.exe in dos Create the menu to boot both partitions in spfdisk. Save the changes.



Reboot, take out your cd and boot up off the USB and its working.

Alternative method using WinGrub for multiboot usb

Download Wingrub http://sourceforge.net/project/showfiles.php?group_id=104188

Have the partitions formatted to fat.

Install WinGrub. Insert your USB stick

Note: Your usb stick partitions will be hd0,0 and hd0,1 when you boot on startup but will be different under windows, not showing as the first drive.



First time you rub Wingrub you see a box pop up called base setup. Click the drive letter of your USB stick and click Ok. Make sure its your USB stick you click and not your hard drive. In Wingrub right click in the menu table and click edit and paste the menu data below over the existing data in the edit box and click ok. now save it as a new name ending in .lst - If you need that menu again load it back in. You need to make a folder on your usb called boot and inside that another folder called grub and then copy your menu.lst to that folder.

timeout 30
color=white/blue

title Dos Utils
unhide (hd0,0)
hide (hd0,1)
rootnoverify (hd0,0)
chainloader +1
makeactive
boot

title BartPE
hide (hd0,0)
unhide (hd0,1)
rootnoverify (hd0,1)
chainloader +1
makeactive
boot

Now in tools menu click Install Grub. You going to install grub to the MBR. Now click the partition letter of your first partition of your USB stick then click install. 2 files have copied to your partition and your mbr is now patched with grub. How easy is that, no use of a disk editor needed. The original mbr is saved in the file MBR.ORG on your usb. You can now reboot test your usb stick and use the grub menu.



This post has been edited by Markymoo: Nov 19 2007, 05:38 AM
Go to the top of the page
 
+Quote Post

Posts in this topic
- Markymoo   A Multiple Partition USB Stick with Multi Boot OS   Mar 5 2006, 12:49 PM
- - e-t-c   Maybe You can use this Bootmanager (Private = Free...   Mar 13 2006, 09:56 AM
|- - Markymoo   QUOTE (e-t-c @ Mar 13 2006, 09...   Mar 15 2006, 10:52 PM
- - Bilou_Gateux   @Markymoo Congratulations for this fine tutorial. ...   Mar 14 2006, 04:08 AM
- - jaclaz   @Markymoo QUOTE The best solution is to use grub. ...   Mar 16 2006, 05:11 AM
- - undeadsoldier   Why not just try syslinux... lol   Mar 16 2006, 04:24 PM
|- - Markymoo   QUOTE (undeadsoldier @ Mar 16 2006, 04:24...   Mar 16 2006, 04:49 PM
- - Markymoo   @Bilou_Gateux cheers! if i can help people co...   Mar 16 2006, 05:01 PM
- - chazco   This has really helped me with a project i've ...   Mar 25 2006, 03:17 AM
- - Markymoo   @chazco simple, same place you install the driver ...   Mar 28 2006, 02:04 AM
- - chazco   Thanks for the reply - i tried that already though...   Mar 29 2006, 01:16 AM
- - Markymoo   just use a generic usb driver, theres quite a few ...   Apr 5 2006, 08:27 AM
- - jaclaz   Good work, Markymoo. Just for the record Wingru...   Apr 9 2006, 10:54 AM
- - Markymoo   yes i agree with you. but this is the newbie guide...   May 11 2006, 03:03 PM
- - jaclaz   NO, I just asked because it was nice and it is not...   May 12 2006, 10:35 AM
- - Markymoo   @jaclaz ok apologies, i got it touring the web. i...   May 17 2006, 11:29 AM
- - 2dumb   Thanks for this great guide for partitioning USB s...   Jun 17 2006, 08:40 AM
- - fattest_cat   Hello I have been searching around for ages to see...   Feb 18 2007, 07:29 AM
|- - johnbig   QUOTE (fattest_cat @ Feb 18 2007, 07:29 A...   Mar 15 2007, 05:34 PM
- - diginode   In this section most of the discuss on GRUB. But t...   May 15 2007, 10:11 PM
- - firegun9   Hi, This topic is just what I want! But I hav...   Jun 8 2007, 11:18 PM
- - stevesumner   Right, I got the Grub boot working. Only problem i...   Jun 18 2007, 05:30 PM
- - jaclaz   @stevesumner What you report is VERY strange, mar...   Jun 19 2007, 03:48 AM
- - stevesumner   Hmmm, not sure what I did. I found that after boot...   Jun 19 2007, 04:46 AM
- - jaclaz   QUOTE (stevesumner)I would be interested in which ...   Jun 19 2007, 01:15 PM
- - stevesumner   Hey cheers for that jaclaz, really useful info. I...   Jun 19 2007, 05:10 PM
- - jaclaz   Well, NO, the: CODEtitle BartPE chainloader /setup...   Jun 20 2007, 05:34 AM
- - MI4C   EDIT: read post #31, to get better instructions. ...   Jul 10 2008, 09:06 AM
- - MI4C   I noticed that the extra mbr.bin import is not nec...   Jul 11 2008, 10:02 PM
- - jaclaz   MI4C, sorry, but I do not understand what you are ...   Jul 12 2008, 03:25 AM
- - MI4C   jaclaz, sorry for so fuzzy posting. I got the sti...   Jul 17 2008, 11:20 PM
- - Kelsenellenelvian   QUOTE with both password and fingerprint protectio...   Dec 15 2008, 03:36 AM
- - Fixt00l   Hello, thanks for the reply, and I am sorry fot an...   Dec 15 2008, 04:43 AM
- - jaclaz   You might be happy to know that one of the main co...   Dec 15 2008, 04:54 AM
- - andyd   Hopefully someone can help with this question... ...   May 25 2009, 07:32 AM
|- - jaclaz   QUOTE (andyd @ May 25 2009, 03:32 PM) Hop...   May 25 2009, 07:41 AM
- - andyd   I meant booting an iso of some sort. Like say if ...   May 25 2009, 09:07 AM
|- - jaclaz   QUOTE (andyd @ May 25 2009, 05:07 PM) I m...   May 26 2009, 05:20 AM
- - andyd   Well I meant more towards bootable tools etc but y...   May 26 2009, 08:36 PM
- - Freshbie   Hello guys I try to follow the guide but i cannot...   Jun 27 2009, 09:32 PM
- - jaclaz   @Freshbie This guide, though still largely valid,...   Jun 28 2009, 03:06 AM
- - Freshbie   Very glad to hear from you !! Jaclaz I no...   Jun 28 2009, 06:45 AM
|- - jaclaz   QUOTE (Freshbie @ Jun 28 2009, 02:45 PM) ...   Jun 28 2009, 07:36 AM
- - Freshbie   Thanks Jaclaz. The post you give to me is very in...   Jun 29 2009, 05:31 AM
|- - jaclaz   QUOTE (Freshbie @ Jun 29 2009, 01:31 PM) ...   Jun 29 2009, 09:13 AM
- - honda4life   Confirmed to work on Windows 7 build 7600 RTM You...   Aug 10 2009, 01:32 PM


Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
6 User(s) are reading this topic (6 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 12:05 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy