Anda di halaman 1dari 6

1/23/2014

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB

Search this site

Download

Videos

Win7ToGo Sitemap

Win8ToGo

Grub4dos Guide

Hirens

Easy2Boot v1 (MultiBoot)

Add a restore partition

Fake Flash Test

Remove Viruses

Blog

RMPrepUSB - Home Page RMPrepUSB - What does it do? RMPrepUSB Quick Start Guide RMPrepUSB User Guide & FAQs RMPrepUSB FAQs RMPrepUSB - Version History RMPartUSB FAQs RMPartUSB Commands Forums (reboot.pro) Bugs - known, current and fixed Licensing of RMPrepUSB Contact Me Read and Sign my Guest Book Blog Latest Site News Hot Tips - good value/performance USB Flash memory pens Useful External Links (inc. Windows 7/8/8.1 ISOs) Downloads Download Latest RMPrepUSB versions + downloads Tutorials, How To's and Guides 01 - How to image a Windows system using a bootable WinPE USB drive and ImageX 02 - How to create a USB drive that will install one of many choices of Windows OS's (Vista/Win7/Server 2008/XP) 03 - How to install Windows XP from a bootable USB drive 04 - How to boot directly from a USB drive using an Emulator or VM under Windows 05 - CHROMIUMOS - a browser OS on a USB Stick 06 - YouTube Video Tutorials 07 - All about 'Fake' SD cards and USB Flash drives 08 - Make a bootable USB drive for the Norton Ghost Symantec Recovery Disk/Tool 09 - How to make a bootable BACKTRACK 4/5 (linux) USB drive 10 - Boot BITDEFENDER Rescue CD from USB as an ISO file 11 - Make a free bootable image recovery USB flash drive using FINNIX 12 - Reset a Windows User password 13 - How to find Windows User passwords using OPHCRACK 3.4 14 - Crack or clear your BIOS password with PC CMOS CLEANER (uses Parted Magic) 15 - How to emulate USB booting using Qemu Manager 16 - How to boot to different WinPE versions using a single boot.wim that contains multiple images 17 - StartOS - a 'Windows-like' version of linux on a stick 18 - ISO Files - Burn, Extract, Mount or Edit ISO files 19 - Create your own RMPrepUSB package using Nullsoft Scriptable Installer (NSI)

Tutorials, How To's and Guides >

77 - Create a multiple partition, multi-boot USB Flash drive under Windows

Contents 1 Introduction 2 Requirements 3 Method 4 Notes 4.1 NTFS+FAT32 4.2 Swapping parttions using grub4dos

Introduction

If you have a USB hard disk (classed as a 'Fixed Disk' by Windows), you will find that Windows can format that disk with multiple primary and logical partitions. However, most USB Flash drives are set as 'Removable Drives' when shipped by the USB drive manufacturer which means that Windows will only access one partition on the drive. The first sector of a partitioned disk is called the Master Boot Record (MBR). Near the end of this sector is the partition table which can contain up to four primary partition entries. One (and only one) of these table entries can be an Extended Partition entry. An Extended Partition entry points to another Extended Partition table which contains one or two entries (a logical partition entry and optionally another Extended Partition entry). In this way it is possible to have much more than four partitions on a drive. So an MBR partition table can have: Up to four Primary Partition entries - OR Up to three Primary Partitions and one Extended partition entry On a 'removable' drive (like most USb Flash drives), Windows will only recognise the first raw or Windows-formatted primary partition in the partition table. Actually, it will mount the first primary partition it finds that has a non-zero partition type and that is formatted with a format recognised by Windows, starting from the first entry in the partition table. This means that even if you create a multi-partitioned USB Flash Drive (most of which are set as 'Removable Drives' when shipped by the manufacturer), Windows will not mount the other volumes or assign drive letters to them. One common solution to this problem is to set the USB Flash Drive (UFD) to be a 'Fixed Disk' by 'flipping the RMB bit' in the UFD controller using the Lexar BootIt.exe utility. However, this only works on certain UFD controlllers (e.g. some models of Lexar, HP, Verbatim, Netac). Another common solution is to install either the Hitachi Microdrive Filter cfadisk.sys or the dummydisk.sys driver by Anton Bassov. To see how this works, see Agni's YouTube video. These two methods have the advantage that you can create and access any number of primary and logical volumes on your UFD under Windows at any time. In this Tutorial, I am going to discuss two other methods: 1. EaseUS Home Partition Master + RMPrepUSB 2. BootIce . This is a disk partitioning, formatting and editing tool, however the English button labels are sometimes confusing or misleading although it is a very useful and powerful utility. A useful feature in both BootIce and RMPrepUSB is that they can re-arrange the Master Boot Record partition table entries so that you can place any one of the four partition tables at the beginning of the MBR partition table. This is very useful as it means you can have up to four Primary Partitions on a UFD and access them one at a time by getting BootIce to re-order the partition table so that the first partition table entry is accessible by Windows. New: The latest versions of RMPrepUSB (2.1.650 and later) include an option to choose which partition to make visible to Windows using the 'Drive - Set Windows accessible partition' (Ctrl-O) function which will read the existing partition table and ask which partition you want to make the first one. This means you don't need to use BootIce to swap accessible partitions once you have created a multi-partition UFD. See the RMPrepUSB YouTube video for a quick demonstration.

