.snap

Erik Trulsson ertr1013 at student.uu.se
Sun Jul 15 12:32:37 UTC 2007


On Sun, Jul 15, 2007 at 01:57:57PM +0200, Peter Boosten wrote:
> Norberto Meijome wrote:
> > On Sun, 15 Jul 2007 08:59:04 +0200
> > Peter Boosten <peter at boosten.org> wrote:
> > 
> >> Hi all,
> >>
> >> Is it possible to mount a filesystem with it creating a .snap directory?
> >>
> >> I mount a different partition for mysql under /var/db/mysql, but since
> >> there's a .snap directory, mysql thinks there's a .snap database  
> > 
> >  :-D 
> > 
> >> (the
> >> name is actually a bit complexer).
> > 
> > You can tell mysql where to look for pretty much anything via my.cnf, or
> > rc.conf settings (i think you want to do the latter).
> > - the /var/db/mysql is the default, but by no means unchangeable. 
> > 
> > for example, mount your partition in /mnt/dbs , make a
> > directory /mnt/dbs/mysql  and point mysql to this. the .snap will be
> > in /mnt/dbs .
> 
> 
> Thanks for the suggestion, Norberto, but that doesn't answer my
> question: is it possible to mount a partition _without_ it creating a
> .snap directory?

Mounting a partition does not create a .snap directory.
The .snap directory is created when you create the filesystem (see the -n
option to newfs(8)).

If you do not want the .snap directory then you can just delete it like any
ordinary directory.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-questions mailing list