[opensuse] Automounting esata disk
Hi, I have an e-sata disk connected to my laptop, to store data I don't always need when I'm not at the office. What is the most convenient way to mount that device's partitions ? For the moment I log in as root and mount it manually. I'm studying autofs to simplify things. Are there other ways ? P.S. I knew about usb-3, but until a few days back I thought e-sata was faster. So I purchased a laptop with e-sata, but no usb-3. Usb-3 would have made things easyer. Kind regards, Koenraad Lelong. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Koenraad Lelong wrote:
Hi,
I have an e-sata disk connected to my laptop, to store data I don't always need when I'm not at the office. What is the most convenient way to mount that device's partitions ? For the moment I log in as root and mount it manually. I'm studying autofs to simplify things. Are there other ways ?
Using udev is another option. Actually I would expect some support (in opensuse) for that already - removable media are not exactly uncommon. -- Per Jessen, Zürich (13.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Op 10-06-11 09:24, Per Jessen schreef:
Koenraad Lelong wrote:
Hi,
I have an e-sata disk connected to my laptop, to store data I don't always need when I'm not at the office. What is the most convenient way to mount that device's partitions ? For the moment I log in as root and mount it manually. I'm studying autofs to simplify things. Are there other ways ?
Using udev is another option. Actually I would expect some support (in opensuse) for that already - removable media are not exactly uncommon.
Hi Per, According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive. I forgot to tell I'm using OS 11.4. Regards, Koenraad Lelong. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Koenraad Lelong wrote:
Op 10-06-11 09:24, Per Jessen schreef:
Koenraad Lelong wrote:
Hi,
I have an e-sata disk connected to my laptop, to store data I don't always need when I'm not at the office. What is the most convenient way to mount that device's partitions ? For the moment I log in as root and mount it manually. I'm studying autofs to simplify things. Are there other ways ?
Using udev is another option. Actually I would expect some support (in opensuse) for that already - removable media are not exactly uncommon.
Hi Per,
According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive.
Sorry, I assumed it was hot-plug. Nonetheless, udev will help you with this - when the device is present, udev can auto-mount it for you. You may have to write a udev rule yourself though - I can't think of a standard configuration that works with a non-hotplug disk that may or may not be there. Maybe someone else knows? -- Per Jessen, Zürich (14.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Koenraad Lelong wrote:
According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive.
That sounds rather weird since as I understand it the difference between a SATA plug and an e-SATA one is that the power is incorporated in such a way as to guarantee good behaviour when hot plugging. What exactly does the manual say? Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/06/11 10:41, Dave Howorth wrote:
Koenraad Lelong wrote:
According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive. That sounds rather weird since as I understand it the difference between a SATA plug and an e-SATA one is that the power is incorporated in such a way as to guarantee good behaviour when hot plugging.
What exactly does the manual say?
Cheers, Dave
e-SATA doesn't carry power. The only difference between SATA and e-SATA is a different type of connector designed to be more robust for repeated insertion/removal, and more shielding on the cables so longer lengths are possible(?). I have always had to reboot to get e-SATA disks recognized on Linux. Works (sometimes) on Windows. Haven't spent time debugging the issue, even though all sata disks should be hotpluggable (?). To the OP, autofs / udev sound like the way to go. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Tejas Guruswamy (tejas.guruswamy@opensuse.org) [20110610 11:58]:
I have always had to reboot to get e-SATA disks recognized on Linux.
Look into the udev scripts. A bus rescan may be needed in addition to discover the presence/absence of the drive. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-06-10 11:50, Tejas Guruswamy wrote:
I have always had to reboot to get e-SATA disks recognized on Linux.
Not me, it works quite well. It may depend on the board. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3yDHYACgkQtTMYHG2NR9VWfwCfTlCztM8q0bOXyCOkzb8dJ6Q0 M6cAn35ESwHsBLGW1d8anbB73VtLhxKt =Mq6o -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Koenraad Lelong (k.lelong@ace-electronics.be) [20110610 10:09]:
According to the manual of the drive e-sata is not plug-and-play.
The drive manual is wrong! E-Sata *does* support hot-plugging if the computers controller is set to ahci by the BIOS. And even if the controller doesn't support p-a-p remember that SCSI also wasn't meant to be hot pluggable and yet it worked together with the a script that you called to initiated a rescan of the bus after plugging/unplugging of external SCSI devices. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-06-10 10:09, Koenraad Lelong wrote:
According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive.
I hot-plug several eSATA drives, no problem. I use lines in fstab to mount manually as user, I do not want automount (but it worked). Compared to USB-2, the usb plug is sturdier, less failures. I haven't seen any USB-3, I don't have the hardware (and my board is not old). If you intend to not hotplug, you can put lines in fstab with "nofail" option. If the disk is present on boot, it will mount; if it can not mount it will keep silent, so you have to check if it mounted or not. Use mount by label. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3yC/UACgkQtTMYHG2NR9U1kwCfd9OHdPn4majceKNInFA9ltEx xd8AoIKLXOmsFBmmdwbgalcVGCy1u/MT =esQv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
If you intend to not hotplug, you can put lines in fstab with "nofail" option. If the disk is present on boot, it will mount; if it can not mount it will keep silent, so you have to check if it mounted or not.
I was looking for something like that, but I haven't had reason to use it myself - it sounds like just the right solution for Koenraad. -- Per Jessen, Zürich (20.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Jun 10, 2011 at 4:09 AM, Koenraad Lelong <k.lelong@ace-electronics.be> wrote:
Op 10-06-11 09:24, Per Jessen schreef:
Koenraad Lelong wrote:
Hi,
I have an e-sata disk connected to my laptop, to store data I don't always need when I'm not at the office. What is the most convenient way to mount that device's partitions ? For the moment I log in as root and mount it manually. I'm studying autofs to simplify things. Are there other ways ?
Using udev is another option. Actually I would expect some support (in opensuse) for that already - removable media are not exactly uncommon.
Hi Per,
According to the manual of the drive e-sata is not plug-and-play. The computer must be shut down to add or remove the drive.
I forgot to tell I'm using OS 11.4.
Regards,
Koenraad Lelong.
I believe it safest to say eSata with Linux is warm plug. That is the cables can be hot plugged, but there is not any auto-mounting or more importantly auto-unmounting. openSUSE offers 2 basic ways to make it as robust as it can in a hot-plug way. 1) vfat filesystems can be mounted with the flush option or something like that. With that option you don't have the delay of full sync operation, but cache is flushed in a timely manner. So if you have a thumb drive that gets pulled shortly after writing to it, you should be safe as long as you wait for the activity lights to quit blinking. 2) If you don't want to use vfat, then you either need to manually unmount or you need to mount with the sync option. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Carlos E. R.
-
Dave Howorth
-
Greg Freemyer
-
Koenraad Lelong
-
Per Jessen
-
Philipp Thomas
-
Tejas Guruswamy