IPB

Welcome Guest ( Log In | Register )

9 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Multiboot Usb (pe, Linux And Dos), Using Syslinux, GRUB4DOS and/or multiple partitions
diddy
post Nov 9 2006, 05:07 PM
Post #1


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



Guide for Multi-booting from a USB Drive

During my experiments (+ searching forums) I have come accross two different methods for multibooting USB sticks. Method 1 involves using a bootloader (such as Syslinux or GRUB) with a USB stick containing one partition. Method 2 uses a USB stick containing multiple partitions, each containing their own boot sector.

The following guide will create a multi-boot USB stick with options for BartPE, Linux (DSL, Puppy Linux & Gparted), Windows PE 2.0 and various floppy boot disk images (Windows98, Memtest86) - additional options can be added. You will need a 512MB USB stick if you want to include all of the options (excluding WindowsPE 2.0) in this guide (files take up approximately 312MB, leaving plenty of room for data storage). If you want to add Windows PE 2.0 you will need a larger drive - if adding PE 2.0 read step 10 before proceeding.

I take no credit for the ideas in this guide, as it is a compilation of ideas taken from various web sites/forums. In a frantic effort to get this working I chased links from forum to forum without taking any notes and cannot remember (or find) where some of the information came from.

*NOTE*
Bios support for booting from a USB stick is dependent on your motherboard. There is no guarantee that this guide will work for you - I take no responsibility if anything goes wrong. For information about booting from USB drives look here:
http://www.pcw.co.uk/articles/print/2152896
http://home.graffiti.net/jaclaz:graffiti.n...SB/USBfaqs.html

I used a 1GB Kingston Datatraveller 2.0 USB with Asus A7V400-MX SE Motherboard.

________________________________________________________________

Method 1_1 - Using Syslinux

Step 1 - download the following

* HPUSBFW.EXE (HP USB Disk Storage Format Tool) - used Version 2.0.6
* syslinux - used Version 3.31
* w2k3 service pack 1 (if using BartPE)
* OS's you would like to include (BartPE, WindowsPE etc)

Step 2a - Test whether drive is bootable (optional)

As noted earlier, Bios support for booting from USB devices is inconsistant. I would advise you to test whether you are able to boot at this point before proceeding with the following steps, as you will save yourself a great deal of time. You will need to insert a DOS floppy boot disk (or mount a disk image in a virtual floppy drive). Use HP's USB Disk Storage Format Tool to make your drive bootable.

* Run HPUSBFW.EXE and select the following options.

Device - your USB Drive
File System - FAT
Create DOS Startup Disk - check box.
Using DOS System Files Located at: - browse to your floppy disk

* START
* Following files should have been copied to your USB drive - command.com, MSdos.sys and io.sys
* Copy other files from your floppy to your USB drive (do not replace command.com, MSdos.sys and io.sys)

A detailed guide is available here:
http://www.nforcershq.com/forum/viewtopic.php?p=575175

Now reboot your computer and change the bios settings to boot from your USB drive. The settings will vary depending on your motherboard. On ASUS A7V400-MX SE Motherboard - press DEL to enter setup. Goto the "boot" menu and select the "Hard Disk Drives" option, and change the list so that your USB Key is displayed as the first hard disk to boot (prior to formatting with HPUSBFW.EXE my USB drive did not show up in the bios settings). Hopefully your USB drive will boot successfully.


Step 2b - Format USB Drive

Use HP's USB Disk Storage Format Tool to make your drive bootable.
* Run HPUSBFW.EXE

Device = your USB Drive
File System = FAT
Leave all other settings empty
START


Step 3 - Install syslinux

* Create folder C:\syslinux
* Extract the contents of the syslinux zip file downloaded in step 1 to C:\syslinux
* Run the following command C:\syslinux\win32\syslinux E: (where E: is your USB Drive)

If the install was successful ldlinux.sys should have been created in the USB drive's root.


Step 4 - Create boot menu + config file

* Create menu.txt (in notepad) - leave blank for now
* Create syslinux.cfg (in notepad) and add the following text
CODE
PROMPT 1
TIMEOUT 0
DEFAULT 1
DISPLAY Menu.txt



Step 5 - Add bootable floppy disk image(s)

a) Copy memdisk from C:\syslinux\memdisk to the root of your USB Drive
b) Copy a disk image to the root of your USB Drive (e.g. win98.ima)
c) Edit menu.txt and include the following text (without inverted commas) "1.- Windows 98 boot disk"
d) Edit syslinux.cfg and add the following lines
CODE
LABEL 1
KERNEL memdisk
APPEND initrd=win98.ima

Repeat b), c) and d) for each bootable disk image you want to include, and add corresponding entries in menu.txt and syslinux.cfg. e.g.

* Copy Memtest86.ima to the root of your USB Drive
* Edit menu.txt and include the following text "2.- Memtest86"
* Edit syslinux.cfg and add the following lines
CODE
LABEL 2
KERNEL memdisk
APPEND initrd=Memtest86.ima



Step 6 - Add Puppy Linux

* Download the latest Puppy Linux ISO file - Tested using "puppy-2.11-seamonkey.iso"
* Extract the following from the ISO file - initrd.gz, pup_2**.sfs, vmlinuz
* Copy initrd.gz, pup_2**.sfs and vmlinuz to the root of your USB Drive
* Create USBFLASH file in the root of your USB Drive
* Edit menu.txt and include the following text "3.- Linux Puppy"
* Edit syslinux.cfg and add the following lines
CODE
LABEL 3
KERNEL vmlinuz
APPEND root=/dev/ram0 initrd=initrd.gz PMEDIA=usbflash PKEYS=uk



Step 7 - Add DSL (Damn Small Linux)

* Download the latest DSL Embedded .ZIP file - Tested using "dsl-3.1RC2-embedded.zip"
* Extract the KNOPPIX folder (with contents) from the .ZIP file to the root of your USB Drive
* Extract linux24 and minirt24.gz from the .ZIP file to the root of your USB Drive
* Edit menu.txt and include the following text "4.- Damn Small Linux"
* Edit syslinux.cfg and add the following lines
CODE
LABEL 4
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal



Step 8 - Add gparted

GParted (Gnome Partition Editor) offers some of the functionality of Paragon's Partition Manager at no cost (including creating, resizing and moving partitions).

* Download the latest gparted liveusb .ZIP file - Tested using "gparted-liveusb-0.3.1-1.zip"
* Extract the contents of the .ZIP file to a temporary location
* Rename initrd.gz to gpinitrd.gz (so that it can co-exist with initrd from Puppy Linux)
* Copy gpinitrd.gz, linux and gparted files from the temporary location to the root of your USB Drive
* Edit menu.txt and include the following lines
CODE
5.- GParted
6.- GParted (Use if RAM < 64MB)

