PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > /media directory has unused "phantom directories" with hidden files .created_by_pmount
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

/media directory has unused "phantom directories" with hidden files .created_by_pmount

Réponse
 
LinkBack Outils de la discussion
Vieux 01/06/2007, 00h20   #1
Mitchell Laks
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut /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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 16h30   #2
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /media directory has unused "phantom directories" with hidden files .created_by_pmount

Am 2007-05-31 19:16:51, schrieb Mitchell Laks:
> What are they for?
> Can I delete them without worrying about them? What created them?
> Now what is the purpose of these files/directories?

<snip>
> So to summarize, can I blow away these 3 directories and what created them?


----8<------------------------------------------------------------------
[root@michelle1.private:~/] pmount --
Usage:

pmount [options] <device> [<label>]

Mount <device> to a directory below /media/ if policy requirements
are met (see pmount(1) for details). If <label> is given, the mount point
will be /media//<label>, otherwise it will be /media/<device>.
If the mount point does not exist, it will be created.
<snip>
----8<------------------------------------------------------------------

Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGdU/SC0FPBMSS+BIRArQfAKCXDvvHXN/aeSFPaRY/4adiS5y0RwCfSp/O
Wr+OfSzWbWfFnYvjOaICVwI=
=GwLl
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h06.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09872 seconds with 10 queries