BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] best way to automount removable SATA drives
- Subject: [Discuss] best way to automount removable SATA drives
- From: gaf.linux at gmail.com (Jerry Feldman)
- Date: Sun, 3 Jul 2016 13:33:37 -0400
- In-reply-to: <da7e8d13-de2a-b820-1047-cd34a859fe75@gmail.com>
- References: <a97e5f24-3bc6-6b8c-c2d5-c995a96e7af5@gmail.com> <da7e8d13-de2a-b820-1047-cd34a859fe75@gmail.com>
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 gmail.com> Boston Linux and Unix http://www.blu.org PGP key id:B7F14F2F PGP Key fingerprint: D937 A424 4836 E052 2E1B 8DC6 24D7 000F B7F1 4F2F
- References:
- [Discuss] best way to automount removable SATA drives
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] best way to automount removable SATA drives
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] best way to automount removable SATA drives
- Prev by Date: [Discuss] Are passwords even long enough?
- Next by Date: [Discuss] Are passwords even long enough?
- Previous by thread: [Discuss] best way to automount removable SATA drives
- Next by thread: [Discuss] Boston Linux Meeting Wednesday, July 20, 2016 - Before we called it a "Cloud"
- Index(es):