From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 14:53:50 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 517731065674 for ; Mon, 4 Jul 2011 14:53:50 +0000 (UTC) (envelope-from tethys.ocean@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 297198FC1B for ; Mon, 4 Jul 2011 14:53:49 +0000 (UTC) Received: by pzk27 with SMTP id 27so3143500pzk.13 for ; Mon, 04 Jul 2011 07:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+MG/q6OJP379tPfRtxjtIe3QCarKcGNW62n1L/qmE9c=; b=Qn+xPME0fz1Q9pPModzeH29Occr1O0sPI3L6rnLDzOGVOpvGwLn/YksfthQMGhdTXz 2bYBmLsMwAkaqdqLLqGuXaqhsp2gcWVznUosFXdbW7cqH5jjgCdounO4QGbcRuVmiAX4 KgqYuXQmTHLMo5ib7A1lwgGCT47VB7xirINEE= MIME-Version: 1.0 Received: by 10.68.33.133 with SMTP id r5mr7424058pbi.507.1309791229610; Mon, 04 Jul 2011 07:53:49 -0700 (PDT) Received: by 10.68.65.229 with HTTP; Mon, 4 Jul 2011 07:53:49 -0700 (PDT) In-Reply-To: <4E11C059.3090708@infracaninophile.co.uk> References: <4E11C059.3090708@infracaninophile.co.uk> Date: Mon, 4 Jul 2011 17:53:49 +0300 Message-ID: From: tethys ocean To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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 14:53:50 -0000 so so thx :) On Mon, Jul 4, 2011 at 4:30 PM, Matthew Seaman < m.seaman@infracaninophile.co.uk> wrote: > 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 can > I > > access mysql being root and chek all databases also can read log file on > > /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. > *I guess If I can do fsck without unmount partition I can lost all my data isn't it?* > 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. > > -- > 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 > > -- Share now a pigeon's flight Bluebound along the ancient skies, Its women forever hair and mammal, A Mediterranean town may arise If you rip apart a pigeon's heart.