* Edit syslinux.cfg and add the following lines
CODE
LABEL 5
KERNEL linux
APPEND noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=65000

LABEL 6
KERNEL linux
APPEND noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=16384



Step 9 - Add BartPE

You will need to create a RAM loading image to boot BartPE from this drive. This process is beyond the scope of this tutorial, however the relevant information is available elsewhere. Either an ISO file or SDI file can be booted. Follow the instructions here for ISO:
http://www.911cd.net/forums//index.php?showtopic=10482

or here for SDI:
http://www.911cd.net/forums//index.php?showtopic=12413
http://www.myitforum.com/articles/8/view.asp?id=8832

*IMPORTANT* Remember to overwrite the RAMDISK.SYS in BartPE with the RAMDISK.SYS from Windows 2003 sp1 before building the image file

* Copy either the ISO or SDI file to the root of your USB Drive and change name to PE.ISO (or PE.SDI).
* Create a WINNT.SIF file at the root of your USB Drive.
* If booting an ISO file contents of WINNT.SIF should be as follows (where PE.ISO is the name of your ISO file):
CODE
[SetupData]
BootDevice = "ramdisk(0)"
BootPath = "\i386\System32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=PE.iso"

* If booting an SDI file contents of WINNT.SIF should be as follows (where PE.SDI is the name of your SDI file):
CODE
[SetupData]
BootDevice = "ramdisk(0)"
BootPath = "\i386\System32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdimageoffset=36352 /rdpath=PE.SDI"

* Copy SETUPLDR.BIN from Windows 2003 SP1 to the root of your USB drive and rename to NTLDR
* Copy NTDETECT.COM to the root of your USB drive
* Copy PE2USB.BIN from pebuilder3110a to the root of your USB drive and rename to PE.bss
* Edit menu.txt and include the following text "7.- BartPE"
* Edit syslinux.cfg and add the following lines
CODE
LABEL 7
KERNEL pe.bss
APPEND -



Step 9a - Add another BartPE

Information has been adapted from "Use Multiple Unattended Files In A Win2k/xp/2k3 Cd" by the Truth

A second disc image (again either an ISO or SDI file) can be added to the USB drive. To do so you will need to use a cracked SETUPLDR.BIN from Windows2003 SP1 (search this forum for information re what to hex edit, or download a cracked version).
* Rename your cracked SETUPLDR.BIN to NTLD2 and copy to the root of your USB drive
* Hex edit NTLD2 and replace all referrences to WINNT.SIF with NTLD2.SIF (should be 9 entries replaced)
* Copy PE2USB.BIN to the root of your USB drive and rename to NTLD2.bss
* Hex edit NTLD2.bss and replace NTLDR with NTLD2
* Create a file named NTLD2.SIF - following the instructions for WINNT.SIF in Step 9. Replace the text "/rdpath=PE.ISO" (or "/rdpath=PE.ISO") with "/rdpath=NTLD2.ISO" (or "/rdpath=NTLD2.SDI").
* Name your new image file NTLD2.ISO (or NTLD2.SDI) and copy to the root of your USB drive
* Add an entry in menu.txt (eg "8.- BartPE 2")
* Add an entry in syslinux.cfg
CODE
LABEL 8
KERNEL NTLD2.bss
APPEND -

The name of your .SIF file is irrelevent, as long as it is 5 characters long. This also applies to your renamed SETUPLDR.BIN. Step 9a can be repeated as many times as you like to include multiple BartPE images.


Step 10 - Add Windows PE 2.0 (optional)

Windows PE 2.0 can be added - you will need to download, and install, the Windows Automated Installation Kit (WAIK) from the following site
http://www.microsoft.com/downloads/thankyo...;displayLang=en

To add PE 2.0 you will need to extract a bootsector from a working installation (on USB stick) using Bart's mkbt.exe (contained in pebuilder). To create a working installation you will need to follow the instructions in the user guide contained in the WAIK (in the "Windows PE Walkthroughs section"). Ignore the instructions to use FAT32 file system and use FAT instead.

Copy the extracted bootsector to the root of your USB drive and rename to PE2.bss
* Follow the instructions in the WAIK guide to create PE 2.0 files.
* Copy the contents of the "ISO" folder created in the proceding step to the root of your USB stick.
* Add an entry in menu.txt (eg "9.- WinPE 2.0")
* Edit syslinux.cfg and add the following lines
CODE
LABEL 9
KERNEL pe2.bss
APPEND -



Finished

If all steps were followed your completed menu.txt should look like this:
CODE
1.- Windows 98 boot disk
2.- Memtest86
3.- Linux Puppy
4.- Damn Small Linux
5.- GParted
6.- GParted (Use if RAM < 64MB)
7.- BartPE
8.- BartPE 2
9.- WinPE 2.0

syslinux.cfg should look something like this:
CODE
PROMPT 1
TIMEOUT 0
DEFAULT 1
DISPLAY Menu.txt
LABEL 1
KERNEL memdisk
APPEND initrd=win98.ima

LABEL 2
KERNEL memdisk
APPEND initrd=Memtest86.ima

LABEL 3
KERNEL vmlinuz
APPEND root=/dev/ram0 initrd=initrd.gz PMEDIA=usbflash PKEYS=uk

LABEL 4
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal

LABEL 5
KERNEL linux
APPEND noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=65000

LABEL 6
KERNEL linux
APPEND noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=16384

LABEL 7
KERNEL pe.bss
APPEND -

LABEL 8
KERNEL NTLD2.bss
APPEND -

LABEL 9
KERNEL pe2.bss
APPEND -

*IMPORTANT* The APPEND sections may have become wordwraped on this page and should be on one line.

Now reboot your PC and change Bios settings to boot from your USB Drive. If everything went according to plan you should see a menu with options 1-7 - type the corresponding number and press ENTER


Final Thoughts

* Booting floppy disk images is very straightforward and adding additional images should not be difficult (as long as MEMDISK is able to boot them).

* Booting Linux is more complicated and involved some trial and error. If the distro includes its own syslinux config file (syslinux.cfg), this can be edited. As an example the syslinux.cfg file in dsl-3.1RC2-embedded.zip contained the following entries:
CODE
DEFAULT linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
TIMEOUT 300

PROMPT 1
DISPLAY boot.msg
F1 boot.msg
F2 f2
F3 f3
LABEL dsl
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
LABEL knoppix-txt
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=normal initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
LABEL expert
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic BOOT_IMAGE=expert frugal
LABEL fb1280x1024
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=794 xmodule=fbdev initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
LABEL fb1024x768
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 xmodule=fbdev initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
LABEL fb800x600
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=788 xmodule=fbdev initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
LABEL failsafe
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us vga=normal atapicd nosound noapic noacpi acpi=off noscsi noapm nousb nopcmcia nofirewire noagp nomce nodhcp xmodule=vesa initrd=minirt24.gz BOOT_IMAGE=knoppix frugal
LABEL userdef
KERNEL linux24
APPEND ################################################################################
################################################################################
#
################################################################################
#
################################################################################
#
################################################################################
#
################################################################################
#
##########################


In this guide only the default entry was used.
CODE
DEFAULT linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
was edited to
CODE
LABEL 4
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal

* Booting BartPE took many hours of trial and error before stumbling on renaming a bootsector to .bss extension and using this as a kernel entry to chain load PE. Typically after all this work and having just completed this guide I came across the following forum entry (with link to Irongeeks site/guide), which would have saved me days of work. It's definately worth checking this link as it includes information on dualbooting with SLAX Linux, which can be added to your USB drive:
http://www.911cd.net/forums//index.php?showtopic=18741

The boot menu (menu.txt) outlined in this guide is very basic. Two other menu systems are referenced in the syslinux download and will be worth adding. I would however recommend that you stick with menu.txt until everything is tested and working.

________________________________________________________________

Method 1_2 - Using GRUB4DOS

This section is dedicated to Jaclaz whose name seems to crop up whenever GRUB is mentioned. I have found his help invaluable and would not have been able to complete this section without him.

I don't want to repeat myself too much in this section, as its very similar to the Syslinux method above. You will need to download the latest version of GRUB4DOS - I used version 0.4.2pre11. I previously tried using version 0.4.1 from Sourceforge, however this did not work on my USB drive - it failed to find the menu.lst configeration file.

Repeat the following steps from the Syslinux method:
Step 1
Step 2a
Step 2b
Ignore Step 3 and Step 4

To install GRUB4DOS:
* Download latest GRUB4DOS package and extract contents to a temporary location.
* Install an NT boot sector to the USB partition using Bart's mkbt.exe (mkbt.exe and bootsector pe2usb.bin are included with pebuilder) - e.g.
CODE
mkbt -x pe2usb.bin F:

Where pe2usb.bin is bootsector and F: is the partition on USB stick.

* Now create a boot.ini file on the USB stick, with the following code:
CODE
[boot loader]
timeout=10
default=C:\grldr
[operating systems]
C:\grldr="Grub4Dos"

* Copy NTDETECT.COM and NTLDR from a working Windows XP installation to the USB stick.
* Copy GRLDR from the GRUB4DOS package downloaded earlier to the USB stick.
* Create menu.lst file (using notepad) on the USB stick with following text - this is the GRUB configeration file.
CODE
color white/red black/red
default 0
timeout 10


To add bootable floppy disk images

Repeat Step 5, but ignore instructions to add entries in menu.txt and syslinux.cfg. To add Win98.ima to GRUB add the following lines to menu.lst:
CODE
title Windows 98 boot disk
find --set-root /grldr
kernel /memdisk
initrd /win98.ima

To add Memtest86.ima to GRUB add the following lines to menu.lst:
CODE
title Memtest86
find --set-root /grldr
kernel /memdisk
initrd /Memtest86.ima


To add Puppy Linux

Repeat Step 6, but ignore instructions to add entries in menu.txt and syslinux.cfg. Add following lines to menu.lst:
CODE
title Linux Puppy
find --set-root /grldr
kernel /vmlinuz root=/dev/ram0 initrd=initrd.gz PMEDIA=usbflash PKEYS=uk
initrd /initrd.gz


To add DSL (Damn Small Linux)

Repeat Step 7, but ignore instructions to add entries in menu.txt and syslinux.cfg. Add following lines to menu.lst:
CODE
title Damn Small Linux
find --set-root /grldr
kernel /linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
initrd /minirt24.gz


To add gparted

Repeat Step 8, but ignore instructions to add entries in menu.txt and syslinux.cfg. Add following lines to menu.lst:
CODE
title GParted
find --set-root /grldr
kernel /linux noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=65000
initrd /gpinitrd.gz

title GParted (Use if RAM < 64MB)
find --set-root /grldr
kernel /linux noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=16384
initrd /gpinitrd.gz


To add BartPE

Repeat Step 9, but ignore instructions to copy and rename pe2usb.bin. As ntldr already exists on the USB stick (and needs to remain there to load grldr) don't rename setupldr.bin (from w2k3 sp1) - GRUB can chainload this file directly. Also ignore instructions to add entries in menu.txt and syslinux.cfg. Add following lines to menu.lst:
CODE
title BartPE
find --set-root /grldr
chainloader /setupldr.bin


To add another BartPE

Repeat Step 9a, but ignore instructions to copy and rename pe2usb.bin. Also ignore instructions to add entries in menu.txt and syslinux.cfg. Add following lines to menu.lst:
CODE
title BartPE 2
find --set-root /grldr
chainloader /ntld2


To add Windows PE 2.0

