LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Hotplugging SATA drives (https://www.linuxquestions.org/questions/linux-hardware-18/hotplugging-sata-drives-566288/)

imitheos 07-03-2007 08:11 AM

Hotplugging SATA drives
 
Hello.

I have a motherboard with Intel ICH6R SATA controller. I use AHCI mode in BIOS and the AHCI linux ATA driver of course which
supports hotplugging.

My motherboard has a bracket that it is used to take internal sata and make it external (no e-sata then).
I have tried it some times to plug in or out my second disk and transfer data. The whole procedure is done ok and the data appear
without errors, but i get some kernel errors.

I put the disk today with the machine powered off and transferred the data and then plugged it off.

The kernel messages i got are the following:

Code:

ata4: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0x2 frozen
ata4: (irq_stat 0x00400000, PHY RDY changed)
ata4: soft resetting port
ata4: SATA link down (SStatus 11 SControl 300)
ata4: failed to recover some devices, retrying in 5 secs
ata4: hard resetting port
ata4: SATA link down (SStatus 0 SControl 300)
ata4.00: limiting speed to UDMA/133:PIO3
ata4: failed to recover some devices, retrying in 5 secs
ata4: hard resetting port
ata4: SATA link down (SStatus 0 SControl 300)
ata4.00: disabled
ata4: EH complete
ata4.00: detaching (SCSI 3:0:0:0)
Synchronizing SCSI cache for disk sdb:
FAILED
  status = 0, message = 00, host = 4, driver = 00

Does anyone use external SATA drives / hotplugging ?
Do i need to use some command before plugging it off ? (With SCSI i echo add or remove device > /proc/scsi/scsi) but i haven't
tried it with SATA.

Thank you for your time.

Lenard 07-03-2007 04:47 PM

Quote:

Do i need to use some command before plugging it off ? (With SCSI i echo add or remove device > /proc/scsi/scsi) but i haven't tried it with SATA.
Yes, you should really use the same command for removal as SCSI drives, they are considered the same thing.

ata4.00: detaching (SCSI 3:0:0:0)
Synchronizing SCSI cache for disk sdb:


All times are GMT -5. The time now is 03:58 PM.