For some reason DevicE fails to be detected , I can hear some noise on power on but the status led is still orange and not UsB Controller is detected by LinuxKernel (lsusb or lsblk or dmesg)
Lacie Porsche 250 Go 7200 RPM 8 Mo USB 2.0 @ 140 EUR
Capacity: 250.0 GB Speed: 7200 rpm Average Read Time: 8 ms Cylinders/Heads/Sectors: 1024/256/63 PATA
$ lsusb Bus 001 Device 002: ID 059f:0651 LaCie, Ltd
$ fdisk -l /dev/uba Disk /dev/uba: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/uba1 * 1 30401 244196001 c W95 FAT32 (LBA)
$ fdisk -l -u /dev/uba
Disk /dev/uba: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System /dev/uba1 * 63 488392064 244196001 c W95 FAT32 (LBA)
On Linux make sure that u have SCSI modules compiled
cat /proc/scsi/scsi Attached devices: Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: SEAGATE Model: ST3250823A Rev: 3.03 Type: Direct-Access ANSI SCSI revision: 02
uname -a Linux nrv 2.6.14.4-k7-amiloa #3 Sun Dec 18 00:00:52 CET 2005 i686 GNU/Linux
usb 1-1: new full speed USB device using ohci_hcd and address 2 SCSI subsystem initialized Initializing USB Mass Storage driver... scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver ub Vendor: SEAGATE Model: ST3250823A Rev: 3.03 Type: Direct-Access ANSI SCSI revision: 02 usb-storage: device scan complete
Performance ? : TODO
hdparm -t -T /dev/sda # Timing cached reads: 524 MB in 2.01 seconds = 260.42 MB/sec # Timing buffered disk reads: 4 MB in 5.09 seconds = 804.98 kB/sec
Problems: Bad DSDT cause those troubles :
Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. uba: uba1 uba: uba1 end_request: I/O error, dev uba, sector 488391999 printk: 3 messages suppressed. Buffer I/O error on device uba1, logical block 244195968 ... end_request: I/O error, dev uba, sector 119339 ... usb 1-1: USB disconnect, address 2
Life Management :
smartctl -i /dev/sda smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: SEAGATE ST3250823A Version: 3.03 Device type: disk Local Time is: Thu Dec 13 22:28:01 2007 CET Device does not support SMART
http://www.everythingusb.com/forums/showthread.php?s=b7d0ef14bb511bad2ec08ecde2ad06e8&threadid=9420
How to put it on sleep mode ? CONFIG_USB_SUSPEND
$ echo suspend > /sys/bus/usb/devices/1-2/power/level
I'll have to test this
hdsentinel /dev/sdb HDD Device 1: /dev/sdb HDD Model ID : ST3250823A HDD Serial No: 4ND07ZZ0 HDD Revision : 3.03 HDD Size : 238475 MB Interface : IDE/ATA Temperature : 30 °C Health : 99 % Performance : 70 % Power on time: 579 days, 21 hours Est. lifetime: more than 1000 days
Once connected to std IDE cable :
root@teuz:~ # smartctl --all /dev/sdb smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 7200.8 family Device Model: ST3250823A Serial Number: 4ND07ZZ0 Firmware Version: 3.03 User Capacity: 250 059 350 016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Tue Jan 13 17:46:45 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x82) Offline data collection activity was completed without error. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 430) seconds. Offline data collection capabilities: (0x5b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. No Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 84) minutes. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 047 045 006 Pre-fail Always - 8698998 3 Spin_Up_Time 0x0003 099 098 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 584 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 1 7 Seek_Error_Rate 0x000f 088 060 030 Pre-fail Always - 731187072 9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13917 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 639 194 Temperature_Celsius 0x0022 031 060 000 Old_age Always - 31 (Lifetime Min/Max 0/14) 195 Hardware_ECC_Recovered 0x001a 047 045 000 Old_age Always - 8698998 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 181 000 Old_age Always - 19 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0 202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0 SMART Error Log Version: 1 ATA Error Count: 19 (device log contains only the most recent five errors) CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days. Error 19 occurred at disk power-on lifetime: 13917 hours (579 days + 21 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 01 1f 00 00 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x0000001f = 31 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 18 00 00 e0 00 00:01:13.044 READ DMA 27 00 00 00 00 00 e0 00 00:01:13.043 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 02 00:01:13.035 IDENTIFY DEVICE ef 03 42 00 00 00 a0 02 00:01:12.934 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 00:01:12.457 READ NATIVE MAX ADDRESS EXT Error 18 occurred at disk power-on lifetime: 13917 hours (579 days + 21 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 01 1f 00 00 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x0000001f = 31 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 18 00 00 e0 00 00:01:11.858 READ DMA 27 00 00 00 00 00 e0 00 00:01:11.849 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 02 00:01:11.748 IDENTIFY DEVICE ef 03 42 00 00 00 a0 02 00:01:11.271 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 00:01:12.457 READ NATIVE MAX ADDRESS EXT Error 17 occurred at disk power-on lifetime: 13917 hours (579 days + 21 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 01 1f 00 00 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x0000001f = 31 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 18 00 00 e0 00 00:01:11.858 READ DMA 27 00 00 00 00 00 e0 00 00:01:11.849 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 02 00:01:11.748 IDENTIFY DEVICE ef 03 42 00 00 00 a0 02 00:01:11.271 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 00:01:11.271 READ NATIVE MAX ADDRESS EXT Error 16 occurred at disk power-on lifetime: 13917 hours (579 days + 21 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 01 1f 00 00 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x0000001f = 31 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 18 00 00 e0 00 00:01:10.668 READ DMA 27 00 00 00 00 00 e0 00 00:01:10.570 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 02 00:01:10.102 IDENTIFY DEVICE ef 03 42 00 00 00 a0 02 00:01:11.271 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 00:01:11.271 READ NATIVE MAX ADDRESS EXT Error 15 occurred at disk power-on lifetime: 13917 hours (579 days + 21 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 84 51 01 1f 00 00 e0 Error: ICRC, ABRT 1 sectors at LBA = 0x0000001f = 31 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- c8 00 08 18 00 00 e0 00 00:01:10.668 READ DMA 27 00 00 00 00 00 e0 00 00:01:10.570 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 02 00:01:10.102 IDENTIFY DEVICE ef 03 42 00 00 00 a0 02 00:01:10.101 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 00:01:10.094 READ NATIVE MAX ADDRESS EXT SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.