      DFSee version 10.4 23-05-2010  (c) 1994-2010: Jan van Wijk
 =========================[ www.dfsee.com ]==========================

DFSee bootable USB stick

The DFSee bootable USB stick is a new bootable option to
be used for disk analysis and recovery with DFSee.

It offers booting on most modern PCs using a 128Mb or larger
memory stick, some Linux magic, the DFSee bootable CD ISO and
a copy of the DFSee linux program. With this you can select
between using the DOS version of DFSee using FreeDOS, or the
Linux version using an off-the-shelf downloadable Linux Live
CD ISO called 'Parted Magic'.

   +-----------------------------------------------------+
   | Note: All (linux) programs used with this stick are |
   | OPEN SOURCE (GPL), and are NOT MODIFIED for use     |
   | with DFSee. You can download the sources from the   |
   | respective websites mentioned in this document      |
   +-----------------------------------------------------+
   | The imagefile supplied here is just a REPACKAGE of  |
   | the files from PenDriveLinux BootMyISO-v1.4.EXE, to |
   | circumvent the use of Windows to create the stick.  |
   +-----------------------------------------------------+


Creating a bootable DFSee USB stick
===================================
There are two major tasks in making a bootable DFSee stick:

 - Create the bootable stick itself, from the menu or manual

 - Copy the additional files to the stick


Automated creation from DFSee menu
==================================
This is the easiest way to create the stick, and recommended for
most users. It will take a USB memory-stick or disk, and make
a small bootable FAT32 partition at the start, followed by
another FAT32 data partition taking up the rest of the space.
It can be found in the DFSee Actions menu:

        Actions ->
           Create bootable (USB) disk ->
              ... select the disk (stick) to install on ...

Afterwards all you need to do to make it fully functional
is copy the required ISO and DFSee-linux files to it.
(see 'Copying the additional files to the stick ' below)


Upgrading to newer DFSee versions
=================================
Often it will be possible to just replace the 'dfsee10x.iso'
file in the root of the stick, and the DFSee linux files that
are in the '/dfsee/linux' directory.

HOWEVER: It is possible that the ISO does NOT want to boot
after that, due to the file being fragmented on the stick.
This is caused by other files that have been replaced, added to
or deleted from the stick. In that case it may actualy be easier
to recreate the stick from scratch, as described above.

Note for eCS users (LVM systems):
Before starting the recreating of the bootable-USB stick from
a memory bstick that already has LVM info, it is advised to
use the regular LVM program to 'hide from OS/2' both partitions
on the stick. This avoids problems with the FAT32 filesystem
driver, and more specifically its caching.



Manual creation, for special cases
==================================
Allthough hardly ever needed now it can be done from the menu,
there may be cases where you want to have full control on how
the stick gets created. The manual procedure is quite simple:

 1) Prepare the stick by wiping the start of it clean with DFSee
 2) Restore the multi-ISO-boot 'dfsusb32.imz' to the memory stick
 3) Copy the DFSee/PartedMagic ISO files and the DFSee linux files
    to it so you can boot FreeDOS or Linux, and run DFSee from either.

This can be done on OS/2 or eCS (tested) and on Windows or Linux
(both untested, but procedure should be exactly the same)

The procedure in detail:

 1) a - Insert the memory stick while DFSee is NOT started yet
       (or the stick may not be recognized properly on OS/2)

    b - Start DFSee, and verify that the USB stick is listed.

    c - Wipe the start of the disk clean, to make sure no filesystem
        driver will be using the stick while restoring the image.

        Mode=FDISK ->
           MBR or EBR area operations ->
              Wipe start of disk to ZERO ->
                 ... select the RIGHT USB disk ...

    d - Quit DFSee, and eject or unmount the memory stick from the OS


 2) a - Insert the memory stick again (DFSee not running)

    b - Start DFSee, and verify that the USB stick is listed.

    c - Restore the DFSUSB32.IMZ image to the memory stick

        File ->
           Open object to work with ->
              disk ->
                 ... select your memory stick disk ...

        Actions ->
           Restore/Compare imagefile(s) ->
              to a Disk ...

        Now, in the restore dialog all fields should be OK
        already, since we pre-selected the disk to restore to.
        The only selection you need to make here is the image
        file itself to be restored, which is 'DFSUSB32.IMZ'

        Upon selecting that, check the selected disk and image
        again in the confirmation popup, then [Yes] to start ...
        The restore should be fairly quick (a few seconds).


    d - Quit DFSee, and eject or unmount the memory stick from the OS


