You are not logged in.

#1 2014-01-27 22:10:39

tm
Member
Registered: 2014-01-27
Posts: 18

udiskie and USB sotrage device

I have been using udiskie to auto mount my External HDD since I use that for storage instead of my laptops HDD because it has more space etc.

Anyway, whenever it's plugged out then in again, udiskie keeps making new devices I suppose you could call them, With the same name but it adds a _ everytime, and I can't get rid of the old ones even though they are useless.

How do I stop it from adding in the new devices and How can I get rid of all the extra ones that haves been created? Thanks in advance guys.

Offline

#2 2014-01-27 22:33:39

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: udiskie and USB sotrage device

Okay, I don't know udiskie and it may be a stupid question but did you unmount the device before plugging out (as it's described in the wiki) ?

Last edited by rebootl (2014-01-27 22:36:40)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#3 2014-01-27 22:47:45

tm
Member
Registered: 2014-01-27
Posts: 18

Re: udiskie and USB sotrage device

rebootl wrote:

Okay, I don't know udiskie and it may be a stupid question but did you unmount the device before plugging out (as it's described in the wiki) ?

Nope, it plugged out by accident once and it has been happening ever since. How can I fix it ?

Offline

#4 2014-01-27 22:54:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: udiskie and USB sotrage device

I don't have this problem: but then I am not sure what it is that you are describing.

What is a "device"? Where are they appearing? How do you use udiskie to automount? What is your DE/WM? etc...

Please read How To Ask Questions The Smart Way and add more detail to actually describe your issue.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-01-27 23:30:23

tm
Member
Registered: 2014-01-27
Posts: 18

Re: udiskie and USB sotrage device

jasonwryan wrote:

I don't have this problem: but then I am not sure what it is that you are describing.

What is a "device"? Where are they appearing? How do you use udiskie to automount? What is your DE/WM? etc...

Please read How To Ask Questions The Smart Way and add more detail to actually describe your issue.

XcIKaFC.png ADATA = My HDD
I don't know how exactly it automount but I know that if udiskie isn't running, it doesn't recognize the HDD, and as soon as I start udiskie it mounts. I am on xfce.

Offline

#6 2014-01-27 23:35:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: udiskie and USB sotrage device

So this is in your file manager, then: which would be, at a guess, thunar or pcmanfm?

How is the same USB drive mounted three times?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-01-27 23:38:10

tm
Member
Registered: 2014-01-27
Posts: 18

Re: udiskie and USB sotrage device

jasonwryan wrote:

So this is in your file manager, then: which would be, at a guess, thunar or pcmanfm?

How is the same USB drive mounted three times?

Thunar.

I don't know how it is mounted three times that is my problem, I am trying to get rid of them by ejecting but it says 'Failed to eject No such device found' etc...

Offline

#8 2014-01-27 23:44:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: udiskie and USB sotrage device

If they are mounted in /media (and, again, I am having to guess here--did you read the link I posted?), then you can manually remove those mountpoints. You don't have an entry in your fstab for the drive, do you?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-01-27 23:50:35

tm
Member
Registered: 2014-01-27
Posts: 18

Re: udiskie and USB sotrage device

jasonwryan wrote:

If they are mounted in /media (and, again, I am having to guess here--did you read the link I posted?), then you can manually remove those mountpoints. You don't have an entry in your fstab for the drive, do you?

Yes I believe that they are mounted or were mounted in /media/. How can I manually remove, because it says the no such device but it keeps showing it in the file managers.
No I don't have an entry in my fstab for the drive.

Offline

#10 2014-01-28 00:01:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: udiskie and USB sotrage device

Manually as in without using thunar: using the umount or rm commands.

I can't be any more help (assuming I was in the first place, which I doubt), because I don't know how your machine is set up. I can tell you that using udiskie and pcmanfm, if I plug in a drive it is mounted once, and when I remove it (using udiskie-umount or the icon in pcmanfm) it is unmounted correctly.

I suspect that it is a setting in thunar, but I don't use it and have no interest in installing it to see. In any event, I'd encourage you to learn how to read the man pages for udiskie and mount and to learn how the commands work so that you can get to the bottom of your issue.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-01-28 00:09:02

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: udiskie and USB sotrage device

I don't think this is a question of how to make those mounted devices go away, it is more of "how do I unmount in thunar?".  I think you are saying that you never unmounted and are just plugging out the devices.  If that is the case, what happens when you try to unmount through thunar?  What happens when you manually unmount in terminal?

If you have gvfs, and when unmounting it states something about "thunar failed to unmount. not authorized to perform operation" then this is resolved by installing a polkit authorization agent https://wiki.archlinux.org/index.php/Po … ion_agents
This is linked from the GVFS archwiki at https://wiki.archlinux.org/index.php/GVFS

If all of this is not the case, maybe you can fill in what is really happening with more details?  Good luck!

Offline

#12 2014-01-28 01:39:29

mhogomchungu
Member
Registered: 2013-03-29
Posts: 87

Re: udiskie and USB sotrage device

tm wrote:

I have been using udiskie to auto mount my External HDD since I use that for storage instead of my laptops HDD because it has more space etc.

Anyway, whenever it's plugged out then in again, udiskie keeps making new devices I suppose you could call them, With the same name but it adds a _ everytime, and I can't get rid of the old ones even though they are useless.

How do I stop it from adding in the new devices and How can I get rid of all the extra ones that haves been created? Thanks in advance guys.

Do you cleanly unmount the device before you plug it out?

what does the output of the following command give you?

cat /proc/self/mountinfo