Oops! At present GRUB4DOS does not support directly chainloading bootmgr (WinPE 2.0's equivalent of setupldr.bin/ntldr). The only way to add WinPE 2.0 is to create a separate partition with bootsector (refer to method 2 below) and then chainload the partition using the following entry in menu.lst:
CODE
title WinPE 2.0
find --set-root /sources/boot.wim
chainloader +1


Completed menu.lst:
CODE
color white/red black/red
default 0
timeout 10

title Windows 98 boot disk
find --set-root /grldr
kernel /memdisk
initrd /win98.ima

title Memtest86
find --set-root /grldr
kernel /memdisk
initrd /Memtest86.ima

title Linux Puppy
find --set-root /grldr
kernel /vmlinuz root=/dev/ram0 initrd=initrd.gz PMEDIA=usbflash PKEYS=uk
initrd /initrd.gz

title Damn Small Linux
find --set-root /grldr
kernel /linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce noapic qemu quiet BOOT_IMAGE=knoppix frugal
initrd /minirt24.gz

title GParted
find --set-root /grldr
kernel /linux noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=65000
initrd /gpinitrd.gz

title GParted (Use if RAM < 64MB)
find --set-root /grldr
kernel /linux noapic initrd=gpinitrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=16384
initrd /gpinitrd.gz

title BartPE
find --set-root /grldr
chainloader /setupldr.bin

title BartPE 2
find --set-root /grldr
chainloader /ntld2

title WinPE 2.0
find --set-root /sources/boot.wim
chainloader +1


So why bother with GRUB if Syslinux works? IMHO there are advantages and disadvantages to each. I've personaly found Syslinux to be more stable and user friendly than GRUB, however as USB sticks get bigger we will eventually run into problems as, according to the documentation ...SYSLINUX is unsafe to use on any filesystem that extends past cylinder 1024....

GRUB has a lot of features and can boot XP/BartPE/WinPE from a non first hard disk by remapping the drive containing the OS as 1st Hard Drive. I've not had any stability problems since switching to version 0.4.2pre11. GRUB can also access subfolders, which will enable you (with the correct entries in menu.lst) to clean up the root of the drive. GRUB can also be used with method 2 to save the need to install a boot manager to MBR (see Step 9a below).

________________________________________________________________

Method 2 - Using multiple partitions

In Windows XP a USB stick is usually mounted as a removable disk - even if it contains multiple partitions only the first will be accessable. To access other partitions on the USB stick you will need to mount the stick as a fixed drive. This can be done using the Hitachi Microdrive Filter (cfadisk.sys). The following link contains a detailed walkthrough and was used to compile most of this guide:
http://www.msfn.org/board/lofiversion/index.php/t69211.html

You will need to download the following:

* Hitachi Microdrive Filter - download from xpefiles
* HPUSBFW.EXE (HP USB Disk Storage Format Tool) - used Version 2.0.6
* syslinux - used Version 3.31
* w2k3 service pack 1 (if using BartPE)
* OS's you would like to include (BartPE, WindowsPE etc)
* SPecial FDISK


Step 1 - Planning

Plan which Operating Systems you want to include + how many partitions are needed. I used a 1GB Kingston Datatraveller 2.0 (actual size = 984MB) with 4 primary partitions (all partitions formated using FAT file system):

Partition 1 = 596MB -> Syslinux partition
Partition 2 = 196MB -> WindowsPE 2.0 partition
Partition 3 = 172MB -> BartPE partition
Partition 4 = 15MB -> MSDOS partition

Remember only partition 1 will be accessable from a Windows XP PC (unless the Hitachi Microdrive Filter is installed). This should therefore be the largest partition and should also be used for data storage.


Step 2 - Installing Microdrive Filter

Download the filters from XPfiles and extract the contents to a hard drive. Open cfadisk.inf and edit the following section:
CODE
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC801
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC815
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-11000__________________________SC2IC915

%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC801
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC815
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DSCM-10512__________________________SC1IC915

%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC501
%Microdrive_devdesc% = cfadisk_install,IDE\DiskIBM-DMDM-10340__________________________MD2IC601

; debug on VMWare/special drive
; %Microdrive_devdesc% = cfadisk_install,IDE\DiskVMware_Virtual_IDE_Hard_Drive___________00000001
; %Microdrive_devdesc% = cfadisk_install,IDE\DiskIC25N040ATCS04-0________________________CA4OA71A

to
CODE
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,


Now add ID specific to your usb stick. To find the ID insert your USB stick and use REGEDIT to check the value for your device in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR registry key

For Kingston DataTraveler the key is HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_Kingston&Prod_DataTraveler_2.0&Rev_PMAP

There will be an entry under a subkey for HardwareID. Open this and there will be a string of values - for the kingston Datatraveller values are:
CODE
USBSTOR\DiskKingstonDataTraveler_2.0PMAP
USBSTOR\DiskKingstonDataTraveler_2.0
USBSTOR\DiskKingston
USBSTOR\KingstonDataTraveler_2.0P
KingstonDataTraveler_2.0P
USBSTOR\GenDisk
GenDisk


We only need to use the first value in the HardwareID string - in this case USBSTOR\DiskKingstonDataTraveler_2.0PMAP. Now copy this value into the [cfadisk_device] section in cfadisk.inf. My new cfadisk.inf contains the following code:
CODE
[Version]
Signature="$Windows NT$"
Class=DiskDrive
ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}
Provider=%HGST%
LayoutFile=layout.inf
DriverVer=12/14/2002,1.00.0000.1

[Manufacturer]
%HGST% = cfadisk_device

[DestinationDirs]
cfadisk_copyfiles=12  ; %SystemRoot%\system32\drivers
gendisk_copyfiles=12  ; %SystemRoot%\system32\drivers

[cfadisk_copyfiles]
cfadisk.sys

[gendisk_copyfiles]
disk.sys

; ---------------------