Copying the additional files to the stick
=========================================

    a - Insert the memory stick again (DFSee not running)

    b - Copy the 'dfsee10x.iso' file to the ROOT directory of the stick

        ISO download from: http://www.dfsee.com/dfsee/dfsee10x_iso.zip

        Update the ISO with your 'dfsee.key' registration before copying
        to the stick, see instructions that come with the ISO download.
        Without a key, the ISO is time-limited to 60 days from release.


    c - Copy the 'pmagic-4.10.iso' file to the ROOT directory of the stick

        ISO download from: http://sourceforge.net/projects/partedmagic/files/

        (Make sure you get the ISO, not one of the other variants!)

    d - Copy the files for the DFSee linux version that you need to
        run DFSee while booted to the Parted Magic KDE desktop.
        They must be copied to the /dfsee/linux directory on the stick.
        You can take the files (from DFSee version 10.1 or newer) from
        the \linux directory of the dfsee10x.zip, dfsee10x_linux.zip or
        from the 10.x CDROM. Copy these to the stick at:

        D:\dfsee\linux\

        When using OS/2, or Windows. With 'D:' being the sticks driveletter,
        or when using Linux, to:

        /media/sda1/dfsee/linux/

        With /media/sda1 being the mount point for the stick (may vary).

        Copy your 'dfsee.key' registration file to that same directory.

        If you don't have the linux files handy, get them from:

               http://www.dfsee.com/dfsee/dfsee10x_linux.zip


        Instead of just the linux files, you can also copy the DFSee
        files for all supported platforms to the 'dfsee' directory
        on the stick. That makes them usable from OS/2 or Windows too.
        One way to do that is unzip the DFSee ZIP to that directory.
        You can get the complete ZIP, with all platforms from:

               http://www.dfsee.com/dfsee/dfsee10x.zip

        In this case, make sure you copy the 'dfsee.key' file to
        each of the platform directories with the DFSee executables.

    e - Eject or unmount the memory stick from the OS



Getting your system to boot from USB
====================================
Most modern systems allow booting from USB devices like memory sticks,
but you usually need to do something special to make it happen, like:

 - Enable boot from USB in the BIOS

 - Startup with a special key sequence, for example, on Most Thinkpads
   that would be the "Access IBM" or "ThinkVantage" button, followed
   by the <F12> key to select a bootable medium.

 Check your systems documentation ...


Booting the FreeDOS based DFSee ISO image
=========================================

 - Insert the DFSeeF32USB memory stick
 - Start the system from the USB stick
 - From the ISO selection menu, choose "DFSee 10.x"
 - In the DFSee specific bootmenu select option '0'
 - Answer follow-up questions with "Y" or "N"
 - you should end up in DFSee (DOS version)

 The current directory will be the RAMDISK with letter Z:
 so all files stored there will be lost when you stop.
 You can store the logfiles and small images to the stick:

         D:\logs\

 Note that the order of the disks, if you have more, may be
 different from the order seen under OS/2 or Windows!


Booting the Linux PartedMagic based image
=========================================

 - Insert the DFSeeF32USB memory stick
 - Start the system from the USB stick
 - From the ISO selection menu, choose "Boot Parted Magic 4.10"
 - Select "Default Settings (Runs from RAM)
 - Wait until the boot reaches the graphical desktop (may take minutes!)
 - Click on the "My Documents" icon to show disks and folders
 - Locate your memory-stick in the left part of the opened window
 - Click on the stick listed there (this will make it available, mount)
 - In the contents shown in the right side of the window, locate the
   "Start from ..." icon that has the blueish DFSee icon shown.
   This can be 'from sda1' through 'from sdh1' or 'from DFSeeF32USB'.
   Note that only ONE of these displayed names actually HAS an icon.
 - Click this DFSee icon to start DFSee

 The current directory will be /media/.../logs/ on the memory stick
 so all files will be stored there by default

 Note that there is NO MOUSE support in the Linux version!


 Of course, once booted to the PartedMagic desktop, you can
 use the other programs and tools in there too, like the
 "Partition Editor" which is the 'gparted' tool and is quite
 good in resizing bootable NTFS partitions or even start the
 Google Chrome browser to access the WEB!

   +---------------------------------------------------------------+
   | WARNING: be aware that linux tools MAY do bad things to OS/2  |
   | or eCS disks by writing non-standard logical partition tables,|
   | sometimes erasing LVM info, so use with care!                 |
   +---------------------------------------------------------------+


