Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What can I do to make Ubuntu automatically mount an external drive when it is connected to an eSATA port?

Currently I must go to Home Folder ▸ Go ▸ Computer and click on the disk to mount it.

share|improve this question
up vote 1 down vote accepted

This page lists all the methods available.

Note that one of them allows you to automount the drive at boot, for all users, without editing a single config file, through the 'pysdm' program.

Long story short: install pysdm, run it and click around.

share|improve this answer
On 12.10, when I try "sudo apt-get install pysdm", I get "E: Unable to locate package pysdm" – phord Nov 29 '12 at 16:51

Previously, when HAL (Hardware Abstraction Layer) was handling the hardware devices, you would follow the instructions found at

However, current distributions use udev to handle hardware devices, which means that you have to do some work (I did not find instructions for udev and eSata).

So, what needs to be done is edit /lib/udev/rules.d/80-udisks.rules and the section that says

# Set eSATA port type for known eSATA CardBus adapters - first we want to ensure
# the device is on a cardbus controller (upper PCI device) - then we check
# vid/pid (lower PCI device)
SUBSYSTEM=="scsi_host", ATTRS{class}=="0x060700", GOTO="ata_port_cardbus"
# Mass storage controller: Silicon Image, Inc. SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1095", ATTRS{device}=="0x3512", ENV{UDISKS_ATA_PORT_CONNECTOR_TYPE}="ata_sata_external"

You would probably need to add your Vendor/Device IDs (similar to 0x1095, 0x3512). That is, add a single line similar to

SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1095", ATTRS{device}=="0x3512", ENV{UDISKS_ATA_PORT_CONNECTOR_TYPE}="ata_sata_external"

You can find your Vendor/Device ID by using the command lspci.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.