Els's blog

Friday, July 07, 2006

Booting from USB Stick

Most computers don’t have floppy drives anymore these days. But every now and then, I bet you still wish you had one!

A USB stick is a great and far better alternative, but you can’t boot from your stick. And in some cases that is exactly what you need.

After some searching and testing, I now have a bootable USB Stick. I use it to boot into Windows PE and from there you can start a complete OS install, troubleshoot a system, install additional drivers, …

First thing you need: a number of freeware tools.

Step 1: Format a floppy as DOS boot disk

Don’t worry; you don’t need a real physical floppy drive. Instead we will create a virtual floppy using ‘Virtual Floppy Driver’.

Install the Virtual Floppy Driver:

c:\VirtualFlop\vfd.exe install

c:\VirtualFlop\vfd.exe start

c:\VirtualFlop\vfd.exe link a /L

c:\VirtualFlop\vfd.exe open c:\flop.img

When the system asks you to create the file, say yes.

If you check Windows Explorer now, you should see the A: drive. Rightclick drive A: and choose format. Format the floppy as a DOS startup disk.

Step 2: Format your USB stick as a bootable device

Install the HP USB Disk Storage Format Tool. Then run the tool with the following options:

Device: USB Device

File system: FAT 16

Deselect Quick format

Select Create a DOS startup disk using DOS system files located at A: (virtual floppy drive)


Step 3: Copy Windows boot files to the memory stick

This depends on the version of Windows that you would like to boot in of course.

For XP, Windows 2003 and Windows 2000, you need the following boot files:

  • Ntldr
  • Ntdetect.com
  • Boot.ini

For Vista, you need the following files:

  • Bcd
  • Bootfix.bin
  • Bootmgr

Then copy Bootpart to your memory stick and the Windows PE image that you want to boot into.


Step 4: Set your BIOS to boot from USB

Make sure your USB stick is plugged in, restart your computer and enter the BIOS. There move USB device to the top of the boot order list.

On most Dell systems you can simply press F12 during the Dell screen and the list of available boot devices will show up. Select your USB device and press enter.

At this moment you are booting from your USB stick, but since you made a DOS boot stick, you boot in DOS.

To boot in Vista or XP or Windows 2003: at the DOS prompt, go to the bootpart directory and type the following:

C:\Bootpart\bootpart <part_type> boot:c:

where <part_type> is DOS622 – Win95 – Winnt – Vista. This will rewrite the bootsector on the C: drive to boot under the OS that you need.

Reboot your machine, boot from the USB stick again and the Windows boot process will start.


By the way, I am blogging in Word 2007 here. Pretty cool, isn’t it?

Just open a new document, choose new blog entry. Then select your blog provider from the list. You will be asked for your blog credentials and when you are ready you can just publish your blog!

Simple.

I’ll do that now.