Updating and tweaking the bootable USB stick
============================================

Usually you can replace the ISO files in the root of the stick
to upgrade to newer version of the software, but you may run into
a problem booting, if the updated ISO file is not contiguous anymore.
This will result in an error message (error 60) during boot. This
is caused by file fragmentation, so it can be fixed by defragmenting
the stick completely, or by recreating it from scratch.
To reduce the chance of fragmention, you should NOT write to the
first partition on the stick at all, just to the second (data) one.


When the filename of the ISO is different, either rename them,
or update the corresponding lines in the menu.lst config file.

You can also copy the latest linux version of DFSee into
the \dfsee\linux\ directory of course.

You can also update the default line to boot in menu.lst,
and the timeout to select that default automatically.


If your stick is larger than 1 Gb, the manual procedure will
create a 934 Mb primary FAT32 partition and the rest of the
stick will be unused. The procedure for the menu will add a
second data partition to that automatically, for the manual
procedure you need to do that yourself as described below.


Manual creation of a second data partition
==========================================
You can create another larger FAT32 partition there, for example
to store DFSee imagefiles from disk partitions. However, for DFSee
to 'see' the extra freespace on the stick you will have to adjust
the disk-geometry as stored in the LVM info (C:1868 H:32 S:32) to
match the real size of the memory stick. You need to know the
original size in MiB, you can use the geo command directly to
set that as the number of cylinders. For example with a 4Gb stick,
netting 3762 MiB (as shown when inserted after wiping it) use:

        geo  7524  32  32

Then sync this geometry into the LVM-info structure:

        Mode=FDISK
           OS/2 LVM and BootManager ->
              Set LVM-Geo to DFSee L-Geo ->
                ... select the stick ...

Then stop DFSee, eject, and re-attach the stick, and on startup
DFSee should now show the correct size, with a large freespace
area at the end that you can use for another FAT32 primary ...

Note:
If you do not recall that nett size in MiB, it will be displayed
by DFSee when showing the disk geometry at startup, or when you
use the 'geo' command to display it. It looks like:

+++++++
L-Geo Disk 3 Cyl:1868 H:32 S:32 Bps:512 Size:0x1D3000 =  934.0 MiB
S-Geo Disk 3 Cyl:7524 H:32 S:32 Bps:512 Size:0x759000 = 3762.0 MiB
++++++

So, you can just take the size in MiB from this and use that in
the geometry to set as explained above.


Another possibility is start fresh, by replacing the first
steps (restore of the 1 Gb imagefile DFSUSB32.IMZ) by the
normal procedure to create a multiboot ISO stick.
Note that this works on Windows only!

One advantage is that this allows adding more ISOs to the stick
and to the boot-menu for other Linux distributions, or whatever.
(allthough the 1Gb stick will hold several other ISO's too)

You can download the Windows executable from the PenDrive site:

  http://www.pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb/

Where the EXE itself is at:

  http://www.pendrivelinux.com/downloads/BootMyISO/BootMyISO-v1.4.exe


 Step 3 (copy files) remains the same, but step 1 and 2 are different:

 1) a - Partition and format the memory stick with a FAT32 primary.
        You can either use a DFSee wipe + create + FORMAT here,
        or just use Windows to partition and format the stick.

        Note that the stick must have one PRIMARY partition, being FAT32


 2) a - Run the 'MultiBootISO-v1.4.EXE' program, and follow directions

    b - Replace the 'menu.lst' and add the K-*.desktop files in
        the root of the stick, from the 'dfsusb32.zip' file.


Then continue with step 3 as described above.