Requirements
You can accomplish most of the following using the partitioning, formatting and partition swapping menus in BootIce (see here).

http://www.rmprepusb.com/tutorials/multipartufd

1/6

1/23/2014
20 - Add MEMTEST86+ memory test program to your grub4dos menu.lst file 21 - GRUB4DOS GUIDE (with videos) - how to make a multi-boot drive (+examples) 22 - How to boot PCLINUX (and most other 'difficult' linux versions) without using a 'flat-file' structure 23 - How to fix a 'corrupt' USB drive that causes Windows or RMPrepUSB to stop responding 24 - Boot the Ultimate Boot CD for Windows (UBCD4WIN/XP) or BartPE from a USB drive (includes ISO boot) 25 - Securely ERASE (wipe) your hard disk of ALL data (before disposing of it) 26 - Send and sniff commands to/from your USB device (and see what your BIOS would see!) 27 - Diagnose how your BIOS boots USB drives 28 - Recover files and photos from a corrupt SD card or any drive (free!) 29 - Boot Hirens Boot CD as an ISO file from a USB drive (version 15.2) 30 - How to install XP onto a Hard Disk from an XP ISO on a bootable USB drive 31 - Boot and install Windows 7 or Vista or Server 2008 (both 32 and 64 bit) from ISO files from a single bootable USB install drive 32 - Create a USB drive with multiple Vista/Win7/Server2008 install ISO files in 3 simple steps! 33 - How to create bootable 1.44MB and 2.88MB floppy disk images 34 - The ZALMAN ZM VE200 SATA hard disk caddy with DVD/HDD/FDD emulation 35 - How to make a bootable antivirus AVG RESCUE USB drive 36 - Boot to Hiren's Boot CD from a USB drive (v13/v14/v15.1/15.1DLC) 37 - Create a DOS Bootable USB drive (using grub4dos) suitable for BIOS flashing 38 - Create an iGel Universal Desktop Converter (UDC) installer USB Flash pen 39 - How to repair your USB Flash drive 40 - REDO, a Bare Metal Backup and Recovery solution 41 - Microsoft Standalone System Sweeper (MSSS) ANTIVIRUS Beta Tool 42 - Make a mini Windows 7 bootable USB pen (using MAKE_PE3) 43 - Install Windows 8, Server 2012, Win 7, 2K8 & Vista from multiple ISO files on the same Flash drive 44 - USB Boot Kaspersky 10 & 2012 Rescue Disk (AV) 45 - How to PXE boot grub4dos or WinPE (from a Windows 7 PC) using tftpd 46 - Ubuntu 12.04/11.04/11.10 - boot from ISO 47 - How to install Windows Vista/7/SVR2K8 onto a USB drive (or any partition) 48 - Is your BIOS lying to you about it's RAM memory size? 49 - Control your Notebook/Media Centre PC from your main PC with Synergy 50 - Prepare a bootable USB drive

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB
Download BootIce.exe and copy it to your Desktop (the forum is here, versions here) OR just ... Download and install EaSeus Partition Master Home Edition plus... Download and install RMPrepUSB from this site (v2.1.650 or later).

