You are not logged in.
My /media directory started with /media/dvd and /media/cdrom, and when I first set up my system I added /media/usbstick for removable storage. But for some reason, I can't add any further directories here. For example, if (as root) I enter
mkdir /media/iPod
I get the error message
mkdir: cannot create directory `/media/iPod': No such file or directory
Does anybody know what's going on, and how I can circumvent this behaviour?
Thanks,
-A.
Offline
Are you sure you don't mean /mnt?
Offline
Do you have autofs or similar automounter running? Autofs can be configured to mount to /media and for this it shadows the /media directory by creating a new virtual directory on top of it (I believe it works that way). You cannot create directories to the virtual directory yourself.
Last edited by Joel-san (2009-07-02 20:11:13)
Offline
Thanks, Joel-san - that explains it. I was getting all confused.
cheers,
-A.
Offline
:) No problem. I recently struggled with the same problem.
Last edited by Joel-san (2009-07-03 19:18:57)
Offline
There is /mnt to mount by hand. /media was always for auto-mounters. So you should not even create your /media/usbstick.
Offline
In what rulebook of Unix is that written in? I like to mount removable medias to /media and internal and network thingies to /mnt.
Offline
Joel-san, it is the custom now followed. for eg http://www.debianadmin.com/linux-direct … rview.html
Offline
Are you saying that automounter only is the new custom? Quoted from that site you linked.
/media
A generic mount point for removable media like CD-ROM, USB, Floppies etc
I don't see automounters mentioned in that statement. Why do you even care? I can mount my USB sticks even to /opt if I want to. :D
Last edited by Joel-san (2009-07-14 06:41:20)
Offline