Hi there.
It seems there is nothing written in the last sector.
I've put the blank disk in, created a partition table, created one partition over the whole disk and then connected the disk over eSATA.
Attaching in the faulty enclosure:Quote:
[243560.668173] usb 1-3: new high-speed USB device number 18 using ehci-pci
[243560.801100] usb 1-3: New USB device found, idVendor=13fd, idProduct=0840
[243560.801111] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[243560.801115] usb 1-3: Product: External
[243560.801121] usb 1-3: Manufacturer: Generic
[243560.801126] usb 1-3: SerialNumber: 4A5231303034344D30393933
[243560.802384] usb-storage 1-3:1.0: USB Mass Storage device detected
[243560.803230] scsi16 : usb-storage 1-3:1.0
[243561.801101] scsi 16:0:0:0: Direct-Access Generic External 1.14 PQ: 0 ANSI: 4
[243561.806348] sd 16:0:0:0: Attached scsi generic sg2 type 0
[243561.807033] sd 16:0:0:0: [sdb] 1953525167 512-byte logical blocks: (1.00 TB/931 GiB)
[243561.807909] sd 16:0:0:0: [sdb] Write Protect is off
[243561.807923] sd 16:0:0:0: [sdb] Mode Sense: 23 00 00 00
[243561.808631] sd 16:0:0:0: [sdb] No Caching mode page found
[243561.808638] sd 16:0:0:0: [sdb] Assuming drive cache: write through
[243561.811136] sd 16:0:0:0: [sdb] No Caching mode page found
[243561.811147] sd 16:0:0:0: [sdb] Assuming drive cache: write through
[243561.842658] sdb: unknown partition table
[243561.870910] sd 16:0:0:0: [sdb] No Caching mode page found
[243561.870927] sd 16:0:0:0: [sdb] Assuming drive cache: write through
[243561.870937] sd 16:0:0:0: [sdb] Attached SCSI disk
root@R600:/tmp# hdparm -I /dev/sdb|grep sector
sectors/track 63 63
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 1953525168
R/W multiple sector transfer: Max = 16 Current = 16
Creating table & partitionQuote:
root@R600:/tmp# parted /dev/sdb print
Error: /dev/sdb: unrecognised disk label
root@R600:/tmp# parted /dev/sdb mklabel msdos
Information: You may need to update /etc/fstab.
root@R600:/tmp# parted /dev/sdb mkpart primary 2048s 100%
Information: You may need to update /etc/fstab.
root@R600:/tmp# parted /dev/sdb print
Model: Generic External (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary
Check with fdiskQuote:
root@R600:/tmp# fdisk -l /dev/sdb
Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525167 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00057f8d
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1953523711 976760832 83 Linux
Strange thing is that it reports log/phy sector size 512/512 - the disk itself is 1TB and is using 4k sectors internally... see below.
Attaching to eSATAQuote:
[245147.763142] ata5: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[245147.763155] ata5: irq_stat 0x00000040, connection status changed
[245147.763162] ata5: SError: { CommWake DevExch }
[245147.763191] ata5: hard resetting link
[245148.488075] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[245148.489270] ata5.00: ATA-8: HGST HTS721010A9E630, JB0OA3J0, max UDMA/133
[245148.489280] ata5.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[245148.490524] ata5.00: configured for UDMA/133
[245148.504111] ata5: EH complete
[245148.504503] scsi 4:0:0:0: Direct-Access ATA HGST HTS721010A9 JB0O PQ: 0 ANSI: 5
[245148.507248] sd 4:0:0:0: Attached scsi generic sg2 type 0
[245148.507496] sd 4:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[245148.507509] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[245148.507708] sd 4:0:0:0: [sdb] Write Protect is off
[245148.507721] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[245148.507806] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[245148.783637] sdb: sdb1
[245148.784997] sd 4:0:0:0: [sdb] Attached SCSI disk
root@R600:/tmp# hdparm -I /dev/sdb|grep sector
sectors/track 63 63
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 1953525168
R/W multiple sector transfer: Max = 16 Current = 16
Print pt contents with fdisk/partedQuote:
root@R600:/tmp# fdisk -l /dev/sdb
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00057f8d
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1953523711 976760832 83 Linux
root@R600:/tmp# parted /dev/sdb print
Model: ATA HGST HTS721010A9 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary
Sector count is OK.
Sector size now differs. 4k phy sectors reported correctly.
Looking through cfdisk shows 0,75MB extra free space at the end of the disk.
Last sector dumpCode:
root@R600:/tmp# dd if=/dev/sdb skip=1953525167 bs=512 | od -Ax -v -tx1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0409056 s, 12.5 kB/s
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000200
No. Nothing there.
It seems like some kind of "legacy" mode?
Changing sector size and sector count - seems to me like the jumper switches on the old drives - limit capacity to ... but it was pre-LBA, makes no sense nowadays...
Thanks and have a great day
Tharrrk