Method
1. First, use EaseUs Partition Master to create up to 4 Primary (not Logical) partitions on your target UFD. If you intend to run DOS, I would suggest you first create a small (2GB maximum) FAT32 partition for it at the beginning of the UFD. If you intend to run a version of Linux that does not support NTFS, then also create a larger FAT32 partition. If you intend to run Windows XP, Vista, Win7/Win8, then I would suggest a large NTFS or FAT32 partition. Don't forget to click on the Apply button at the top or changes will not take place! You can also use BootIce to do this if you prefer. 2. Once you have the partitions created, use the latest version of RMPrepUSB to install grub4dos to the MBR and copy over the grldr file. I suggest you also install it to the PBR for best 'bootability' on a wider range of systems. Note: If you wish, you can use BootIce to do this, but it does not copy over the grldr file and the grub4dos version it uses may be out of date and so may not work with some of the menus used in my tutorials. It also may not be as 'bootable' as the special RMPrepUSB version. 3. Now place your files on the first partition which should be visible in Windows Explorer and your menu.lst file (use RMPrepUSB F4 to create and edit the menu.lst). Test that it boots using QEMU (press F11). 4. You can use RMPrepUSB or BootIce to swap partitions: 4a. Use RMPrepUSB To add files to the other partitions, you can just use the RMPrepUSB Ctrl-O (O=Order) feature (versions 2.1.650 and later only). Note: RMPrepUSB can also reset the partitions so that they are in standard ascending order (which BootIce does not do).

RMPrepUSB's - Ctrl-O dialogue box

- OR 4b. Use Bootice instead: However, if you want to use BootIce instead, run BootIce and select the USB Flash drive (UFD) in the drop-down list, then click 'Parts Manage ' (i.e Manage Partitions):

http://www.rmprepusb.com/tutorials/multipartufd

2/6

1/23/2014
using linux commands 51 - How to edit or make your own Language.INI file for RMPrepUSB 52 - Install Windows 8 as a VHD (no need to re-partition!) 53 - Windows 8/8.1 To Go (boot Windows 8 from a USB drive!) 54 - How to Fix Write-Protected Read-Only Drives and SD Cards 55 - Boot Slax from a USB drive 56 - Forgotten Windows password? No problem with Kon-Boot! 57 - Automatic grub4dos menus, using hotkeys, hiding the menu and silent startup 58 - Trinity Rescue Kit - boot from USB 59 - Save or list all your current passwords 60 - Add Plop to your grub4dos menu 61 - Run the OCZ SSD Firmware update ISO from a bootable USB Flash drive 62 - Chainload syslinux from grub4dos/grub and vice versa 63 - Install XP and Win7 onto a computer from one USB flash drive containing ISO files! 64 - Boot Abstradrome HDD Regenerator from an image on a USB drive 65 - Make a grub4dos bootable ISO 66 - Boot WifiWay/WiFiSlax wireless security OS from a USB drive (persistent) 67 - Boot Fedora 16/17/18 with persistence from a USB drive using grub4dos 68 - WEE (wee63) and WEEsetup.exe - an alternative bootloader 69 - Boot over the internet with iPXE 70 - FbInst and other popular USB utilities 71 - Grubutils - menuset, wenv, bios, grub4dos utilities and batch files 72 - Easy2Boot - a grub4dos multiboot USB drive that is easy to maintain! 73 - Try Porteus with persistence booting from an ISO using Easy2Boot 74 - Boot Winternals ERD Commander from ISO or flat file structure 75 - Test your memory (RAM/DIMMs) 76 - Quickly setup PXE booting to install any Windows OS or PXE boot linux, etc.! 77 - Create a multiple partition, multi-boot USB Flash drive under Windows 78 - Run live XBMCbuntu from a multiboot USB drive 79 - Make an RM Connect CC3 MultiStation Build USB Flash drive 80 - How to retrieve files from a computer without booting it to an OS (via PXE)! 81 - Make your own automatic Windows restore partition (ImageXbased) 82 - Install XP to hard disk from ISOs using WinPE v3 83 - Download ImageX, BCDBoot and other WAIK tools 84 - Switch XP to AHCI mode 85 - Add the O&O DiskImage Professional ISO to your USB multiboot drive

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB

You will see the partition table of your UFD, now suppose you want to make the 251MB NTFS partition accessible by windows, click on the ReFormat USB Disk button (don't worry, we are not going to reformat the UFD!).

Here you can see the three partitions that I created. To change the order, click on ReFormat USB disk.

You should now see the form as shown below. Use the drop-down list to select the partition you want to access and then click on the Set Accessible button. After a few seconds, you should be able to use Windows Explorer to access the partition and copy or edit files on it.

http://www.rmprepusb.com/tutorials/multipartufd

3/6

1/23/2014
86 - Dynamically change the disk volume label using grub4dos 87 - Install the Ultimate Boot CD onto a USB drive 88 - Boot Avira Rescue from USB 89 - Automated Windows partition backup\restore boot menu using CloneZilla 90 - Install Windows 8 to a VHD file on a USB drive! 91 - Replace Windows XP/Vista/Win7 with Windows 8 without a DVD or USB drive 92 - BITS - Intel BIOS Implementation Test Suite 93 - Boot almost ANY linux ISO from a grub4dos USB drive (e.g. Tails, BackTrack or even Ophcrack)! 94 - Boot BackBox from your USB grub4dos multiboot drive 95 - Make a bootable Windows Recovery USB Flash drive from a Windows 7 system 96 - Add an automatic linux ISO file menu to your grub4dos multiboot USB drive 97 - Write-protect or make a CD/DVD partition on a Flash Drive using SMI_UFDiskUtilities 98 - Add Linux Mint 14 ISO files to your grub4dos multiboot USB drive 99 - Boot Xiaopan with grub4dos 100 - Make and boot from a Win8PE_SE ISO file 101 - Patch a file using grub4dos 102 - Speed up WinToFlash XP installs (+fix 'NTLDR is missing' error) 103 - Fix or Repair XP if it is not booting (using the XP Recovery Console) 104 - Boot pclinux from ISO with persistence 105 - Clone your Windows XP Pro system to a USB drive (using USBoot) 106 - Boot any Linux LiveCD ISO from your Hard Disk 107 - Quick way to make a WinPE v3 and Backup/Restore ISO (using Macrium Reflect) 108 - XP Install using Rufus and add it to your grub4dso multiboot USB drive 109 - USB Rubber Ducky Hack Device (Hak5) 110 - Run full Windows XP to Go! from a USB drive 111 - How to semi-automate Windows driver installation 112 - Virus/RootKit/Ransomware Removal and CleanUp 113 - How to use Easy2Boot with FlashBoot (for that odd system that won't boot properly) 114 - How to make an Easy2Boot MultiBoot USB Flash drive using linux 115 - Convert a WinPE 'Flat-File' ISO (e.g. ESET SysRescue) to a ramdisk (boot.wim) ISO 116 - Add Hirens 9.5 to your USB Multiboot drive (or Easy2Boot USB drive) 117 - Install Windows 98SE from an ISO file on USB drive using Easy2Boot 118 - Make bootable Clonezilla backup/restore USB Hard Disk 119 - Boot HitManPro KickStart from a grub4dos multiboot USB Flash

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB

Finally hit the Cancel button of the Repartition and Format USB Device form and then hit the Close button on the Partitions Management form. Now click the Refresh button in BootIce (or Exit) and if you still have EaSeus Partition Master open, click on the Refresh button of that too - otherwise they will not show the new partition arrangement. 5. You can now copy files to the new volume. If you have more partitions, simply use RMPrepUSB - Ctrl-O or BootIce to make a different partition visible to Windows and then copy your files to that partition.

Here you can see that the third FAT16 partition is now first in the partition table and thus accessible to Windows. Tip: remember to set the first partition back so that it is in first place in the table before you test it!

Notes
grub4dos will always reference the first entry in the partition table as (hd0,0) - therefore it is important that when you test your grub4dos multiboot UFD (for instance in QEMU) and you have a menu.lst file that references the other partitions using (hd0,x ), you must always use BootIce to set back the first partition to be the first entry in the partition table. Note that RMPrepUSB has a 're-order partitions' option which will re-arrange the four partition entries into ascending order (the same order used by Diskpart). grub4dos will try to find the grld file on all the partitions in turn, and when it find the grldr file, it will set the current device to be the volume that it find the grldr file on. It will then try to find a menu.lst and set the current partition that has the menu.lst file in it, to be the default partition. Therefore, if you do not always set the same partition table entry back to be the first table entry, a path in the menu of /xxx.iso may not work correctly because the default root device will be different. It is therefore

http://www.rmprepusb.com/tutorials/multipartufd

4/6

1/23/2014
drive Useful Articles Advanced Format (4K sector) hard disks Fix USB 3.0 'This device can perform faster' System Tray message! Download a whole website and view it offline using wget! Getting started with the Raspberry Pi (RPi) Raspberry Pi + Motorola Atrix 4G lapdock Boot from CD/USB/Floppy to access an NTFS partition Recording videos with Camstudio+Movie Maker for YouTube Reboot.pro Tutorials XP Setup CD/ISO Clean Installation Reference Sitemap

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB
best practise to use find --set-root <a marker file> in all your menu.lst entries to ensure the correct partition has been selected as the default current volume by grub4dos. e.g. do not use a menu like this because (hd0,1) may get moved around when you re-order the partitions...
title Boot YlmF (Windows Like OS) Non-Persistent map (hd0,1)/Ylmf_OS_3.0.iso (0xff) map --hook root (0xff) kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper scan/filename=/ylmf_OS_3.0.iso floppy.allowed_drive_mask=0 splash initrd /casper/initrd.img iso-

Instead use a menu like this...


title Boot YlmF (Windows Like OS) Non-Persistent find --set-root /Ylmf_OS_3.0.iso map /Ylmf_OS_3.0.iso (0xff) map --hook root (0xff) kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper scan/filename=/ylmf_OS_3.0.iso floppy.allowed_drive_mask=0 splash initrd /casper/initrd.img iso-

NTFS+FAT32
You can make a multipartition USB Flash boot drive using the free EaseUS Partition Master Home Edition. You can make a drive with the following partitions: 1. Primary FAT32 (0ch) - Active boot partition (maybe contains MS-DOS or FreeDOS boot files or both) - Use RMPrepUSB to create this so it will be FAT32 Type 0C (do not use Easeus Home Partition manager to make this as it makes a Type 0Bh FAT32 partition) 2. Primary NTFS (07h) - to hold large ISO files - e.g. Windows All In One ISO files (see Tutorial 43) - Easeus Home Partition manager can create this 3. Primary EXT3 - can be used as a swap partition by a linux OS 4. (unused) - can be used to map a linux ISO - so keep it free - see Tutorial 96 for details As DOS uses the BIOS for disk access and some BIOSes are not able to access sectors past 8GB (due to bugs in the USB int 13h code), it is always best to make the FAT32 partition start at the beginning of the USB disk. As Windows Explorer will only see the first partition on a flash drive, you can use the RMPrepUSB Ctrl-O function to swap ptn 1 with ptn 2 and then copy or edit the files on each partition. You can then install grub4dos to the FAT32 ptn using RMPrepUSB make sure that the FAT32 ptn is the first one and is visible in Explorer. Now, if you try to boot Windows XP, PE, Vista, 7, 8, Server 2008, etc from the NTFS partition - when Windows boots, it will not be able to access any files on the NTFS partition if it is the 2nd partition on the flash drive. One way to fix this is to ensure that the NTFS partition appears first in the partition table - this means you must remember to always leave the USB stick partition arrangement with the NTFS ptn set to the first position. Swapping parttions using grub4dos To get around this, you can add some some grub4dos commands to swap over the partition entries. So the command at the start of the menu.lst on the FAT32 partition will set the FAT32 partition entry in the table as the first partition, and the commands at the start of the NTFS menu.lst will set the NTFS partition entry as the first entry in the partition table. The two sets of menu commands are attached in the g4d_ptn_swap.zip file below. You might like to use the SetPtn1.g4b grub4dos batch file (which also requires wenv). This displays a table of the current MBR partitions to the user and asks him which partition he wants to make the first one. You can automate the batch file with no user prompts and add it to your menu.lst files if you wish. Type SetPtn1.g4b with no parameters to see how to use the program.

http://www.rmprepusb.com/tutorials/multipartufd

5/6

1/23/2014

77 - Create a multiple partition, multi-boot USB Flash drive under Windows - RMPrepUSB

The multiboot solution Easy2Boot had a .mnu file that adds a menu entry which allows you to swap over partition 1 with partition 2. This means you can 'hide' all the files on the Easy2Boot partition.

SetPtn1.zip (11k) g4d_ptn_swap.zip (2k)


Steve Si, 8 Jun 2013 10:21 Steve Si, 5 Apr 2013 09:14 v.1 v.2

Sign in | Report Abuse | Print Page | Remove Access | Powered By Google Sites

http://www.rmprepusb.com/tutorials/multipartufd

6/6

Anda mungkin juga menyukai