Jump to content











Photo
- - - - -

To jaclaz problems with Hpusbf.exe


  • Please log in to reply
1 reply to this topic

#1 yggdrasil

yggdrasil

    Frequent Member

  • Advanced user
  • 109 posts

Posted 08 October 2008 - 06:54 AM

To jaclaz

I have problem using HP USB format tool. I use Hpusbf.exe with this simple switch in my script to format USB device:
ShellExecute,Open,"%Temp%\grub\hpusbf.exe","%pScrollBox4% -FS:NTFS -y"
Everything works fine with formatting and USB device boot up with a breeze. But I always have to correct partition table to the correct value :confused1:
This is done automatically using Norton PartitionMagic witch offers me to correct partition table. This is what PartitionMagic tells me:
PartitionMagic has detected an error 110 on the partition starting at sector 63 on disk1. The length of the partition in the partition table is incorrect, the CHS length is 995967, the LBA length is 996030 and the filesystem length is 996029. The length can be changed to the correct value of 1012032
I of course use this option and the problem are solved.

My question is; can I change or put in something in my switch in line for Hpusbf.exe (-FS:NTFS -y) to create a correct partition table from start?

yggdrasil

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7,098 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 08 October 2008 - 07:16 AM

Unfortunately no.

The problem is a known one, basically the HP USB formatter tries to use ALL the sectors available, which, since a stick is in sizes that go along the powers of 2, when divided by 63 gives an uneven Cylinder/Head.
The data in the MBR is unbalanced between the CHS and LBA part.
In most cases this is not a problem, but a number of BIOSes will read the CHS part, find it invalid (partition NOT ending on cylinder boundary) and refuse to boot.
It also seems that the FAT32 bootsector is affected by this.

Apart from the possible error, it is a good idea to do things in the most "compatible" way.

I wrote for this reason a couple of batches, see here:
http://www.boot-land...?showtopic=5000
http://www.boot-land...?showtopic=3191

Apart using them instead of the HP utility, I guess that you can take snippets from them to "correct" an already formattted stick.
Basically you need to:
1) run the HP tool
2) copy the MBR locally
3) correct the MBR data
4) copy back the corrected MBR
5) eject the stick and re-insert it
6) use the "normal" Windows FORMAT command on it

jaclaz




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users