Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Re: hot swap eSATA



 On Fri, Aug 08, 2008 at 11:29:35PM -0400, Tom Metro wrote: 
> Dan Ritter wrote: 
> >>Anyone know what's required on the software side in Linux? 
> > 
> >umount all the partitions; hdparm -Y /dev/sdx to lock the drive safely; 
> >swap the disks; 
> >hdparm -z /dev/sdx to reread the partition table; 
> >mount the partitions. 
> 
> OK, so for attaching a drive you'd: 
> 1. plug-in eSATA cable 
> 2. power-up drive 
> 3. hdparm -z /dev/sdx 
> 4. mount /dev/sdxN /mnt... 
> 
> And to remove the drive: 
> 1. umount /mnt... 
> 2. hdparm -Y /dev/sdx 
> 3. power-down drive 
> 4. disconnect eSATA cable 
> 
> 
> The man page for hdparm -Y says that puts the drive in sleep mode. Is 
> this more of a precaution, or does it also let the driver know that the 
> drive has gone away? 


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 / webmaster@blu.org