[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Wrong sizes for single disk in different usb enclosures.



Hi.

I'm trying out my 1TB Toshiba MQ01ABD100 SATA hard disk in three
different sata-usb enclosures. I'm testing the size of the drive by
viewing both /sys/block/sdb/size and by using "hdparm -I", and I see
different figures for the size. Here are the results:

1st enclosure (USB ID 14cd:6116):
/sys/block/sdb/size: 1953525166
hdparm -I /dev/sdb | grep LBA48: 1953525168

2nd enclosure (USB ID 152d:2509):
/sys/block/sdb/size: 1953524995
hdparm -I /dev/sdb | grep LBA48: 1953525168

3rd enclosure (USB ID 152d:2339):
/sys/block/sdb/size: 1953525168
hdparm -I /dev/sdb | grep LBA48: no data (error msg about bad sense data)

Given that this is only one drive (which I _think_ has 1953525168
sectors), are any of these results "bugs"? Also, are there any
(negative) consequences of the kernel getting the drive size wrong?
(i.e. could this lead to loss of data?)

Many thanks, Jaime


Reply to: