LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   FreeAgent GoFlex Desk 2 TB usbdrive - device not ready (https://www.linuxquestions.org/questions/linux-hardware-18/freeagent-goflex-desk-2-tb-usbdrive-device-not-ready-886525/)

1qaz 06-15-2011 10:48 AM

FreeAgent GoFlex Desk 2 TB usbdrive - device not ready
 
O/S:RHEL 5.3
I'm having issues with setup of a new Seagate 2 TB usbdisk.
Onced i created partition and fileysystem, then mounted the disk, used rsync to backup test data to this new device. Early on, everything works, but shows problems fairly soon afterwards.

Over a few days of testing, I've tested with variety of partition sizes.

Here is some output which may be useful

lsusb command returns info for this device:
Bus 002 Device 003: ID 0bc2:5071 Seagate RSS LLC

PARTED used to make a small partition on this device (size 1.4 GB) and filesystem (type ext2).
parted command "test" showed clean file system.

Mounted new partition (smaller than 2 GB for testing)
/dev/sdc1 1.4G 30K 1.3G 1% /mnt/backup

Parted commands
(parted) unit GB
(parted) mkpart
Partition name? []?
File system type? [ext2]?
Start? 0
End? 2000
(parted) print

Model: Seagate FA GoFlex Desk (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 0.00GB 2000GB 2000GB

Messages log entries:
kernel: Vendor: Seagate Model: FA GoFlex Desk Rev: 0155
kernel: Type: Direct-Access ANSI SCSI revision: 04
kernel: SCSI device sdc: 3907029167 512-byte hdwr sectors (2000399 MB)
kernel: sdc: Write Protect is off
kernel: sdc: Mode Sense: 1c 00 00 00
kernel: sdc: assuming drive cache: write through
kernel: SCSI device sdc: 3907029167 512-byte hdwr sectors (2000399 MB)
kernel: sdc: Write Protect is off
kernel: sdc: Mode Sense: 1c 00 00 00
kernel: sdc: assuming drive cache: write through
kernel: sdc: sdc1
kernel: sd 9:0:0:0: Attached scsi disk sdc
kernel: sd 9:0:0:0: Attached scsi generic sg6 type 0
kernel: usb-storage: device scan complete
kernel: sd 9:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
kernel: Add. Sense: Logical unit not ready, initializing command required
kernel: end_request: I/O error, dev sdc, sector 54
kernel: Buffer I/O error on device sdc1, logical block 10
kernel: lost page write due to I/O error on sdc1

Appreciate any feedback before i take out a hammer... cheers!

kingbeowulf 06-19-2011 01:09 AM

You can use "sdparm" to query and set the spin done parameter. Looks like the drive might go spinning down in to power save mode and then not waking up fast enough. This is typical with certain FreeAgent drives and certain linux kernels. I have a FreeAgent USB drive I bought a few years ago and had a very similar problem. Newer kernels supposedly fixed this issue...

Here's some info I dredged up a while back on one or another distro forum (I don't remember which). Check sdparm man page too:
Code:

To view status:
# sdparm -a /dev/sdb
or
# sdparm -al /dev/sdb

To clear the spin down mode:
 
# sdparm --clear STANDBY -6 /dev/sdb

To restore the default value:

# sdparm -D -p 0x1a -6 /dev/sdb

To change the default standby condition timer to 1 hour:

$ sudo sdparm -s SCT=36000 --save /dev/sdb



All times are GMT -5. The time now is 06:39 AM.