From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 13:30:28 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 437F01065673 for ; Mon, 4 Jul 2011 13:30:28 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id A097D8FC15 for ; Mon, 4 Jul 2011 13:30:27 +0000 (UTC) Received: from russet.local (reflex.squiz.co.uk [83.217.109.164]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p64DU8Ar045237 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 4 Jul 2011 14:30:15 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p64DU8Ar045237 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1309786216; bh=S74zm0iO7IabUrPgkTbnuGJsrOKTTEiTfKDWXkmqwZk=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E11C059.3090708@infracaninophile.co.uk>|Date:=20M on,=2004=20Jul=202011=2014:30:01=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:5.0)=20Gecko/201 10624=20Thunderbird/5.0|MIME-Version:=201.0|To:=20freebsd-question s@freebsd.org|Subject:=20Re:=20mount=20/unmount|References:=20 |In-Reply-To:=20|X-Enigmail-Version:=201.2|Content-Type:=20mul tipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"applic ation/pgp-signature"=3B=0D=0A=20boundary=3D"------------enigF564CF 5FB5CDF66C6719C280"; b=Imk/vmbnNXC0eFilQjkCyv+sv9ZozoOM0no0BeR5olna49yS4eGCJn2GdeCPV1Umy LmJfvSDfhxLnjOo8J6FKIwNvKGXxJENaXBjvtCXYtvmXitKlg9DTRMnjRvBF+l8Io9 sMo/3hYp6LdPxh3nsuP0H4DnhSg5RjNdxVUuc5go= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host reflex.squiz.co.uk [83.217.109.164] claimed to be russet.local Message-ID: <4E11C059.3090708@infracaninophile.co.uk> Date: Mon, 04 Jul 2011 14:30:01 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF564CF5FB5CDF66C6719C280" X-Virus-Scanned: clamav-milter 0.97 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: mount /unmount 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: Mon, 04 Jul 2011 13:30:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF564CF5FB5CDF66C6719C280 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/07/2011 13:28, tethys ocean wrote: > is FreeBSD can boot and run all service while one of slice is not mount= for > example /usr slice.. You can't run a program unless the partition containing it is mounted. Neither can you run a program if any command interpreter (eg. perl, php, bash) it uses, or any shared library is similarly not on a mounted partition. In order to facilitate working in single user mode, where just about every partition except the root is usually unmounted, there is a selection of useful applications in /rescue -- these are statically linked so no problems with unavailable shlibs. > and second question is my mysql is in /var slice if /var is not mout ca= n I > access mysql being root and chek all databases also can read log file o= n > /var MySQL's default data directory location is /var/db/mysql on FreeBSD. No, you need to mount /var to verify the information you require. > third question is can I mount any unmount slice by using just fsck :) If a partition was not unmounted cleanly (eg. the machine crashed, or the power was cut off suddenly) then fsck(8) should be used to check and fix any problems on the filesystem. If you've booted into single-user mode, then definitely fsck any partitions before trying to mount them. However, any fsck'ing that the system requires should happen automatically if you just let the system reboot itself. It's only occasionally when there are certain problems that fsck needs human input to resolve that you will be instructed to get onto the console and run fsck by hand[*]. Generally you'ld then use mount(8) to mount any partitions. Cheers, Matthew [*] This is dependent on what sort of filesystems you are using. For instance, ZFS never needs to stop and fsck in this way. UFS+Journal won't need it either[+]. [+] Sysinstall doesn't support installing a system using these filesystem technologies: it can be done manually, but that isn't for the faint of heart. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigF564CF5FB5CDF66C6719C280 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4RwF8ACgkQ8Mjk52CukIxdswCffCmMrtVYN8inufJpcVuHKkMp PU0An25s5Sd52JBXr1/S41Z4mGWqjPvZ =AQ+M -----END PGP SIGNATURE----- --------------enigF564CF5FB5CDF66C6719C280--