Hi...

David: thanks for this info.

It seems i found why the "bug"?

If the table of partition is "(ms)dos", the detection of USB HDD (or
pendrive) is correct, and mount!

If the table of partition is "GPT", the detection hang!

Alexey Vatchenko is warned about this problem, by personnal discussion
by emails. He will confirm ;)


On 11/16/16 13:55, David Coppa wrote:
> On Wed, 16 Nov 2016, Stephane HUC "CIOTBSD" wrote:
>
>> Question: How i can "write" fstype "NTFS" on the "defective" HDD?
>> It's really formated in NTFS - mode normal, on Win7!
>
> Try with "fdisk -e" under OpenBSD.
>
> Use "07" for the partition id and, for the other parameters (offset,
> size), just press enter to leave them unchanged.
>
> Example:
>
> <root@x220:~># fdisk -e sd2
> Enter 'help' for information
> fdisk: 1> p
> Disk: sd2       geometry: 498/255/63 [8011774 Sectors]
> Offset: 0       Signature: 0xAA55
>             Starting         Ending         LBA Info:
>  #: id      C   H   S -      C   H   S [       start:        size ]
> -------------------------------------------------------------------------------
> *0: 04      0  32  33 -    498 181   1 [        2048:     8009726 ] MSDOS  
>  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
> fdisk: 1> edit 0
>             Starting         Ending         LBA Info:
>  #: id      C   H   S -      C   H   S [       start:        size ]
> -------------------------------------------------------------------------------
> *0: 04      0  32  33 -    498 181   1 [        2048:     8009726 ] MSDOS  
> Partition id ('0' to disable) [01 - FF]: [4] (? for help) 07
> Do you wish to edit in CHS mode? [n] 
> Partition offset [0 - 8011774]: [2048] 
> Partition size [1 - 8009726]: [8009726] 
> fdisk:*1> w
> Writing MBR at offset 0.
> fdisk: 1> q
> <root@x220:~># fdisk sd2
> Disk: sd2  geometry: 498/255/63 [8011774 Sectors]
> Offset: 0       Signature: 0xAA55
>             Starting         Ending         LBA Info:
>  #: id      C   H   S -      C   H   S [       start:        size ]
> -------------------------------------------------------------------------------
> *0: 07      0  32  33 -    498 181   1 [        2048:     8009726 ] NTFS      
>   
>  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
>  3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused    
>   
> <root@x220:~># ^D
>
>
> Ciao!
> David
>

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<
----
<me>Stephane HUC as PengouinPdt or CIOTBSD</me>
<mail>[email protected]</mail>

Reply via email to