17 Comments:

  • we want more !

    By Anonymous Anonymous, at 9:49 AM  

  • good blog.

    David
    in Houston, Texas

    By Blogger David Locklear, at 9:15 AM  

  • Thanks David!

    In Vista, it is even easier to make a USB stick bootable. You won't have to use this long procedure anymore.

    Just insert the usb stick and use Diskpart (on a Vista machine!) to create a primary partition and format the stick.
    Then mark your partition as active.

    Now put on some boot files and you are ready!

    By Blogger Els, at 9:38 AM  

  • Can someone please explain in more
    detail what the following means

    Then copy Bootpart to your memory stick and the Windows PE image that you want to boot into.


    What does the "Windows PE image that
    you want to boot into" mean? Is that the program I want to run or is this some sort of additional software I need to put on the stick before I can execute an application.

    danjava

    By Anonymous Anonymous, at 4:38 AM  

  • Wouldn't it be a bad thing to rewrite the boot sector for C:\? How would we undo that?

    By Blogger Daniel, at 9:07 PM  

  • Blogging in OpenOfice is cooler :)

    By Anonymous Anonymous, at 6:01 PM  

  • i have old sony laptop and dosen;t have cd and floppy drive and i don't want to buy extrernal one. well i do have usb 4 GB drive and USB 120 GB drive. so now i need to format that sony laptop and reinstall winxp which i have in my USB harddrive.so who can i install win xp in my laptop ? can you please help me.

    By Anonymous Anonymous, at 7:16 AM  

  • I can't ever get diskpart to work on USB drives. I always get "DiskPart cannot delete volumes on removable media."

    By Anonymous Anonymous, at 5:19 PM  

  • For google:

    "DiskPart cannot delete volumes on removable media."

    Use the "clean" command in diskpart. Afterwards create the partition.

    By Anonymous Anonymous, at 10:32 AM  

  • Thanks these instructions worked for me, I wanted to create a bootable Vista CD from XP! so I had to download BootSect.exe (can't remember where I got it from) and then I ran "BootSect.exe /nt60 g:" (G: was the USB drive).

    By Anonymous Anonymous, at 4:41 PM  

  • very helpful! thanks dude

    By Anonymous Anonymous, at 5:46 PM  

  • Can anyone recommend the top performing Endpoint Security system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central it outsourcing
    ? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

    By Anonymous Anonymous, at 5:05 AM  

  • Nice post... Looks like solid-state memory is finally beginning to take off. Hopefully we'll start seeing a drop in SSD prices in the near future. $5 32 gig Micro SD Cards for your DS flash card... sounds gooooood.

    (Submitted on Nintendo DS running [url=http://kwstar88.zoomshare.com/2.shtml]R4i[/url] NewPost)

    By Anonymous Anonymous, at 9:35 PM  

  • Purchasing memory cards is such a big hassle... You have to search online for prices, filter through which ones are genuine, go out to a bunch of stores,compare prices, finally buy your memory, and then fervently pray that the price doesn't drop in the next month or so.

    I've been done in by some ridiculous price drops in the past... especially this one time when I bought a Micro SD for my R4 gaming flash card at what was apparently a steal, only to later see that it fell $5 in a week's time.

    (Posted using FFOpera for R4i Nintendo DS.)

    By Anonymous Anonymous, at 9:57 AM  

  • En. Onpage Search Engine Optimization: Når du publiserer noe sørg for å gjøre Onpage SEO veldig bra. Det er så mange faktorer, og de er som:

    tjene penger online
    tjene penger raskt
    tjener penger

    Nøkkelord i Topptekst Tag - Prøv å ta med viktigste søkeord, og variant av dine viktigste søkeordet i Topptekst taggen. I mitt eksempel brukte jeg to sub-søkeord i mitt blogginnlegg, og de er Magic artikkel ReWriter Funksjoner og Magic artikkel ReWriter fordeler.

    tjene penger fort
    tjene raske penger
    tjener penger

    Hvis du får problemer så kan du lese Onpage Søkemotoroptimalisering for Dummies for mer beskrivelse.

    tjen penger på nettet
    tjene penger på internett
    tjener penger

    Forrige måned skrev jeg en til guide og jeg fikk god respons fra mine kunder. Guiden var på tilbakekoblinger Indeksering og jeg vist hvordan jeg klarte å få Google første siden rangering uten innhold. Blogg er fremdeles rangering og nå er den i # 5 stilling fra # 7. Interessant fremdeles er det ingen innhold. Bare en velkommen innlegg som vi får som standard ved installasjon av WordPress.


    [url=http://emanuel7powell.xanga.com/729910381/hvordan-tjene-penger-online/]Tjene Penger[/url]

    By Anonymous Anonymous, at 3:10 AM  

  • Heya guys [url=http://emanuel7powell.xanga.com/729910381/hvordan-tjene-penger-online][img]http://www.tjenepengeronline.info/tjene_penger.gif[/img][/url] I have been hanging out here for quite a while now, and I have to admit that i am pleased to finally be a part of www.blogger.com!

    By Anonymous Anonymous, at 11:40 AM  

  • Thanks for the advice, I've been trying to figure out for a while now how to boot my system from a usb stick until I stumbled across this blog. It's all working fine for me now, thanks again for the information.

    By Anonymous promo usb, at 3:33 PM  

Post a Comment

<< Home