From owner-freebsd-questions@FreeBSD.ORG Sun Jul 15 12:32:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF11216A400 for ; Sun, 15 Jul 2007 12:32:37 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 7AFF713C494 for ; Sun, 15 Jul 2007 12:32:37 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-10-135.bredband.comhem.se ([83.253.10.135]:64244 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.66) (envelope-from ) id 1IA3HA-0003r0-57 for freebsd-questions@freebsd.org; Sun, 15 Jul 2007 14:32:36 +0200 Received: (qmail 42944 invoked from network); 15 Jul 2007 14:32:33 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 15 Jul 2007 14:32:33 +0200 Received: (qmail 7912 invoked by uid 1001); 15 Jul 2007 14:32:33 +0200 Date: Sun, 15 Jul 2007 14:32:33 +0200 From: Erik Trulsson To: Peter Boosten Message-ID: <20070715123232.GA7861@owl.midgard.homeip.net> Mail-Followup-To: Peter Boosten , freebsd-questions@freebsd.org References: <4699C5B8.9000005@boosten.org> <20070715175850.52d6f45e@localhost> <469A0BC5.4060709@boosten.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469A0BC5.4060709@boosten.org> User-Agent: Mutt/1.5.14 (2007-02-12) X-Originating-IP: 83.253.10.135 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1IA3HA-0003r0-57. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1IA3HA-0003r0-57 b3b0aeb546382b0c5aa47611f6702233 Cc: freebsd-questions@freebsd.org Subject: Re: .snap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 12:32:37 -0000 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 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. -- Erik Trulsson ertr1013@student.uu.se