[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Doubled external usb hard drives?



On Sun, 25 Dec 2011 18:22:46 +0000, Brian wrote:

> On Sun 25 Dec 2011 at 15:16:11 +0000, Sharon Kimble wrote:
> 
>> This morning my usb external hard drive started playing up by showing
>> two instances, i.e.;-
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> ls -l /media total 48 drwxr-xr-x   2 root root   4096 Dec 22 20:10
>> 8eef3b99-c17b-4913-ae61-d34c7fd5d459 drwxrwxr-x 184 root boztu 12288
>> Dec 24 18:13 8eef3b99-c17b-4913-ae61-d34c7fd5d459_
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 				      ^
> 				      ^
> 				      ^
> These are two different mount points. ^

Correct. And it has happened because udisks tries to automount drives 
onto /media/<partition label> (creating a new directory there first). But 
if it finds a directory already exists there, it will append an 
underscore and try again, and so on.

Witness:
$ cd /media
$ ls
Elements  Elements-1T  u01
$ mount|grep Elements-1T
/dev/sdb1 on /media/Elements-1T type ext2 
(rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,uhelper=udisks)
$ sudo umount /dev/sdb1
$ mount|grep Elements-1T
$ ls
Elements  u01
$ sudo mkdir Elements-1T
$ ls
Elements  Elements-1T  u01
(now unplug the disk, then plug it in again)
$ ls
Elements  Elements-1T  Elements-1T_  u01
$ mount|grep Elements-1T
/dev/sdb1 on /media/Elements-1T_ type ext2 
(rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,uhelper=udisks)
$

Additional remark: That's why I always give my USB thumb drives as well 
as my USB external disks sensible labels like "Red_USB" or "Elements-1T".



Reply to: