/media directory has unused "phantom directories" with hidden files .created_by_pmount
Hi,
I noticed that my /media directory has a few directories that are not used.
Why and when were they created. Are they legacy from past. I run sid.
/media/NIKON D80
/media/RICOHDCX
/media/sdd1
each of these directories, which don't seem to be used, has a hidden file named:
.created_by_pmount, why?
What are they for?
Can I delete them without worrying about them? What created them?
Now what is the purpose of these files/directories?
They seem to be vestiges of the past.
Like appendix or tonsils, or Meckles Diverticula.
**********************
As background I have read about pmount, and indeed just tried it out,
its very nice.
I see that pmount enables me to mount devices not in fstab without being root.
thus when i attach a sd memory card from my NIKON D80,
I am able to do
dmesg|tail
SCSI device sde: 1000448 512-byte hdwr sectors (512 MB)
sde: Write Protect is off
sde: Mode Sense: 02 00 00 00
sde: assuming drive cache: write through
SCSI device sde: 1000448 512-byte hdwr sectors (512 MB)
sde: Write Protect is off
sde: Mode Sense: 02 00 00 00
sde: assuming drive c
then i can do
pmount /dev/sde1
and i can access it as
/media/sde1
similarly I can
pumount /media/sde1
without su to root.
this is all very nice.
******************
However, I have no idea what created the 3 directories which have
these hidden files .created_by_pmount in /media.
Moreover, if I attach a sd media card to my machine, I really don't need pmount,
(actually I like to have pmount, cause i find it more convenient then using kde ...)
because some
KDE window opens up that has as a window title
NIKON D80-KDE Daemon
that offers to open a konqueror window with the directory of the contents of
/media/NIKON\ D80-1
which then has the data on my media card.
Notice that the /media/NIKON\ D80 directory with the .created_by_pmount file
is blocking KDE daemon from creating NIKON\ D80 so it creates instead /media/NIKON\ D80-1!
Also I once had a
RICOHDCX camera card. This likely is related to the /media/RICOHDCX directory.
Note I have no idea where /media/sdd1 comes from, though. I only see in dmesg
Vendor: Generic Model: STORAGE DEVICE Rev: 9139
Type: Direct-Access ANSI SCSI revision: 00
sd 6:0:0:0: Attached scsi removable disk sdc
Vendor: Generic Model: STORAGE DEVICE Rev: 9139
Type: Direct-Access ANSI SCSI revision: 00
sd 6:0:0:1: Attached scsi removable disk sdd
Vendor: Generic Model: STORAGE DEVICE Rev: 9139
Type: Direct-Access ANSI SCSI revision: 00
sd 6:0:0:2: Attached scsi removable disk sde
Vendor: Generic Model: STORAGE DEVICE Rev: 9139
Type: Direct-Access ANSI SCSI revision: 00
sd 6:0:0:3: Attached scsi removable disk sdf
which probably corresponds to my sandisk usb 4x multitype memory card reader,
but there is no device /dev/sdc1 on the machine by dmesg or fdisk -l.
So to summarize, can I blow away these 3 directories and what created them?
Thanks,
Mitchell Laks
Reply to: