Archive for June, 2008

DOS Bootable USB flash drive – how I did it

June 16, 2008

    There are 2 things you need in order to make an USB flash drive boot into DOS. The first is a boot sector, and the second are the DOS boot files. Below are the steps I used to get these onto a USB flash drive, making it possible to boot into DOS from the USB flash drive.

    The following steps where all done in Microsoft Windows XP in a VMware virtual machine. They should work with most other versions of MS Windows.
I successfully used these steps on an USB flash drive I got at Immersion Week 2008 for use in a ZFS demo (Identifies itself as CBM). YMMV depending on USB flash drive model and manufacturer. These steps are based off of the very useful information at BootDisk.com.

1) Getting a boot sector on the USB flash drive
    Start by gettng the mkbt DOS utility from here mkbt
    Unzip mkbt into a temporary directory
    OK, if you are like most people these days, you don’t have a floppy drive in your laptop or desktop, and you may never have, although you should know what a floppy is if you have any interest in doing this. So, if you don’t have a floppy drive in your machine, you can use vfd to create a virtual floppy, which is what I did. You can get vfd from here vfd, then follow the directions for creating a virtual drive in RAM, then save it as a file for future use. Use the Windows Explorer format menu item to format the virtual floppy and make sure you check off the box to make an MS-DOS start up disk.

    Once you have access to a DOS boot floppy, use the following command, from a command prompt, to save the boot sector, where a: is the drive letter of your DOS bootable floppy (virtual or physical)

mkbt -c a: bootsect.bin

    Now use the following command to write the boot sector to your USB flash drive, where n: should be replaced with the drive letter of you USB flash drive.

mkbt -x bootsect.bin n:

2) Getting the DOS boot files
    copy all the files from the boot floppy onto the USB flash drive.

    Now you should have a DOS bootable USB flash drive, for use with a system that supports booting from USB, including x64 products from Sun. Copy over whatever DOS utilities you need to use, including AFU for Adaptec RAID controller firmware updates, which is used in some of Sun’s x64 products. Or use it for whatever need you may have. Even with a small USB flash drive, you will have a lot more room than a floppy ever dreamed of. Perhaps my next blog post should be on whether inanimate objects dream. 🙂

Update : Per several comment poster’s, I have fixed the command line for writing the boot sector onto the USB flash drive. It is now correct in the above post. Thanks to those who caught my mistake. 🙂

DRM sucks … battery life

June 2, 2008

    I like reading, a lot of it is science fiction, and so does my wife. She actually reads more than I, and has the good fortune to work at a library, where she has access to a virtually limitless supply of books at almost no cost. I’m thrilled that both of my sons are following in our footsteps in this regard, as they are both enthusiastic readers and regularly take advantage of the library system.

    While my wife reads mostly ‘physical’ books, I read a lot on my RAZR V3xx and my Palm T3. And while there are multiple formats and readers for the Palm OS, our library’s DRMed format is MobiBook. Some other ebook sources I use also use that format, and the Mobipocket Reader isn’t bad. I think I prefer Plucker, which is a readily available format for a lot of Public Domain stuff via Project Gutenberg, and I use it for ‘mostly text’ web page reading.

    The problem with MobiPocket is that it really seems to drain my battery faster than most anything I do on my T3. I got several of David Weber’s Honor Harrington book for my birthday, and reading them ends up generating multiple battery warning pop-ups, requiring several visits a day to the cradle for a boost. I attribute this power hungry nature to the encryption heavy nature of DRM, although maybe I’m enjoying the books so much I’m reading more. Or maybe the battery I installed in my T3 a while back doesn’t have the lifetime the original had, and is fading already. Nah, more fun to blame DRM. Excuse me, I’ve got to get back to my reading. 🙂