Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jul 2011 14:30:01 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: mount /unmount
Message-ID:  <4E11C059.3090708@infracaninophile.co.uk>
In-Reply-To: <CAOgxTUikp5XODhus35vt783s607Y%2Bz8JE3UoxL1dV8f=rS19Kw@mail.gmail.com>
References:  <CAOgxTUikp5XODhus35vt783s607Y%2Bz8JE3UoxL1dV8f=rS19Kw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E11C059.3090708>