On Thu, 2007-12-06 at 21:08 -0800, Greg KH wrote: > On Fri, Dec 07, 2007 at 04:33:42AM +0100, Carlos E. R. wrote: > > > > > > The Thursday 2007-12-06 at 21:00 -0600, Billie Walsh wrote: > > > > > > > BUT, you say that Linux doesn't support SATA? > > > > No. Plug and play, live, sata / esata. Ie, (dis)connect a disk with system > > running, like a disk on usb. > > Yes, you are correct, however, developers are working on this right now. > Luckily, there is not much hardware like this currently out there :)
No. You are incorrect on hot swapping SATA. I do this all the time (last checked on a SUSE 10.1 install - soon to be verified on a 10.3 install). 1) unmount the disk 2) remove it. I get this in the system log when I do this: ata1: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0x42 frozen ata1: (irq_stat 0x00400000, PHY RDY changed) ata1: soft resetting port ata1: SATA link down (SStatus 11 SControl 310) ata1: failed to recover some devices, retrying in 5 secs ata1: hard resetting port ata1: SATA link down (SStatus 0 SControl 310) ata1: failed to recover some devices, retrying in 5 secs ata1: hard resetting port ata1: SATA link down (SStatus 0 SControl 310) ata1.00: disabled ata1: EH complete ata1.00: detaching (SCSI 0:0:0:0) 3) When I insert a new disk, I get this in the system logs: ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0x42 frozen ata1: (irq_stat 0x00000040, connection status changed) ata1: waiting for device to spin up (8 secs) ata1: hard resetting port ata1: port is slow to respond, please be patient ata1: port failed to respond (30 secs) ata1: COMRESET failed (device not ready) ata1: hardreset failed, retrying in 5 secs ata1: limiting SATA link speed to 1.5 Gbps ata1: hard resetting port ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata1.00: ATA-7, max UDMA/133, 625142448 sectors: LBA48 NCQ (depth 31/32) ata1.00: ata1: dev 0 multi count 0 ata1.00: configured for UDMA/133 ata1: EH complete Vendor: ATA Model: Hitachi HDT72503 Rev: V54O Type: Direct-Access ANSI SCSI revision: 05 SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) sda: Write Protect is off sda: Mode Sense: 00 3a 00 00 SCSI device sda: drive cache: write back SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB) sda: Write Protect is off sda: Mode Sense: 00 3a 00 00 SCSI device sda: drive cache: write back sda: sda1 sd 0:0:0:0: Attached scsi disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 My system has 4 removable SATA disks. So I have a udev rule to mount them in a predictable way, no matter which of the 4 are really present. And, since I run KDE,I also get a dialog when the new disk is inserted. Be sure to unmount the disks first. Otherwise the mount table retains old information about disks no longer mounted. If this has happened, clean it up with: umount -a mount -a -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]