[olug] Auto-mount prompt for eSATA drive

Aric Aasgaard aric at omahax.com
Mon Nov 9 08:01:35 UTC 2009


OK in Debian /etc/hal/fdi/policy/preferences.fdi
 
Comment out this part.

The following shows how to hint gnome-volume-manager and other programs
that honor the storage.automount_enabled_hint to not mount non-removable
media.

<!--
  <device>
    <match key="storage.hotpluggable" bool="false">
      <match key="storage.removable" bool="false">
        <merge key="storage.automount_enabled_hint"
type="bool">false</merge>
      </match>
    </match>
  </device>
-->

Ubuntu is probably similar.

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of
Obi-Wan
Sent: Monday, November 09, 2009 1:09 AM
To: olug at olug.org
Subject: Re: [olug] Auto-mount prompt for eSATA drive

> Is there an event that happens when a sata drive is connected?  To my
> knowledge you have to rescan the scsi bus to get knowledge of the
connected
> device.
> 
> If an event happens in the sata driver/software for the device you could
use
> it to trigger your script.

A couple dozen lines automagically appear in kern.log immedately after
plugging in the device, so something is recognizing it:


Nov  9 01:06:30 tatooine kernel: [2335158.819602] ata1: exception Emask 0x10
SAct 0x0 SErr 0x4000000 action 0xe frozen
Nov  9 01:06:30 tatooine kernel: [2335158.819607] ata1: irq_stat 0x00000040,
connection status changed
Nov  9 01:06:30 tatooine kernel: [2335158.819609] ata1: SError: { DevExch }
Nov  9 01:06:30 tatooine kernel: [2335158.819616] ata1: hard resetting link
Nov  9 01:06:40 tatooine kernel: [2335168.836025] ata1: softreset failed
(device not ready)
Nov  9 01:06:40 tatooine kernel: [2335168.836039] ata1: SATA link up 1.5
Gbps (SStatus 113 SControl 300)
Nov  9 01:06:40 tatooine kernel: [2335168.836043] ata1: link online but
device misclassified, retrying
Nov  9 01:06:40 tatooine kernel: [2335168.836045] ata1: hard resetting link
Nov  9 01:06:42 tatooine kernel: [2335170.620038] ata1: SATA link up 1.5
Gbps (SStatus 113 SControl 300)
Nov  9 01:06:42 tatooine kernel: [2335170.626513] ata1.00: ATA-8: WDC
WD15EADS-00P8B0, 01.00A01, max UDMA/133
Nov  9 01:06:42 tatooine kernel: [2335170.626517] ata1.00: 2930277168
sectors, multi 0: LBA48 NCQ (depth 31/32)
Nov  9 01:06:42 tatooine kernel: [2335170.629440] ata1.00: configured for
UDMA/133
Nov  9 01:06:42 tatooine kernel: [2335170.629447] ata1: EH complete
Nov  9 01:06:42 tatooine kernel: [2335170.629525] scsi 0:0:0:0:
Direct-Access     ATA      WDC WD15EADS-00P 01.0 PQ: 0 ANSI: 5
Nov  9 01:06:42 tatooine kernel: [2335170.629717] sd 0:0:0:0: [sdi]
2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)
Nov  9 01:06:42 tatooine kernel: [2335170.629729] sd 0:0:0:0: [sdi] Write
Protect is off
Nov  9 01:06:42 tatooine kernel: [2335170.629731] sd 0:0:0:0: [sdi] Mode
Sense: 00 3a 00 00
Nov  9 01:06:42 tatooine kernel: [2335170.629748] sd 0:0:0:0: [sdi] Write
cache: enabled, read cache: enabled, doesn't support DPO or FUA
Nov  9 01:06:42 tatooine kernel: [2335170.629814] sd 0:0:0:0: [sdi]
2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)
Nov  9 01:06:42 tatooine kernel: [2335170.629824] sd 0:0:0:0: [sdi] Write
Protect is off
Nov  9 01:06:42 tatooine kernel: [2335170.629825] sd 0:0:0:0: [sdi] Mode
Sense: 00 3a 00 00
Nov  9 01:06:42 tatooine kernel: [2335170.629841] sd 0:0:0:0: [sdi] Write
cache: enabled, read cache: enabled, doesn't support DPO or FUA
Nov  9 01:06:42 tatooine kernel: [2335170.629845]  sdi: sdi1
Nov  9 01:06:42 tatooine kernel: [2335170.637105] sd 0:0:0:0: [sdi] Attached
SCSI disk
Nov  9 01:06:42 tatooine kernel: [2335170.637160] sd 0:0:0:0: Attached scsi
generic sg9 type 0


-- 
Ben "Obi-Wan" Hollingsworth                             obiwan at jedi.com
   The stuff of earth competes for the allegiance I owe only to the
     Giver of all good things, so if I stand, let me stand on the
       promise that You will pull me through.  -- Rich Mullins
_______________________________________________
OLUG mailing list
OLUG at olug.org
https://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list