[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskKingstonDataTraveler_2.0PMAP

[cfadisk_addreg]
HKR,,"LowerFilters",0x00010008,"cfadisk"

[cfadisk_install]
CopyFiles=cfadisk_copyfiles,gendisk_copyfiles

[cfadisk_install.HW]
AddReg=cfadisk_addreg

[cfadisk_install.Services]
AddService=disk,2,gendisk_ServiceInstallSection
AddService=cfadisk,,cfadisk_ServiceInstallSection

[gendisk_ServiceInstallSection]
DisplayName    = "Disk Driver"
ServiceType    = 1
StartType      = 0
ErrorControl   = 1
ServiceBinary  = %12%\disk.sys
LoadOrderGroup = SCSI Class

[cfadisk_ServiceInstallSection]
DisplayName    = "CompactFlash Filter Driver"
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\cfadisk.sys
LoadOrderGroup = Pnp Filter

; -----------------------

[Strings]
HGST = "Hitachi Global Storage Technologies"
Microdrive_devdesc = "Hitachi Microdrive"


Once cfadisk.inf has been edited with your ID string you will need to update the driver in windows. Open Device manager and check for your USB drive in "Disk Drives". Right click on the entry for your drive and select option to update driver.

* Don't use windows update
* Install from a list or specific location
* Don't search. I will choose the driver to install
* Have disk
* Browse to location of edited cfadisk.inf

Update and restart windows

If the driver installed successfully your USB stick should now be mounted as a Local Disk not Removable Disk


Step 3

Format the disk using HP's USB Disk Storage Format Tool (refer to Method 1 - Step 2)


Step 4

Use XP's Disk Management to delete the partition you've just created. Now use Disk Management to create the partitions planned during Step 1.


Step 5

Install boot sector to syslinux partition (refer to Method 1 - Step 3) and copy syslinux files, disk images and OS files to the partition. I have included the OS's and images detailed in Method 1 - but have removed BartPE and WindowsPE.


Step 6

Install boot sector to Windows PE 2.0 partition (refer to Method 1 - Step 10 for instructions on creating bootsector) using mkbt.exe. - e.g.
CODE
mkbt -x WinPE2.bin E:

Where WinPE2.bin is bootsector and E: is Windows PE 2.0 partition on USB stick.

Now copy PE 2.0 files to Windows PE 2.0 partition on USB stick.


Step 7

Install boot sector to BartPE partition using mkbt.exe (bootsector pe2usb.bin is included with pebuilder) - e.g.
CODE
mkbt -x pe2usb.bin F:

Where pe2usb.bin is bootsector and F: is BartPE partition on USB stick.

Now copy BartPE files to BartPE partition on USB stick.


Step 8

Install MSDOS bootsector to MSDOS partition using mkbt.exe and copy files to the partition.


Step 9a

If GRUB4DOS is installed instead of (or as well as) Syslinux Step 9b can be ignored and GRUB can be used instead of installing a boot manager to MBR. Just add the following entries to the GRUB configeration file menu.lst:
CODE
title WinPE 2.0
chainloader (hd0,1)+1

title BartPE
chainloader (hd0,2)+1

title DOS
chainloader (hd0,3)+1

These entries will only work if the USB stick is booted as 1st Hard Disk as the chainloader entries are hardcoded to a particular drive and partition. Alternatively the following menu.lst entries can be used:
CODE
title WinPE 2.0
find --set-root /sources/boot.wim
chainloader +1

title BartPE
find --set-root /PE.SDI
chainloader /ntldr

title DOS
find --set-root /AUTOEXEC.BAT
chainloader +1

These entries all search for a unique file and then set the (1st) drive containing that particular file as root. This might not work properly if the file is present on more than one drive


Step 9b

Install a boot manager - I have successfully tested BootItNG and XOSL boot managers however the main drawback with these programs is the need to use a seperate partition for the boot files, as they will not fit in the MBR. SPFDISK fits in the MBR and is able to boot all OS's I have tested on it - I will therefore use SPFDISK in this guide.

Run and install SPecial FDISK (SPFDISK). The easiest way to do this is to include SPFDISK in an MSDOS boot disk - then boot from this disk. If you do not have a floppy drive installed on your computer then include SPFDISK in a disk image on the syslinux partition - then boot the USB drive from this (via syslinux - memdisk kernal). If booting via syslinux use XP's Disk Management to make sure that the syslinux partition is active. *NOTE* - Before running SPFDISK I would advise disabling any other drives in the BIOS to ensure that any changes are not made to existing HDD's. If you do not want to do this then at least ensure that the USB stick is listed as the first HDD in the BIOS settings.

* Select Option A. Append Boot Item
* Select your USB stick from the list
* Select partition (this will be the first option in your boot menu).
* Enter a name for this partition (which will be displayed in your boot menu)

Repeat the above for each partition on your USB stick.

* When you have added all partitions to the boot menu choose option G. Begin Install
* Select option 2.MBR
* Select your USB stick from the list

Now reboot your PC and change Bios settings to boot from your USB Drive. If everything went according to plan you should see a boot menu.

________________________________________________________________

Additional Notes For Hitachi MicroDrive Filter

I have been able to get the Kingston USB stick used to test this guide to mount as a fixed disk in WindowsPE 2.0 but have so far been unsuccessful in repeating this using BartPE. To mount as a fixed drive in Windows PE 2.0:

From a WindowsXP installation (with the Hitachi Microdrive Filter installed) export the following registry keys:

* HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\cfadisk
* HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_... - import the settings for you own USB stick
* Use notepad to open the two files you've just exported and replace all instances of HKEY_LOCAL_MACHINE\SYSTEM\ with HKEY_LOCAL_MACHINE\_PE_SYSTEM\

Now complete the following steps:

* Open [b]Windows PE Tools Command Prompt
(from start menu)
* Type copype.cmd x86 c:\winpe_x86 - to create WindowsPE files
* Type imagex /mountrw c:\winpe_x86\ISO\sources\boot.wim 1 c:\winpe_x86\mount - to mount the image.
* Open Regedit - select HKLM key and then select Load Hive (from File TAB).
* Now browse to c:\winpe_x86\mount\windows\system32\config directory and select SYSTEM
* When prompted for a key name type _PE_SYSTEM
* Import the two files we edited earlier
* Unload the _PE_SYSTEM hive
* Close registry editor
* Copy cfadisk.sys (from Hitachi MicroDrive Filter download) to c:\winpe_x86\mount\windows\system32\drivers
* In the Windows PE Tools Command Prompt type imagex /unmount c:\winpe_x86\mount /commit - to unmount and save changes to boot.wim
* Copy the files from c:\winpe_x86\ISO\ to the Windows PE partition on your USB stick
* Now reboot your PC and change Bios settings to boot from your USB Drive.

On booting from the PE 2.0 files on my USB stick all four partitions were visable (and mounted as Local Disks) in my file manager.

________________________________________________________________

I hope that someone finds this guide useful and that it adds to existing information.

I would like to get some feedback re which Motherboards and USB sticks work. Please post any successful combinations.

Many thanks to the authors and all who posted in the links I have included. Thanks also to flyakite's original "Creating a Multi-Boot DVD" guide, which got me started on multi-booting.

Last but definately not least, many thanks to Bart Lagerweij for making pebuilder available.
Go to the top of the page
 
+Quote Post
jaclaz
post Nov 10 2006, 05:36 AM
Post #2


Platinum Member
*****

Group: Moderator
Posts: 4,582
Joined: 25-July 04
From: Italy
Member No.: 6,779



VERY good!

You did an exceptionally good work in putting together info scattered all around the forum. smile.gif

If I may, to "squeeze" some more the disk space occupied by floppy images, remember that memlinux is "gzip" compatible, this means that you can use any .zip compatible compression program to compress floppy images (or use Winimage compressed format, which is 100% compatible).
Of course this gives a very sensible advantage when 1.44 Floppy images are not "full to the brim", just as an example a BCDL 2.01a image, once compressed, occupies 10.896 bytes, (12.288 bytes on disk), with a compression rate of 1.474.560/12.288 = 120!
However an "average" filled floppy image most of the time takes less than 600 kbytes.
I found that using 7-zip in .zip compression mode gives slightly better results.


[BEGIN SLIGHTLY OUT OF TOPIC] (you can ignore the following)
If you have some time (and will) you could replicate this guide using Grub4dos instead of syslinux (this has the advantage that you do not need to install anything on the MBR of the stick, as you can invoke Grub4Dos from DOS using Grub.exe and that you do not need to create bootsector imahes like pe.bss as you can directly chainload your(s) SETUPLDR.BIN(s)).

The procedure however is very similar, you can use memdisk as well, entries in menu.lst (instead of syslynux.cfg would change from (just an example):
CODE
LABEL 1
KERNEL memdisk
APPEND initrd=win98.ima

to
CODE
TITLE 1 Win98.ima through memdisk
KERNEL /memdisk
INITRD /Win98.ima

[/END SLIGHTLY OUT OF TOPIC] (you can ignore the above)


jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
diddy
post Nov 11 2006, 12:13 PM
Post #3


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



QUOTE (jaclaz @ Nov 10 2006, 10:36 AM) *
If you have some time (and will) you could replicate this guide using Grub4dos instead of syslinux
I have only just discovered Grub and unfortunately do not have the skills to replicate this guide using it.

Using Grub would probably enable me to clean up the root of my USB drive as it's starting to get a bit cluttered using syslinux - so I'll continue to experiment.

I've been trying to replicate this post:
http://www.911cd.net/forums//index.php?showtopic=18031
I've not had any problems using it on my hard drive but have been unsuccessful when installing it to my USB drive and booting the USB drive directly from BIOS. I know I can boot into DOS and invoke GRUB via GRUB.exe however this seems a bit messy. Can GRUB be invoked directly by GRLDR on a USB drive?


--------------------
My plugins (+ some other bits) - http://diddy.boot-land.net
Grub4dos Guide - http://diddy.boot-land.net/grub4dos/Grub4dos.htm
Go to the top of the page
 
+Quote Post
jaclaz
post Nov 12 2006, 07:27 AM
Post #4


Platinum Member
*****

Group: Moderator
Posts: 4,582
Joined: 25-July 04
From: Italy
Member No.: 6,779



QUOTE (diddy)
Can GRUB be invoked directly by GRLDR on a USB drive?

Yes, there are two ways to do so:
1) Add to the stick (formatted under Win2k/xp/2003 i.e. with bootsector invoking NTLDR) NTLDR and BOOT.INI, add an entry to BOOT.INI like
QUOTE
C:\GRLDR="Grub4Dos"

2) Add to the stick (formatted under Win2k/xp/2003 i.e. with bootsector invoking NTLDR), grldr and RENAME IT to NTLDR

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
diddy
post Dec 5 2006, 05:53 PM
Post #5


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



