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 | 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



 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? 

  -Tom 

-- 
Tom Metro 
Venture Logic, Newton, MA, USA 
"Enterprise solutions through open source." 
Professional Profile: http://tmetro.venturelogic.com/

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 

_______________________________________________ 
Discuss mailing list 
[hidden email] 
http://lists.blu.org/mailman/listinfo/discuss
 


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