can you identify the external drive on the list?

Offline

#13 2014-01-29 15:39:42

tm
Member
Registered: 2014-01-27
Posts: 18

Re: udiskie and USB sotrage device

mhogomchungu wrote:
tm wrote:

I have been using udiskie to auto mount my External HDD since I use that for storage instead of my laptops HDD because it has more space etc.

Anyway, whenever it's plugged out then in again, udiskie keeps making new devices I suppose you could call them, With the same name but it adds a _ everytime, and I can't get rid of the old ones even though they are useless.

How do I stop it from adding in the new devices and How can I get rid of all the extra ones that haves been created? Thanks in advance guys.

Do you cleanly unmount the device before you plug it out?

what does the output of the following command give you?

cat /proc/self/mountinfo

can you identify the external drive on the list?

15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime shared:5 - proc proc rw
16 19 0:14 / /sys rw,nosuid,nodev,noexec,relatime shared:6 - sysfs sys rw
17 19 0:5 / /dev rw,nosuid,relatime shared:2 - devtmpfs dev rw,size=1516100k,nr_inodes=216772,mode=755
18 19 0:15 / /run rw,nosuid,nodev,relatime shared:11 - tmpfs run rw,mode=755
19 1 8:3 / / rw,relatime shared:1 - ext4 /dev/sda3 rw,data=ordered
20 16 0:16 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:7 - securityfs securityfs rw
21 17 0:17 / /dev/shm rw,nosuid,nodev shared:3 - tmpfs tmpfs rw
22 17 0:11 / /dev/pts rw,nosuid,noexec,relatime shared:4 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
23 16 0:18 / /sys/fs/cgroup rw,nosuid,nodev,noexec shared:8 - tmpfs tmpfs rw,mode=755
24 23 0:19 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
25 16 0:20 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:10 - pstore pstore rw
26 23 0:21 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:12 - cgroup cgroup rw,cpuset
27 23 0:22 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:13 - cgroup cgroup rw,cpuacct,cpu
28 23 0:23 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:14 - cgroup cgroup rw,memory
29 23 0:24 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,devices
30 23 0:25 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,freezer
31 23 0:26 / /sys/fs/cgroup/net_cls rw,nosuid,nodev,noexec,relatime shared:17 - cgroup cgroup rw,net_cls
32 23 0:27 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,blkio
33 15 0:28 / /proc/sys/fs/binfmt_misc rw,relatime shared:19 - autofs systemd-1 rw,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct
34 16 0:7 / /sys/kernel/debug rw,relatime shared:20 - debugfs debugfs rw
35 17 0:13 / /dev/mqueue rw,relatime shared:21 - mqueue mqueue rw
36 17 0:29 / /dev/hugepages rw,relatime shared:22 - hugetlbfs hugetlbfs rw
37 16 0:30 / /sys/kernel/config rw,relatime shared:23 - configfs configfs rw
38 19 0:31 / /tmp rw shared:24 - tmpfs tmpfs rw
39 33 0:32 / /proc/sys/fs/binfmt_misc rw,relatime shared:25 - binfmt_misc binfmt_misc rw
41 19 8:4 / /home rw,relatime shared:26 - ext4 /dev/sda4 rw,data=ordered
43 16 0:33 / /sys/fs/fuse/connections rw,relatime shared:28 - fusectl fusectl rw
44 18 0:34 / /run/user/1000/gvfs rw,nosuid,nodev,relatime shared:29 - fuse.gvfsd-fuse gvfsd-fuse rw,user_id=1000,group_id=100
45 19 8:33 / /media/ADATA\040SH02 rw,nosuid,nodev,relatime shared:27 - vfat /dev/sdc1   <-------- this should be it.       rw,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro
47 19 8:17 / /media/ADATA\040SH02_ rw,nosuid,nodev,relatime shared:31 - vfat /dev/sdb1 rw,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
46 19 8:49 / /media/ADATA\040SH02__ rw,nosuid,nodev,relatime shared:30 - vfat /dev/sdd1 rw,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro
48 19 8:81 / /media/ADATA\040SH02___ rw,nosuid,nodev,relatime shared:32 - vfat /dev/sdf1 rw,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro

As you can see from the above list there is 3 extra copies of the drive.
Also to answer your first question, no I didn't unmount it cleanly, as I have many USBs plugged into my laptop and I accidently plugged out the drive when I was plugging something else out, which is when the problem started.

Last edited by tm (2014-01-29 17:43:34)

Offline

#14 2014-01-29 16:28:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: udiskie and USB sotrage device

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2014-01-29 19:16:23

mhogomchungu
Member
Registered: 2013-03-29
Posts: 87

Re: udiskie and USB sotrage device

i think this is what happened:

1. you first started with "/dev/sdc1",

2. you unplugged it while it was still mounted.

3. you plugged it in,the kernel still sees "/dev/sdc1" as still being in use and it assigned the same drive a different node address at "/dev/sdb1".

4. udiskie sees this new device and mounts it,but the folder path with the previous mount is still present so it uses the same mount point with "_" appendend.

5. the above repeated 3 times starting from step 2.

A crude solution will be to unplug this usb drive,reboot to clear the file descriptors the kernels is holding against it and then delete all those mount point folders.

Last edited by mhogomchungu (2014-01-29 19:18:15)

Offline

#16 2014-02-07 13:17:22

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: udiskie and USB sotrage device

Can it maybe be that udiskie and gvfs conflict with each other and both actually try to mount the disk?

Offline

Board footer

Powered by FluxBB