* Ammended guide and added section to include Windows PE 2.0.
* Added Method 2
* Also added download links for some of the software needed in the guide.
Go to the top of the page
 
+Quote Post
jaclaz
post Dec 6 2006, 04:49 AM
Post #6


Platinum Member
*****

Group: Moderator
Posts: 4,582
Joined: 25-July 04
From: Italy
Member No.: 6,779



diddy,
maybe you are interested in this "other" driver (instead of cfadisk) that should be easier to install:
http://www.911cd.net/forums//index.php?sho...81&st=1954#

However, to find out Hardware ID of the stick, the batch file you can find here:
http://www.911cd.net/forums//index.php?sho...14181&st=85
http://home.graffiti.net/jaclaz:graffiti.n...BXP/Hard_ID.txt

should be still useful.

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
Anders Eriksson
post Dec 11 2006, 08:44 AM
Post #7


Member
**

Group: Members
Posts: 12
Joined: 3-December 06
Member No.: 23,634



Hi! I've been trying to get my USB stick to work according to method 1.

I'm trying to get dos and a DSL to boot. DSL boots without problem but Dos doesn't.

When I try to boot to Dos I come to the point where the prompt shows "Booting" and then nothing more happends.

have been using Winimage to make an IMA file from a bootable floppy created with thw xp ui format tool.

I'm really new to this and might not understand everything about bootsectors etc etc, but this guide was very user freindly so I had great hope.

I have XP Pro SP2 installed.

If any info is missing let me know.

Anders Eriksson

Ps. I have tried on several Pc's with the same result.
Go to the top of the page
 
+Quote Post
diddy
post Dec 11 2006, 12:56 PM
Post #8


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



QUOTE (Anders Eriksson @ Dec 11 2006, 01:44 PM) *
Hi! I've been trying to get my USB stick to work according to method 1.

I'm trying to get dos and a DSL to boot. DSL boots without problem but Dos doesn't.

When I try to boot to Dos I come to the point where the prompt shows "Booting" and then nothing more happends.


Hi Anders,

I'm not sure what the problem is but suggest that you try booting from the original floppy disk first - just to check there are no problems with that. If the original floppy works you could then try to boot the *.ima file you created from a CD (using BCDW, CDShell or ISOLINUX). There may be issues with using the MEMDISK kernel to load the disk image - you could try using diskemu instead (this is included with CDShell). Unfortunately I'm not sure whether diskemu can be used with SYSLINUX.

I've not tried booting from a Windows XP based DOS disk for some time and have never tried using the SYSLINUX method in this post. If you plan to use the boot disk image just to access DOS I'd suggest that you download a Windows 98 (Second Edition) boot disk image instead. If you want to try using a different flavour of DOS try the following site for disk images:
http://www.bootdisk.com/

Sorry I can't be any more help.

Good luck!

Regards Diddy

Update
Just found this post:
http://www.911cd.net/forums//index.php?showtopic=8251
Go to the top of the page
 
+Quote Post
FM_81
post Dec 11 2006, 02:09 PM
Post #9


Silver Member
***

Group: Members
Posts: 311
Joined: 23-November 04
From: Meißen, Germany
Member No.: 8,604



It seems to be a generally problem of newer MS-DOS-images?
WIN98-floppyboot-images no problem with MEMDISK, but with other (ME & XP) I've got in the past the same error.


REMARK, not related to last question, but to the tutorial: it's not neccessary to load MEMTEST as image with MEMDISK, MEMTEST itself can be loaded direct as kernel.


--------------------
Who ask's, may be a fool for about five minutes! Who don't ask, may be a fool for the rest of his life!
Go to the top of the page
 
+Quote Post
Anders Eriksson
post Dec 12 2006, 11:32 AM
Post #10


Member
**

Group: Members
Posts: 12
Joined: 3-December 06
Member No.: 23,634



Tnx guys. It works with earlier versions of dos.

AE
Go to the top of the page
 
+Quote Post
GnarlyC
post Dec 12 2006, 03:06 PM
Post #11


Member
**

Group: Members
Posts: 31
Joined: 10-September 04
Member No.: 7,190



Well, I've tried a Windows 98 boot image (OEM from bootdisk.com) and the DOS 6.22 image. This is in addition to a Ghost 7 multi-NIC image (PCDOS, I think) and the TCP/IP bootdisk from somewhere... None of these work for me, so I am assuming that I am either doing something wrong or my hardware is causing issues. I have tried -

LABEL 1
KERNEL memdisk
APPEND initrd=NETBOOT.IMA

AND -

