LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-25-2009, 10:47 PM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
Properly removing SATA hard drives(hot-swap)


Hi,

Is there a proper command that I should be running before unplugging a SATA hard drive from my motherboard's SATA port? Assuming my motherboard supports SATA hot-swapping of course, and that the drive has already been unmounted(or never mounted in the first place)

I notice that when I just unplug the drive and run "fdisk -l", it will hang there for 10-20s before completing. This seems to indicate that there's a duration where the PC is trying to detect the drive but it isn't there, then it times out.

So, is there a way for me to let the OS/PC know right before I unplug, that it should switch off the HDD and remove it from its list of detected devices?

I'm using Mandriva 2009 btw.

Thanks!
 
Old 08-26-2009, 01:42 AM   #2
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
what about using the command umount?.. doesnt it help??
 
Old 08-26-2009, 02:10 AM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
He said he unmounted it if necessary. Have you tried eject? It's not really meant for this, but I feel like it works.

By the way, hot-swapping is part of the SATA standard. It would be very strange if your motherboard didn't support it.
 
Old 08-26-2009, 02:40 AM   #4
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
AFAIK some older chipsets that support SATA do not support hot-swap. Mine does though. It's an intel P45.

I will man eject and try it out. Thanks.

edit: just tried it out. It seems to just disconnect then reconnect it back straightaway.

I've also tried sdparm -C eject/unlock/stop /dev/sdb(where sdb is the drive) but nothing happens.

Last edited by galapogos; 08-26-2009 at 02:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does IDE/SATA/SCSI drives support hot-swapping ? exceed1 Linux - Hardware 10 10-19-2008 09:33 PM
Adding new Sata HDD hot swap beumont Linux - Hardware 1 10-12-2008 08:46 AM
Hot-swappable SATA Drives in RAID 5 on Linux? Synesthesia Linux - Hardware 11 01-06-2006 06:14 PM
hot swap for adding random hard drives? PATA, SATA, SCSI? Oo.et.oO Linux - General 1 11-05-2005 10:38 AM
Hot Hard Drives and 3D card webwolf70 General 12 06-05-2005 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration