Can we update belenix.org with this package until the next rev of  
BeleniX is out?

~Joe

On 01-Aug-07, at 9:56 AM, Anil Gulecha wrote:

> On 8/1/07, Ananth Shrinivas <Ananth.Shrinivas at sun.com> wrote:
>> Hey Anil,
>>
>> All that fdisk does, is to print the partition table information  
>> present
>> in the MBR. If the MBR on the USB doesn't contain a valid partition
>> table at 0x1BE - Garbage In, Garbage Out.
>>
>> Here is a test I just did on my USB Key:
>>
>> # dd if=/dev/zero of=/dev/rdsk/c7t0d0p0  bs=512 count=1
>> 1+0 records in
>> 1+0 records out
>> # fdisk -W - c7t0d0p0 | tail -1
>> * Id    Act  Bhead  Bsect  Bcyl    Ehead  Esect  Ecyl    Rsect     
>> Numsect
>>
>> This is definitely not flaky behaviour from fdisk. So what exactly  
>> are
>> you using the information from 'fdisk -W' for ?
>>
>
> Thanks Ananth,
>
> I think we now nailed the Bug. The Rsect value is used to calculate
> the size of the USB, and this wont work on unformatted drives. We go
> on to format it as ufs (using fdisk -B) later on in the script. that
> is what was causing the error. I moved it up before size calculation.
>
> Fixed the bug and added a -debug swich that will allow for easy
> debugging. The new usbdump (v1.3) is linked. Anyone who faces errors
> should boot into belenix, replace usbdump with this version in
> /usr/bin and run it.
>
> http://blogs.sun.com/anilg/resource/usbdump
>
> Cheers
> Anil
> _______________________________________________
> belenix-discuss mailing list
> http://mail.opensolaris.org/mailman/listinfo/belenix-discuss
> http://groups.google.com/group/belenix-discuss


Reply via email to