Mounting local drives

Derek Broughton derek at pointerstop.ca
Wed Jul 22 13:23:14 UTC 2009


Oliver Grawert wrote:

> hi,
> On Di, 2009-07-21 at 15:06 -0300, Derek Broughton wrote:
>> Oliver Grawert wrote:
>> 
>> > you should note though that /media has been created and is used for
>> > automounting pluggable media. the right place to do system wide mounts
>> > are subdirectories in /mnt.
>> 
>> I hate to contradict you Oli, but that's not what the Debian FHS says:
>> 
>>   /mnt/
>>   Temporarily mounted filesystems
>> 
>> (http://wiki.debian.org/FilesystemHierarchyStandard)
>> 
> well, i guess its a matter of upstream vs debian FHS documentation (and
> actually about personal preference, indeed you can also create some
> other unrelated dir or go with /media if you feel like), the upstream
> doc [1] is a bit more detailed on this:
> 
> ...
> /mnt : Mount point for a temporarily mounted filesystem
> Purpose
> This directory is provided so that the system administrator may
> temporarily mount a filesystem as needed. The content of this directory
> is a local issue and should not affect the manner in which any program
> is run.

I don't see a conflict between "upstream" and Debian there - what you quote 
is simply more detailed, and looks to me like even more reason for not 
putting a swap file there.

> anyway, what i initially wanted to point out is the potential breakage
> you might see by (ab)using /media for permanent mounts. the mountpoint
> names used are pretty generic and it can easily happen that a device
> labeled with such a name gets automounted. i *personally* wouldnt put
> any permanent mounts in /media ever :) but hey, its linux, anyone can do
> whatever he/she wants with it :)

Sure - and I *personally* wouldn't put permanent mounts in /mnt :-)
-- 
derek






More information about the ubuntu-users mailing list