USB-Festplatte: smartctl Capacity falsch? hdparm Sektorenanzahl auch falsch?

Hast Du Probleme mit Hardware, die durch die anderen Foren nicht abgedeckt werden? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
CountDracula
Beiträge: 86
Registriert: 14.01.2011 00:53:59
Wohnort: Transylvania

USB-Festplatte: smartctl Capacity falsch? hdparm Sektorenanzahl auch falsch?

Beitrag von CountDracula » 24.03.2019 14:40:36

Hi,

ich habe zwei externe 10TB USB-Festplatten. Beide von Western Digital, aber eine My Book (/dev/sdb) und eine Elements (/dev/sdc). Jetzt habe ich den kompletten Inhalt von der Elements auf die My Book mit ddrescue gespiegelt. Eigentlich dachte ich, dass beide Festplatten exakt gleich groß sind, weil ich die Capacity-Angabe von smartctl verglichen habe. Nun stellt sich heraus, dass die My Book doch scheinbar 30 MB größer ist.

Code: Alles auswählen

root@pc:~# lsblk -ba -o NAME,TYPE,SIZE /dev/sd{b,c}
NAME   TYPE           SIZE
sdb    disk 10000831348736
└─sdb1 part 10000795697152
sdc    disk 10000797794304
└─sdc1 part 10000795697152

Code: Alles auswählen

root@pc:~# smartctl -d sat --all /dev/sdb | grep Capacity
User Capacity:    10.000.831.348.736 bytes [10,0 TB]
root@pc:~# smartctl -d sat --all /dev/sdc | grep Capacity
User Capacity:    10.000.831.348.736 bytes [10,0 TB]

Code: Alles auswählen

root@pc:~# hdparm -I /dev/sdb | grep -i sector
	sectors/track	63	63
	CHS current addressable sectors:    16514064
	LBA    user addressable sectors:   268435455
	LBA48  user addressable sectors: 19532873728
	Logical  Sector size:                   512 bytes
	Physical Sector size:                  4096 bytes
	Logical Sector-0 offset:                  0 bytes
	R/W multiple sector transfer: Max = 16	Current = 0
root@pc:~# hdparm -I /dev/sdc | grep -i sector
	sectors/track	63	63
	CHS current addressable sectors:    16514064
	LBA    user addressable sectors:   268435455
	LBA48  user addressable sectors: 19532873728
	Logical  Sector size:                   512 bytes
	Physical Sector size:                  4096 bytes
	Logical Sector-0 offset:                  0 bytes
	R/W multiple sector transfer: Max = 16	Current = 0
dmesg:

Code: Alles auswählen

root@pc:~# dmesg | grep "logical blocks"
[    5.150102] sd 9:0:0:0: [sda] 61472768 512-byte logical blocks: (31.5 GB/29.3 GiB)
[  408.074002] sd 10:0:0:0: [sdb] 19532873728 512-byte logical blocks: (10.0 TB/9.10 TiB)
[  464.585319] sd 11:0:0:0: [sdc] 19532808192 512-byte logical blocks: (10.0 TB/9.09 TiB)
dmesg nach dem Kopiervorgang:

Code: Alles auswählen

[So Mär 24 12:31:39 2019] sd 10:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[So Mär 24 12:31:39 2019] GPT:Primary header thinks Alt. header is not at the end of the disk.
[So Mär 24 12:31:39 2019] GPT:19532808191 != 19532873727
[So Mär 24 12:31:39 2019] GPT:Alternate GPT header not at the end of the disk.
[So Mär 24 12:31:39 2019] GPT:19532808191 != 19532873727
[So Mär 24 12:31:39 2019] GPT: Use GNU Parted to correct GPT errors.
[So Mär 24 12:31:39 2019]  sdb: sdb1
Tabelle:
Bild

Ist die Angabe von smartctl einfach falsch?
I am Dracula. I bid you welcome.

Antworten