Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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??
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
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.
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.
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370
Rep:
Quote:
Originally Posted by Slokunshialgo
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.
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.
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.
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.