LABEL 1
KERNEL NETBOOT.IMA

Neither work for me. I have an almost new IBM/Lenovo Thinkpad x60, and both DSL and Gpartd Live work well. Any ideas?

Thanks!
Alan
Go to the top of the page
 
+Quote Post
GnarlyC
post Dec 12 2006, 03:45 PM
Post #12


Member
**

Group: Members
Posts: 31
Joined: 10-September 04
Member No.: 7,190



I did just get the 'NT Offline Password' ISO to boot just fine using info gleaned from other sites -

QUOTE
LABEL 5
KERNEL vmlinuz
APPEND rw vga=1 init=/linuxrc initrd=initrd.cgz,scsi.cgz root=/dev/ram0 source=/dev/floppy/0


I extracted SCSI.CGZ and INITRD.CGZ from the ISO to the root of the USB stick. I don't understand a lot of this Linux stuff, but I can take examples and cut 'n paste with the best of them. smile.gif

Alan
Go to the top of the page
 
+Quote Post
FM_81
post Dec 13 2006, 02:17 AM
Post #13


Silver Member
***

Group: Members
Posts: 311
Joined: 23-November 04
From: Meißen, Germany
Member No.: 8,604



@ GnarlyC: Have you extracted the kernel-file, here called vmlinuz too?


--------------------
Who ask's, may be a fool for about five minutes! Who don't ask, may be a fool for the rest of his life!
Go to the top of the page
 
+Quote Post
dannydude
post Dec 13 2006, 01:23 PM
Post #14


Member
**

Group: Members
Posts: 42
Joined: 4-July 03
Member No.: 1,054



Most of my DOS images wouldn't boot either on my thinkpad (T60 with serial ATA in in native mode), so I tried another machine with IDE drives, and most of them work now. I am still having issues with PE, but I will look into that a little later. I used method 1 for now, but would love to try the other method as well.

I just wish I could use the cdshell/bootscriptor add on (my multiboot CD has a very nice graphical interface) on my usb drive.
Go to the top of the page
 
+Quote Post
GnarlyC
post Dec 13 2006, 01:56 PM
Post #15


Member
**

Group: Members
Posts: 31
Joined: 10-September 04
Member No.: 7,190



QUOTE (FM_81 @ Dec 13 2006, 07:17 AM) *
@ GnarlyC: Have you extracted the kernel-file, here called vmlinuz too?


No, oddly enough, I just used the 'vmlinuz' file that was already there from Puppy Linux. It seems to work ok. I haven't thoroughly tested them, but they do all boot up.

I'll try the DOS images on one of these Dell GX270's that we have here to see if my laptop is the problem with them.

Alan
Go to the top of the page
 
+Quote Post
diddy
post Dec 19 2006, 02:25 PM
Post #16


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



@Jaclaz

I asked
QUOTE
Can GRUB be invoked directly by GRLDR on a USB drive?
You replied
QUOTE (jaclaz @ Nov 12 2006, 12:27 PM) *
Yes, there are two ways to do so:
1) Add to the stick (formatted under Win2k/xp/2003 i.e. with bootsector invoking NTLDR) NTLDR and BOOT.INI, add an entry to BOOT.INI like
CODE
C:\GRLDR="Grub4Dos"

2) Add to the stick (formatted under Win2k/xp/2003 i.e. with bootsector invoking NTLDR), grldr and RENAME IT to NTLDR


I've been busy with other projects (mainly WinPE from WAIK) and have not had time to play around with GRUB4DOS until now. I continue to have problems using GRUB on my USB stick, I'm still not sure if this relates to my BIOS or is an issue with using GRUB on a USB drive - I followed your instructions above and had limited success.

Suggestion 1 worked ok. I installed pe2usb.bin as bootsector on my USB stick (using mkbt.exe) and copied the following to it - NTDETECT.COM, NTLDR, GRLDR, MENU.LST and boot.ini with following entry:
CODE
[boot loader]
timeout=10
default=C:\grldr
[operating systems]
C:\grldr="Grub4Dos"

This worked fine. I then tried suggestion 2. I deleted NTDETECT.COM, NTLDR and boot.ini from the previous installation, so that only GRLDR and MENU.LST was present on the USB stick. I then renamed GRLDR to NTLDR and rebooted.
This would not boot GRUB and hangs after accessing the USB stick - I can see the LED indicating that the stick is being accessed, however after approximately 5 seconds the LED stops and the screen is blank - no error messages are displayed.

Any help/suggestions would be appreciated. Renaming GRLDR to NTLDR worked fine on my C: drive (with Windows XP installed). Is there a problem with using pe2usb.bin to invoke renamed GRLDR? Is something missing from my USB drive that's included on the Windows XP installation?

__________________________________________

@Jaclaz,

I was also interested in the following:
QUOTE
diddy,
maybe you are interested in this "other" driver (instead of cfadisk) that should be easier to install:
http://www.911cd.net/forums//index.php?sho...81&st=1954#

I have followed the instructions in the link you referenced:

* Downloaded the driver dummydisk.sys
* Renamed dummydisk.sys to dummy.sys and copied it to system32\driver folder
* Imported the following file to registry:
CODE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dummy]
"Type"=dword:00000001
"Start"=dword:00000000
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
52,00,49,00,56,00,45,00,52,00,53,00,5c,00,64,00,75,00,6d,00,6d,00,79,00,2e,\
00,73,00,79,00,73,00,00,00
"DisplayName"="USB-Massenspeichertreiber"
"Group"="System Reserved"
"Tag"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\dummy\Enum]
"0"="Root\\LEGACY_DUMMY\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001


Instructions stated that After that, your USB device is shown at once as harddisk. Also, every new connected USB stick is shown as harddisk. I have tried this on BartPE, WinPE and XP and have not been able to get it working. I must admit I find Dietmar's instructions a little too advanced to follow - have I missed something? Are there any more detailed instructions I could try?

Diddy
Go to the top of the page
 
+Quote Post
jaclaz
post Dec 19 2006, 06:29 PM
Post #17


Platinum Member
*****

Group: Moderator
Posts: 4,582
Joined: 25-July 04
From: Italy
Member No.: 6,779



@diddy

