You are not logged in.

#1 2012-10-03 19:11:50

anti-destin
Member
Registered: 2009-02-14
Posts: 234

connecting an external hard drive: transport endpoint is not connected

i have ntfs-3g installed and have defined /etc/udev/rules.d/10-my-media-automount.rules as follows:

# vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=udevrules:
#
# /etc/udev/rules.d/10-my-media-automount.rules

# start at sdb to ignore the system hard drive
KERNEL!="sd[b-z]*", GOTO="my_media_automount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end"

# import some useful filesystem info as variables
IMPORT{program}="/sbin/blkid -o udev -p %N"

# get the label if present, otherwise assign one based on device/partition
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"

# create the dir in /media and symlink it to /mnt
ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'"

# global mount options
ACTION=="add", ENV{mount_options}="relatime"
# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat)
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"

# automount ntfs filesystems using ntfs-3g driver
ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"
# automount all other filesystems
ACTION=="add", ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"

# clean up after device removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'", RUN+="/bin/rmdir '/media/%E{dir_name}'"

# exit
LABEL="my_media_automount_end"

but when i try to navigate to my backup directory on the drive, i get:

Transport endpoint is not connected

and i am not able to access my files.

any ideas? thanks.

Offline

#2 2012-11-02 18:13:33

anti-destin
Member
Registered: 2009-02-14
Posts: 234

Re: connecting an external hard drive: transport endpoint is not connected

i tried to reinstall ntfs-3g and fuse, but the problem remains. i'm not sure what else to check.

Offline

#3 2012-11-22 16:54:56

bmilnes
Member
Registered: 2011-11-01
Posts: 5

Re: connecting an external hard drive: transport endpoint is not connected

I'm stuck too. automount dev looks as though it works but FUSE seems to be broken:

[root@alarm ~]# cd /media/HD_Library
-bash: cd: /media/HD_Library: Transport endpoint is not connected
[root@alarm ~]# pacman -Su fuse
warning: fuse-2.9.2-1 is up to date

Offline

#4 2012-11-22 18:47:22

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,122

Re: connecting an external hard drive: transport endpoint is not connected

This post is eerily similair -  https://bbs.archlinux.org/viewtopic.php?id=152667

If you're running pure systemd--which is recommended nowadays since consolekit is gone and polkit takes over permissions for mounting and shutting down--the udev rule screws up systemd doing its thing.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2012-11-22 23:13:58

bmilnes
Member
Registered: 2011-11-01
Posts: 5

Re: connecting an external hard drive: transport endpoint is not connected

Thanks bgc1954
It may be a coincidence, but on another's suggestion I changed the /etc/locale.conf  - the (yes, "pure") systemd configuration file to change US to GB. And the share returned.
I haven't set it back yet, to test, but will do so for resolution and report back.

Last edited by bmilnes (2012-11-22 23:14:20)

Offline

#6 2013-01-08 10:57:33

shallpion
Member
Registered: 2009-12-12
Posts: 61

Re: connecting an external hard drive: transport endpoint is not connected

I ran into exactly the same problem today in a pure systemd environment. It seems that the privilege of the mount directory is somehow screwed up as here I can see (the label of my drive is "Seagate" and is supposed to be mounted at /media/Seagate)

ls: cannot access Seagate: Transport endpoint is not connected
total 8
d????????? ? ? ? ? ? Seagate

Mounting the drive manually with exactly the same -o options  works normally as usual.  I read the udev log and found nothing noticeable, so it seems to be irrelevant to the mounting options.

I treid to change locale as bmilnes mentioned but it didn't work neither.

Any update?  Thanks.

Last edited by shallpion (2013-01-08 10:58:39)

Offline

#7 2013-01-08 12:43:22

MisterAnderson
Member
Registered: 2011-09-04
Posts: 284

Re: connecting an external hard drive: transport endpoint is not connected

Try opening a terminal window and running this:

watch -n.1 "dmesg|tail"

And watching the output as you connect your drive then try to access it. I've found a drive or two that will suddenly disconnect themselves without warning that bring this error.


D:

Offline

#8 2013-01-08 12:45:38

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: connecting an external hard drive: transport endpoint is not connected

there have already been a few threads about this - these udev automount rules are crap and can't work (anymore). Use udisks.

Offline

#9 2013-01-08 17:18:57

shallpion
Member
Registered: 2009-12-12
Posts: 61

Re: connecting an external hard drive: transport endpoint is not connected

MisterAnderson wrote:

Try opening a terminal window and running this:

watch -n.1 "dmesg|tail"

And watching the output as you connect your drive then try to access it. I've found a drive or two that will suddenly disconnect themselves without warning that bring this error.

Thanks, I have already dont that and there is nothing interesting in the input...

Offline

#10 2013-01-08 17:22:22

shallpion
Member
Registered: 2009-12-12
Posts: 61

Re: connecting an external hard drive: transport endpoint is not connected

65kid wrote:

there have already been a few threads about this - these udev automount rules are crap and can't work (anymore). Use udisks.

The wiki page somehow suggests that There is no need for any additional rules this way. So what if we indeed need to write some additional rules? My external drive is mounted with permission 600 for all the files and I prefer to change them to 644...

Thanks.

Offline

#11 2014-09-29 11:49:30

toggler
Member
Registered: 2014-09-29
Posts: 1

Re: connecting an external hard drive: transport endpoint is not connected

i know this thread is quite old.
But for me the same issue remains. Even if I umount & mount as root, I get the error.
The corresponding line in /etc/fstab is:

 UUID=1A88C6B2...    /media/external	   ntfs	rw,auto,user,noatime,umask=000,nofail 0    0 

Then:

➜  ~  sudo umount /media/external
➜  ~  sudo mount /media/external
➜  ~  cd /media/external
cd:cd:13: transport endpoint is not connected: /media/external

EDIT

udisks2 doesn't make it better

➜  ~  udisksctl mount -b /dev/sdb1
Mounted /dev/sdb1 at /media/external.
➜  ~  ls -hal /media | grep external
ls: cannot access /media/external: Transport endpoint is not connected
d??????????  ? ?     ?        ?            ? external

Last edited by toggler (2014-09-29 12:26:21)

Offline

Board footer

Powered by FluxBB