Summary: | HAL does not consider eSATA drives to be hotpluggable | ||
---|---|---|---|
Product: | hal | Reporter: | Tristan Schmelcher <tristan_schmelcher> |
Component: | hald | Assignee: | David Zeuthen (not reading bugmail) <zeuthen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | danny.kukawka, gilles.dartiguelongue, marco.dr, mattgatto, pachoramos1, sam, ubuntu |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Output of running "lshal" after plugging in the drive via eSATA and getting the error
/etc/hal/fdi/policy/preferences.fdi |
Description
Tristan Schmelcher
2007-08-23 20:46:08 UTC
Please provide the complete lshal output as attachment Created attachment 11260 [details]
Output of running "lshal" after plugging in the drive via eSATA and getting the error
Btw, I have confirmed this now on 2.6.22-1 too, and that's the kernel that I used for the lshal attachment. what print: grep . /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/* $ grep . /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/* grep: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/delete: Permission denied /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/device_blocked:0 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/iocounterbits:32 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/iodone_cnt:0x16625 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/ioerr_cnt:0xd /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/iorequest_cnt:0x16625 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/modalias:scsi:t-0x00 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/model:Hitachi HTS72101 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/queue_depth:1 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/queue_type:none grep: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/rescan: Permission denied /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/rev:MCZO /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/scsi_level:6 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/state:running /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/timeout:30 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/type:0 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/uevent:DRIVER=sd /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/uevent:PHYSDEVBUS=scsi /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/uevent:PHYSDEVDRIVER=sd /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/uevent:MODALIAS=scsi:t-0x00 /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/vendor:ATA Looks to me as if we can't do anything here atm. I see no way to differ between SATA and eSATA. Maybe the kernel guys know more if this is possible at all. I was afraid of that. I'll leave it to you guys to open a bug at kernel.org or whatever. As an experienced user/engineer, having to run "sudo gnome-mount" in a terminal doesn't bother me too much. Once eSATA becomes more common though, I think you'll get a lot more complaints. Thanks. One last thing: If worst comes to worst, you might want to consider making _all_ SATA drives count as hotpluggable (because technically they are), and then tell the Debian/Ubuntu people to find a better way to enforce their security ideals. Just my two cents. hello there, this issue is starting to get a bit old. Did someone contact the kernel guys ? our downstream issue is at: https://bugs.gentoo.org/show_bug.cgi?id=260409 Add myself to CC. External hdd have more and more often an esata connection for great performances. But the system refuse to mount it automatically. It's a bad point. Upstream bug on kernel : http://bugzilla.kernel.org/show_bug.cgi?id=12898 From upstream : Currently, the only controller which has a way to tell the kernel whether a port is external or not is ahci. Unfortunately, there doesn't seem to be many machines which actually use the facility. I haven't seen any yet. The only workable solution seems to be developing eSATA whitelist on the hal side. Can hal simply consider that under a running sytem, when a new sata drive appear (eSATA), it should consider it as removable/hotplug and so Gnome can automount it ? Here is a hal rule I've put in my preferences.fdi which works for me in my case where I have an external esata drive plugged into a esata cardbus adapter in my laptop. I think it should work for anyone in a similar situation. Note that you have to either put it before, or comment out the other entry in the preferences.fdi that prevents automounting internal drives. I'll attach the full /etc/hal/fdi/policy/preferences.fdi. The rule: <!-- Fix properties for external esata drives connected via cardbus --> <match key="block.device" exists="true"> <match key="block.is_volume" bool="false"> <match key="storage.removable" bool="false"> <match key="@info.parent:@info.parent:@info.parent:@info.parent:info.linux.driver" string="pcieport-driver"> <merge key="storage.removable" type="bool">true</merge> <merge key="storage.hotpluggable" type="bool">true</merge> </match> </match> </match> </match> Created attachment 26669 [details]
/etc/hal/fdi/policy/preferences.fdi
You can't actually distuingish SATA from eSATA ports - I'm using an eSATA bracket which is internally connected to a SATA port. Looks like this: http://www.cooldrives.com/essaii3gbexp.html And I have one of these: <http://www.scan.co.uk/Products/Icy-Dock-MB-453SPF-Fits-into-2-525-Bays-Hosting-3-SATA-SATAII-Hard-Drive-with-Hot-swapable>, that connects via SATA internally. IMHO, all drives should be hot-pluggable. There is no harm in this because if they are mounted by HAL on behalf of a user, they will be mountned with nodev,nosuid and other appropriate options. If they are mounted by root then the exact options that the administrator desires will be given on the 'mount' command line, or in /etc/fstab, etc. I agree, all SATA drives should be considered hotpluggable. After all, they really are. Even an internal SATA drive can be unmounted and removed while the computer is on. Of course non-SATA internal drives should still be reported as not hotpluggable, since they aren't (e.g., IDE). This more general rule works for me and might work for any SATA drive, but I can't be sure as I only have my own to test it on: <match key="block.device" exists="true"> <match key="block.is_volume" bool="false"> <match key="storage.removable" bool="false"> <match key="@info.parent:linux.subsystem" string="scsi"> <match key="@info.parent:scsi.vendor" string="ATA"> <merge key="storage.removable" type="bool">true</merge> <merge key="storage.hotpluggable" type="bool">true</merge> </match> </match> </match> </match> </match> For informations, I'v this problem on Ubuntu 9.04, but not in Fedora 11 e-SATA hotplug support was fixed in HAL with those commits: http://cgit.freedesktop.org/hal/commit/?id=dea5997df8966719d707b7136621ffd37f69a4d7 http://cgit.freedesktop.org/hal/commit/?id=829968ed2ace38908db3ead8204d544d7198159f http://cgit.freedesktop.org/hal/commit/?id=23267656d59fe56cb6401f65a278c3ee2b32de39 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.