Briefly:
1) the idea of renaming GRLDR as NTLDR should work anyway, it was first suggested by Spacesurfer here:
http://www.911cd.net/forums//index.php?showtopic=18031
the problem could be in the bootsector, you can try, after having booted to the stick and "somehow" started a DOS (preferably a win98 DOS 7.1), use BOOTPART to recreate the WINNT bootsector.
A couple things to always check (as I've found that in some occasions the HP format utility and other software give wrong settings) is (using BEEBLEBROX) that the CHS and LBA values both in MBR and Bootsector are consistent and try with different usb stick filesystem formats, refer to my page and to these posts here:
http://www.911cd.net/forums//index.php?sho...mp;#entry121358
http://www.911cd.net/forums//index.php?sho...181&st=1880

As I like to say, booting from USB still involves something like "magic" to work... wink.gif

Also, you should try the 00 or F6 wiping:
http://www.911cd.net/forums//index.php?sho...c=17994&hl=

There have been reports of both success or failure with this grldr->NTLDR method, that is the reason why I suggested it as #2.
However, if it works with the other way through NTLDR/BOOT.INI it should be a minor problem.....
...and expecially on a USB stick there should be normaly no "side effects" if one uses bootlace.com or my "homemade" method to install grldr.mbr:
http://www.911cd.net/forums//index.php?sho...0806&st=182
and following....up to this:
http://www.911cd.net/forums//index.php?sho...0806&st=191

2) The way Dietmar suggested operates (AS IT SHOULD) on ControlSet001, so a reboot provided that CurrentControlSet uses ControlSet001, should be needed.
I haven't had the occasion to test it personally, usually Dietmar is the one that solves problems, I just try to help with some ideas, but I guess that you can try some of the "Service Installing and start" applications.
I listed some of them in this seemingly unrelated post on BootLand:
http://www.boot-land.net/forums/index.php?showtopic=461
If you are not familiar with the CurrentControlSet/ControlSet00x concept, you might find useful this thread and related link:
http://www.911cd.net/forums//index.php?showtopic=16729

jaclaz

P.S.:
QUOTE
I've been busy with other projects (mainly WinPE from WAIK)


Maybe you missed some of the fun cool.gif :
http://www.911cd.net/forums//index.php?sho...c=19010&hl=
http://www.boot-land.net/forums/index.php?...pic=759&hl=
http://www.boot-land.net/forums/index.php?...pic=770&hl=


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
gjb911169
post Dec 20 2006, 01:59 PM
Post #18


Newbie
*

Group: Members
Posts: 2
Joined: 27-November 06
Member No.: 23,456



Noob type question but how did you create the *.ima images? I am racking my brain to move ISO images that I have over to *.ima.
Go to the top of the page
 
+Quote Post
jaclaz
post Dec 20 2006, 03:34 PM
Post #19


Platinum Member
*****

Group: Moderator
Posts: 4,582
Joined: 25-July 04
From: Italy
Member No.: 6,779



QUOTE (gjb911169 @ Dec 20 2006, 07:59 PM) *
Noob type question but how did you create the *.ima images? I am racking my brain to move ISO images that I have over to *.ima.


Yep, simply put you cannot.

".iso" is a conventional extension for ISO images, i.e. a "raw" (that means a byte-by-byte copy) of a filesystem, usually called cdfs, compliant with ISO9660 norms, that was introduced as a standard for CD's only, and that is by definition READ ONLY .

"*.ima" is a conventional extension, after "image", of a generic volume or filesystem raw image, that can be of a floppy drive, or of a hard disk type of device.
The filesystem in it can be one of the many in use on R/W devices, such as, as an example, FAT16, FAT32, NTFS, EXT2, EXT3, ReiserFS....

Usually .ima images are however images of floppy drives, there are several applications that can make an .ima file from a floppy, one of the most known is Winimage:
http://www.winimage.com/


But there are many others, some are listed here:
http://www.911cd.net/forums//index.php?sho...c=11096&hl=

However the point you seem to have missed is that an .ima file can be used in a "virtual" floppy or HD like device, whilst an .iso can on be used in a "virtual" CD ROM like device, the two types of devices (and consequently the corresponding images) are not exchangeable....

jaclaz


--------------------
- Fighting against bloatware since 2004, and proud of it. -
Go to the top of the page
 
+Quote Post
diddy
post Dec 20 2006, 03:36 PM
Post #20


Silver Member
***

Group: Members
Posts: 120
Joined: 8-November 06
Member No.: 22,987



QUOTE (gjb911169 @ Dec 20 2006, 06:59 PM) *
Noob type question but how did you create the *.ima images? I am racking my brain to move ISO images that I have over to *.ima.

If creating a disk image from a floppy disk I normally use WinImage to create .IMA files. Some of the disk images used in the guide are available for download as .IMA or .IMG files on the Net.

If you're thinking of using this as a way of multibooting .ISO images by converting to .IMA I think you are going to be sh@* out of luck.

I think its possible to convert some .ISO images, but only if the .ISO file is booted using floppy drive emulation

Some CD's/DVD's are booted by emulating a floppy disk - the boot file is mounted as the A: drive during the boot process. If the .ISO file you want to convert contains all of the files in the bootsector (the image appears blank when mounted) then it should be possible to convert them. These boot files can be extracted using various programs including:

7-zip
Bart's Bootable Image Extractor
UltraISO

I'd suggest trying Bart's Bootable Image Extractor - its a small download and when run from a batch file will display which mode is used to boot the .ISO file.

Following example is output from BootItNG.ISO:
CODE
BBIE - Bart's Boot Image Extractor v1.0, (c) 2001, Bart Lagerweij
http://www.nu2.nu
Reading boot record from sector 17 (0x11)
Reading boot catalog from sector 22 (0x16)
1) mode "Floppy drive emulation 1.44MB". Sector is 23 (0x17)
Writing 720 block(s) to "image1.bin"

As you can see from the 5th line its booted via "Floppy drive emulation" and can be used as a bootable .IMA - just rename the image1.bin file created by BBIE.exe to image1.IMA

The next example is output from a WindowsXP installation disk:
CODE
BBIE - Bart's Boot Image Extractor v1.0, (c) 2001, Bart Lagerweij
http://www.nu2.nu
Reading boot record from sector 17 (0x11)
Reading boot catalog from sector 19 (0x13)
CD-ROM manufacturer/developer: "Microsoft Corporation   "
1) mode "no emulation". Sector is 232 (0xE8)
Writing 1 block(s) to "image1.bin"

The 6th line states that this is booted via "no emulation" mode. I don't know of any way to convert this type or image.

Someone please prove me wrong - I'd love to be able to boot directly from an ISO image.

Diddy


--------------------
My plugins (+ some other bits) - http://diddy.boot-land.net
Grub4dos Guide - http://diddy.boot-land.net/grub4dos/Grub4dos.htm
Go to the top of the page
 
+Quote Post

9 Pages V   1 2 3 > » 
Reply to this topicStart new topic
7 User(s) are reading this topic (7 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 9th February 2010 - 09:40 AM