Reply-To: ghanuer497268()gmail!com

 Synopsis:   fdisk: Unable to read MBR: 5TB drive.

 Environment:
        System      : OpenBSD 5.8
        Details     : OpenBSD 5.8-beta (GENERIC.MP) #1125: Fri Jul 3
20:54:45 MDT 2015
                         [email protected]:
/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64

 Description:

   Unable to (fdisk -e or fdisk -i) usb3 5TB drive with 4096-byte Sectors.
    The usb host port version usb2 or usb3 makes no difference.
      Smaller 500GB 1TB 2TB and 3TB drives work as expected,all show
512-byte Sectors.
      Using ( disklabel -v -A sd0 ) does aper to allocate partitions.
     Also not able to ( dd if=/dev/zero of=/dev/rsd0c ).
        Although ( dd if=/dev/zero of=/dev/sd0c ) works as expected.

 How-To-Repeat:

# fdisk sd0
Disk: sd0       geometry: 76000/255/63 [1220942645 4096-byte Sectors]
Offset: 0       Signature: 0x0
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
 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: Unable to read MBR: No such file or directory

# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Backup+  Desk
duid: 0000000000000000
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 76000
total sectors: 1220942645
boundstart: 0
boundend: 1220942645
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:       1220942645                0  unused


# ls
/usr/mdec/

biosboot boot     cdboot   cdbr     fdboot   mbr      pxeboot

# ls /dev/sd0*
/dev/sd0a /dev/sd0c /dev/sd0e /dev/sd0g /dev/sd0i /dev/sd0k /dev/sd0m
/dev/sd0o
/dev/sd0b /dev/sd0d /dev/sd0f /dev/sd0h /dev/sd0j /dev/sd0l /dev/sd0n
/dev/sd0p

# ls /dev/rsd0*
/dev/rsd0a /dev/rsd0c /dev/rsd0e /dev/rsd0g /dev/rsd0i /dev/rsd0k
/dev/rsd0m /dev/rsd0o
/dev/rsd0b /dev/rsd0d /dev/rsd0f /dev/rsd0h /dev/rsd0j /dev/rsd0l
/dev/rsd0n /dev/rsd0p

# fdisk -e sd0
fdisk: Unable to read MBR: No such file or directory

# fdisk -i sd0
fdisk: Unable to read MBR: No such file or directory

# disklabel -v -A sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Backup+  Desk
duid: 0000000000000000
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 76000
total sectors: 1220942645
boundstart: 0
boundend: 1220942645
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:           262144                0  4.2BSD   4096 32768    1 # /
  b:          2158512           262144    swap
  c:       1220942645                0  unused
  d:          1048576          2420656  4.2BSD   4096 32768    1 # /tmp
  e:          5234528          3469232  4.2BSD   4096 32768    1 # /var
  f:           524288          8703760  4.2BSD   4096 32768    1 # /usr
  g:           262144          9228048  4.2BSD   4096 32768    1 #
/usr/X11R6
  h:          2621440          9490192  4.2BSD   4096 32768    1 #
/usr/local
  i:           524288         12111632  4.2BSD   4096 32768    1 # /usr/src
  j:           524288         12635920  4.2BSD   4096 32768    1 # /usr/obj
  k:         78643200         13160208  4.2BSD   8192 65536    1 # /home

# dd if=/dev/zero of=/dev/rsd0c
dd: /dev/rsd0c: Invalid argument
1+0 records in
0+0 records out
0 bytes transferred in 0.020 secs (0 bytes/sec)

# dd if=/dev/zero of=/dev/sd0c

 Above workes as expected.


 Fix:
       Unknown


    Thanks in advanced.
                 Gerald Hanuer

dmesg:
OpenBSD 5.8-beta (GENERIC.MP) #1125: Fri Jul 3 20:54:45 MDT 2015
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8572829696 (8175MB)
avail mem = 8309145600 (7924MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfcb40 (25 entries)
bios0: vendor American Megatrends Inc. version "6.08" date 06/29/2011
bios0: Hewlett-Packard 2AB1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SSDT SRAT HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4)
SBAZ(S4)
PS2K(S3) PS2M(S3) P0PC(S4) UHC1(S3) UHC2(S3) UHC3(S3) USB4(S3) UHC5(S3)
UHC6(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II X2 220 Processor, 2800.43 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX
,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF
,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X2 220 Processor, 2800.02 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX
,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF
,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu1: AMD erratum 721 detected and fixed
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE5)
acpiprt4 at acpi0: bus 2 (PCE6)
acpiprt5 at acpi0: bus 3 (PCE7)
acpiprt6 at acpi0: bus 4 (PCE9)
acpiprt7 at acpi0: bus 5 (PCEA)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: 2800 MHz: speeds: 2800 2100 1600 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD RS880 Host" rev 0x00
ppb0 at pci0 dev 2 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6450" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 6400 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 6 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi,
 address 7c:d0:35:14:59:da
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 4
ppb2 at pci0 dev 7 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ppb3 at pci0 dev 9 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
re1 at pci4 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi,
 address 34:f9:46:25:a9:56
rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 4
ppb4 at pci0 dev 10 function 0 "AMD RS780 PCIE" rev 0x00: msi
pci5 at ppb4 bus 5
re2 at pci5 dev 0 function 0 "Realtek 8101E" rev 0x05: RTL8168E/8111E
(0x2c00), msi,
 address 60:70:77:18:2f:5f
rgephy2 at re2 phy 7: RTL8169S/8110S PHY, rev. 4
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 2 int 22,
AHCI 1.1
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 1.5Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 1 lun 0: <TSSTcorp, DVD+-RW SH-216BB, D100> ATAPI
5/cdrom removable
cd1 at scsibus1 targ 2 lun 0: <hp, DVD-RAM GH80N, RF01> ATAPI 5/cdrom
removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 16,
version 1.0, legacy support
ohci1 at pci0 dev 18 function 1 "ATI SB700 USB" rev 0x00: apic 2 int 16,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci2 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ohci3 at pci0 dev 19 function 1 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 19
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x3c: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x00: apic 2 int
16
azalia1: codecs: Realtek ALC888
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x00
ppb5 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x00
pci6 at ppb5 bus 6
pchb1 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8721F rev 1, EC port 0xe80
umass0 at uhub0 port 2 configuration 1 interface 0 "Seagate Backup+  Desk"
rev 3.00/3.42 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Seagate, Backup+ Desk, 0342> SCSI4 0/direct
fixed
sd0: 4769307MB, 4096 bytes/sector, 1220942645 sectors
umass1 at uhub1 port 1 configuration 1 interface 0 "Genesys Logic USB
Storage" rev 2.00/97.27 addr 2
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Generic, STORAGE DEVICE-A, 9727> SCSI0
0/direct removable
sd2 at scsibus3 targ 1 lun 1: <Generic, STORAGE DEVICE-A, 9727> SCSI0
0/direct removable
sd3 at scsibus3 targ 1 lun 2: <Generic, STORAGE DEVICE-A, 9727> SCSI0
0/direct removable
sd3: 7580MB, 512 bytes/sector, 15523840 sectors, readonly
sd4 at scsibus3 targ 1 lun 3: <Generic, STORAGE DEVICE-A, 9727> SCSI0
0/direct removable
sd5 at scsibus3 targ 1 lun 4: <Generic, STORAGE DEVICE-A, 9727> SCSI0
0/direct removable
umass2 at uhub2 port 3 configuration 1 interface 0 "Generic Mass Storage
Device" rev 2.00/1.00 addr 2
umass2: using SCSI over Bulk-Only
scsibus4 at umass2: 2 targets, initiator 0
sd6 at scsibus4 targ 1 lun 0: <Generic-, SD/MMC, 1.00> SCSI0 0/direct
removable
sd7 at scsibus4 targ 1 lun 1: <Generic-, Compact Flash, 1.01> SCSI0
0/direct removable
sd8 at scsibus4 targ 1 lun 2: <Generic-, SM/xD-Picture, 1.02> SCSI0
0/direct removable
sd9 at scsibus4 targ 1 lun 3: <Generic-, MS/MS-Pro, 1.03> SCSI0 0/direct
removable
uhidev0 at uhub4 port 1 configuration 1 interface 0
 "Lenovo ThinkPad Compact USB Keyboard with TrackPoint" rev 2.00/3.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub4 port 1 configuration 1 interface 1
 "Lenovo ThinkPad Compact USB Keyboard with TrackPoint" rev 2.00/3.00 addr 2
uhidev1: iclass 3/1, 22 report ids
ums0 at uhidev1 reportid 1: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 16: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 17: input=2, output=0, feature=0
uhid2 at uhidev1 reportid 19: input=8, output=8, feature=8
uhid3 at uhidev1 reportid 21: input=2, output=0, feature=0
uhid4 at uhidev1 reportid 22: input=2, output=0, feature=0
vscsi0 at root
scsibus5 at vscsi0: 256 targets
softraid0 at root
scsibus6 at softraid0: 256 targets
root on sd3a (d3d8db83c886bf47.a) swap on sd3b dump on sd3b
radeondrm0: 1920x1080
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

usbdevs:
Controller /dev/usb0:
addr 1: super speed, self powered, config 1, xHCI root hub(0x0000),
NEC(0x1033), rev 1.00
 port 1 disabled
 port 2 addr 2: super speed, self powered, config 1, Backup+  Desk(0xab31),
Seagate(0x0bc2), rev 3.42, iSerialNumber NA7EM3W4
 port 3 disabled
 port 4 disabled
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 addr 2: high speed, power 500 mA, config 1, USB Storage(0x0716),
Genesys Logic(0x05e3), rev 97.27, iSerialNumber 000000009727
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb2:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 powered
 port 2 powered
 port 3 addr 2: high speed, power 250 mA, config 1, Mass Storage
Device(0x9106), Generic(0x18e3), rev 1.00, iSerialNumber 18E391066476
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, ThinkPad Compact USB
Keyboard with TrackPoint(0x6047), Lenovo(0x17ef), rev 3.00
 port 2 powered
 port 3 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
ATI(0x1002), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered

Reply via email to