Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] best way to automount removable SATA drives

On 07/03/2016 11:36 AM, Rich Pieri wrote:
> Hot plug SATA isn't intended for frequent swapping. It's there for
> servers that need to occasionally swap out failed devices without full
> shutdowns. If you intend to swap drives frequently then use USB or
> eSATA. These were designed with frequent swapping in mind. udev will
> have something to say about USB drives. It may have something to say
> about eSATA drives if the eSATA controller is capable of informing the
> kernel of changes. My N40L's controller is not so I have to tell the
> kernel to scan the SCSI interfaces when I swap drives:
>    for host in /sys/class/scsi_host/*; do
>      echo "- - -" >/sys/class/scsi_host/`basename ${host}`/scan
>    done
> and to detach an eSATA device (where the device is "sdf" in this example):
>    echo "1" >/sys/block/sdf/device/delete
> But for SATA drives? Just leave them plugged in with their spindown
> times set to something reasonable so that they aren't spinning unless
> they're in use (hdparm). Maybe have the backup drive mounted and
> unmounted explicitly by the backup system.
Thanks Rich,

Jerry Feldman <gaf.linux at>
Boston Linux and Unix
PGP key id:B7F14F2F
PGP Key fingerprint: D937 A424 4836 E052 2E1B  8DC6 24D7 000F B7F1 4F2F

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /