LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-29-2008, 09:59 PM   #1
colbert
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Rep: Reputation: 0
Question eSata-- hot-swappable??


I use a Sata drive in an external enclosure, connected to my box via eSata.

Now when I plug the drive in, it automounts itself just fine. I'm just wondering if I have to do sudo umount /media/drivefolder before I power down/unplug the enclosure, or can I just pull it out??

TIA
 
Old 10-29-2008, 11:05 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Short answer is yes depending upon your kernel.

Source: Google "Linux hotplug"

See: http://linux-hotplug.sourceforge.net/

This article does not cover eSATA. From what I can tell it depends upon whether or not hotplug capabilities are built into the SATA controller hardware. This applies to Vista and Linux from what I've read.

What distribution and version of Linux are you using?

Generally if the controller supports AHCI it will support hot plug/swapping. Vista, MAC OS and Linux 2.6.19 and up support AHCI. Early controllers and operating systems supported SATA by emulating IDE devices which are not hot plugable.

Last edited by AuroraCA; 10-29-2008 at 11:28 PM. Reason: This article does not cover eSATA
 
Old 10-29-2008, 11:30 PM   #3
colbert
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
AuroraCA,

Thanks, I am using Arch linux. My current kernel version is: 2.6.27.

I did some searching as well and apparently my mobo (P5K) uses a JMicron controller, which I do recall showing up first thing on boot and displaying my CD-rom (only IDE device I have) and also it showed my eSata enclosure when it was powered on at boot. Also read a post on another site that indicated the mobo controller needs to be in ACHI mode as opposed to IDE. I will switch it on reboot tomorrow and give it a shot.
 
Old 10-30-2008, 12:06 AM   #4
Slokunshialgo
Member
 
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76

Rep: Reputation: 17
I'm probably horribly mistaken on this, but isn't eSATA designed to be hot-swappable in the specs? As for the umount I'd say it's generally a good idea to do either way, rather than straight yanking it out. Either do it from command line or GUI, it just makes sure nothing is being written to it, or using it at all, to avoid any corruption.
 
Old 10-30-2008, 07:33 AM   #5
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Quote:
Originally Posted by Slokunshialgo View Post
I'm probably horribly mistaken on this, but isn't eSATA designed to be hot-swappable in the specs? As for the umount I'd say it's generally a good idea to do either way, rather than straight yanking it out. Either do it from command line or GUI, it just makes sure nothing is being written to it, or using it at all, to avoid any corruption.
You are correct that the current specification for eSATA includes hot plug capabilities, however final specifications are not always complete before products are released to the public. Sometimes manufacturers don't implement all specs or as in early releases of SATA controllers they use a workaround such as IDE emulation to get the products out. The standards for eSATA exist but not all implementations are created equal.

I agree with you about unmounting devices in spite of the "specification". Better safe than sorry. I still don't like to just disconnect USB devices either.
 
Old 10-30-2008, 08:49 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
You should always umount it. Linux caches files in ram to speed up access. umount will cause the kernel to write out any unwritten pages that are still cached.
 
Old 10-30-2008, 10:30 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I umounted a USB drive last night and had to wait literally 5 minutes (at least it seemed to take that long) for it to write out the cached file info to the Drive. it had cached my 150MB .iso image file rather than just writing it to the thumbdrive when I copied it.

So I agree, ALWAYS umount the drive before removal.
 
Old 10-30-2008, 12:47 PM   #8
colbert
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Right, I do right-click my little USB drives as they show up in Thunar and hit Unmount, waiting to pull them out. I will do the same with the eSata-- you guys are right, better safe than sorry!!
 
  


Reply



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
hot swappable esata drives cygnus-x1 Linux - Hardware 2 01-29-2008 11:41 AM
eSATA hd using an eSATA PCI card on SuSE possible? aldimeneira Linux - Hardware 0 06-01-2006 01:15 PM
Hot-swappable SATA Drives in RAID 5 on Linux? Synesthesia Linux - Hardware 11 01-06-2006 06:14 PM
Hot Swappable USB devices vanwas Linux - Hardware 1 08-27-2004 10:50 PM
hot swappable ide hard disks chens_83 Linux - General 1 09-23-2002 07:39 PM

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

All times are GMT -5. The time now is 07:59 PM.

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