Hello dear guest!

Boot Land is a community driven site established since 2006 and focused on data recovery/backup boot disks, research of Windows 2000/XP/2003/Vista/7 install/deployment/antivirus tools, customizing Windows PE systems and even learning how to recover from disaster situations.

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

 
Reply to this topic
 [Tutorial] How to Test USB Key/Stick/Flash Drive/UFD Bootability, ...using Qemu on Windows (or Linux) to see if it boots.
post Apr 6 2009, 04:38 PM
Post #1
DSpider
Newbie   *
Group: Members

  Joined: 6-March 09
Posts: 22
Thank(s): 2


Romania


How to Test USB Key/Stick/Flash Drive/UFD Bootability
(Or whatever you want to call it... Some people call them USB Keychains.)


Quick Note: UFD stands for "USB Flash Drive".





On to the tutorial ! First step would be to actually download Qemu. If you Google it you'll see this address at the very top. Click the Download link. You'll see somewhere "QEMU on Windows provides precompiled QEMU versions for Windows." which will most likely send you to: http://www.h7.dion.ne.jp/~qemu-win/

Here's a mirror to the latest version (available right now) for Windows:
qemu-0.9.1-windows.zip [12.5 MB]

It was labeled as QEMU on Windows Ver 0.9.1 (2/4/2008)


1. Extract the archive to C: (for example) and rename the folder as "qemu" or "qEmu", "QeMu", "qemU" or whatever. "Qemu" would be best.

2. You can either create a batch file by right clicking inside the "Qemu" folder, choosing New -> Text Document and changing it's extension by renaming it to "usb.bat" or "test.bat" (or whatever) and adding these two lines:

CODE
@echo off
qemu.exe -L "C:\qemu" -M pc -localtime -boot c -hda \\\\.\\physicaldrive1


For simplicity purposes I've also uploaded the batch file.



Question: What if it doesn't work and my UFD isn't recognized as "physicaldrive1" ?
Answer: That's how my PC recognizes mine. Yours may differ. You ccould get this (or a similar tool) and verify.



See ?


PS: I believe the Linux version of this tutorial isn't very difficult either. If someone could please post the batch and/or method I would very much appreciate it. Thanks.


1 user(s) said "Thank you!" to DSpider for this fantastic post:
ktp
+Quote Post
post Apr 6 2009, 06:43 PM
Post #2
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


Just for the record latest (unofficial) Win32 build is here:
http://www.bttr-software.de/qemu/

currently 0.10.1

You will need also the DLL's:
  • original SDL version 1.2.13
  • original FMOD version 3.75
  • original zlib version 1.2.3


jaclaz


--------------------
1 user(s) said "Thank you!" to jaclaz for this fantastic post:
ktp
+Quote Post
post Jul 13 2009, 06:41 AM
Post #3
TigerWhite
  
Group: Members

  Joined: 17-December 08
Posts: 2
Thank(s): 2


India


QUOTE (jaclaz @ Apr 7 2009, 12:13 AM) *
Just for the record latest (unofficial) Win32 build is here:
http://www.bttr-software.de/qemu/

currently 0.10.1


The current rev is 0.10.5.
But the commandline given by the OP is not working with this rev.

I tested a UFD containing bootsdi.img using the command in qemu 0.9.1 and it booted OK.
However, when I tried the same command in qemu 0.10.5 it did not succeed. The qemu window appears for a fraction of a second and closes. I could not find out the error.

After searching qemu forums I tried a slightly altered commandline

CODE
@echo off
qemu.exe -L "C:\qemu" -M pc -localtime -boot c -hda \\.\physicaldrive1



and the UFD booted successfully. The difference is only in the number of backslashes.
The altered commandline does not work in 0.9.1.

Strange. huh.gif

2 user(s) said "Thank you!" to TigerWhite for this fantastic post:
Alakadebra, Shirin Zaban
+Quote Post
post Jul 13 2009, 07:48 AM
Post #4
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


QUOTE (TigerWhite @ Jul 13 2009, 08:41 AM) *
Strange. huh.gif


Yep smile.gif, though what you used appears to be the "right" way, I mean I always used "single double" slashes, maybe it was a quirk of the parsing engine of the older version that needed the doubling. unsure.gif

jaclaz


--------------------
+Quote Post
post Jul 27 2009, 12:54 PM
Post #5
Neel
Member   **
Group: Members

  Joined: 14-February 09
Posts: 53
Thank(s): 1


India


its giving me the following error sad.gif

disk error
press any key to restart
Attached thumbnail(s)
Attached Image
 
+Quote Post
post Jul 27 2009, 01:19 PM
Post #6
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


QUOTE (Neel @ Jul 27 2009, 02:54 PM) *
its giving me the following error sad.gif

WHAT w00t.gif is giving you the error?

The error you are having is coming from the actual device (USB stick I presume).
  • What is it?
  • How did you partition/format it?
  • With what tools?
  • Under which OS?
  • How big is it in size?
  • etc., etc.


Compare with point #d. of "common sense advice" attached to Rules wink.gif:
http://www.boot-land.net/forums/index.php?act=boardrules

cheers.gif


jaclaz


--------------------
+Quote Post
post Jul 28 2009, 05:04 AM
Post #7
Neel
Member   **
Group: Members

  Joined: 14-February 09
Posts: 53
Thank(s): 1


India


QUOTE (jaclaz @ Jul 27 2009, 02:19 PM) *
WHAT w00t.gif is giving you the error?

The error you are having is coming from the actual device (USB stick I presume).
  • What is it?
  • How did you partition/format it?
  • With what tools?
  • Under which OS?
  • How big is it in size?
  • etc., etc.


Compare with point #d. of "common sense advice" attached to Rules wink.gif:
http://www.boot-land.net/forums/index.php?act=boardrules

cheers.gif


jaclaz


sorry my bad ermm.gif

yes it is a USB stick, i am using grub4dos, i used "HP Disk Storage Format tool v2.0.0" to format it and i am using winxp with sp2 x64. my USB capacity is 1GB. its working fine when i am trying to boot my system using it. the following is the content of my disk

and the content of menu.lst
CODE
color white/blue black/white white/blue white/blue
timeout 30
default 0

title 1. USB XP
find --set-root /xpldr
chainloader /xpldr

title 2. Kaspersky Rescue-CD
kernel /KAV2009_JUL_13/isolinux/rescue subdir=/KAV2009_JUL_13 setkmap=us scandelay=5 root=/dev/ram0 init=/linuxrc looptype=squashfs loop=/KAV2009_JUL_13/image.squashfs cdroot
initrd  /KAV2009_JUL_13/isolinux/rescue.igz

title 3. Avira System Rescue
find --set-root /AVISO/avira26July2009.iso
map /AVISO/avira26July2009.iso (0xff) || map --mem /AVISO/avira26July2009.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2

title 4. Boot CDROM
cdrom --init
map --hook
chainloader (cd0)
rootnoverify (cd0)

title 5. Boot from hard disk
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
chainloader (hd0)+1
boot

title 6. commandline
savedefault --wait=2
commandline

title 7. Reboot
reboot

title 8. Halt/Shutdown
halt

Attached thumbnail(s)
Attached Image
 
+Quote Post
post Jul 28 2009, 11:06 AM
Post #8
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,224
Thank(s): 547


Italy


I'll try again.
QUOTE (Neel @ Jul 28 2009, 07:04 AM) *
i used "HP Disk Storage Format tool v2.0.0"

is the "wrong" answer (AFAIK there are only two version around, 2.0.6 or 2.1.8) too this question:
QUOTE (jaclaz @ Jul 27 2009, 03:19 PM) *
  • With what tools?


The answer to this other one:
QUOTE (jaclaz @ Jul 27 2009, 03:19 PM) *
  • How did you partition/format it?

Could be:
  • NTFS
  • FAT16 CHS mapped (06)
  • FAT16 LBA mapped (0C)
  • FAT32 CHS mapped (0B)
  • FAT32 LBA mapped (0C)

happy22.gif

The HP tool produces usually (read always) not-balanced CHS/LBA data, that can cause that a stick is bootable on a given BIOS, but it is not on another one.

If data is balanced, the usual test is to change the partition type from CHS to LBA or viceversa.

FAT32, additionally has a known problem with it's bootsector (in the version from 2K/XP/2003, the one invoking NTLDR)

Please, try using fuwi's utility:
http://www.911cd.net/forums//index.php?sho...c=21702&hl=
(which does make use of the HP formatting utility, but corrects some of its "quirks").

Other appropriate apps are listed here:
http://www.msfn.org/board/index.php?showto...87993&st=17

or post your MBR compressed into a .zip or .7z archive and i'll have a look at it (first sector of PhysicalDrive, use HDhacker to save it):
http://www.dimio.altervista.org/eng/

jaclaz


--------------------
1 user(s) said "Thank you!" to jaclaz for this fantastic post:
Neel
+Quote Post
post Jul 28 2009, 07:42 PM
Post #9
Neel
Member   **
Group: Members

  Joined: 14-February 09
Posts: 53
Thank(s): 1


India


2.0.6 sorry i mistyped

ok let me go through the links u provided
+Quote Post
post Jul 29 2009, 03:38 AM
Post #10
Neel
Member   **
Group: Members

  Joined: 14-February 09
Posts: 53
Thank(s): 1


India


thanks jaclaz i was finally able to boot using qemu didn't understood what the problem was so i tried recreating and it seem to be working now thanks, also more dumb questions might be coming up now as i am able to boot using qemu plz bare with me, and i hope from next time onwards i will be able specifics. biggrin.gif
+Quote Post

Reply to this topic
1 User(s) are reading this topic ()


  

Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts testpost
testing firefox 3.6
9 ctmag 80 Today, 04:25 PM
Last post by: psc
No new Topic has attachmentsHow to place your own Boot screen in XP setup CD
17 Shirin Zaban 12,630 7th February 2010 - 11:49 PM
Last post by: Bob K.
No New Posts USBoot w/XPsp2 not booting after DiskCryptor system encryption
BSOD Stop Code = UNMOUNTABLE_BOOT_VOLUME
4 Zoso 1,294 6th February 2010 - 11:38 AM
Last post by: Wonko the Sane
No New Posts How to install GRUB2 on USB drive from within Windows
6 somanystars 628 5th February 2010 - 04:36 PM
Last post by: Wonko the Sane
No new tool to track install wanted!
31 MedEvil 4,733 3rd February 2010 - 11:43 AM
Last post by: m4dm4Xz