From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 14:50:37 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 A7E64106566C for ; Mon, 4 Jul 2011 14:50:37 +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 80E758FC08 for ; Mon, 4 Jul 2011 14:50:37 +0000 (UTC) Received: by pzk27 with SMTP id 27so3140543pzk.13 for ; Mon, 04 Jul 2011 07:50:37 -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=+capYYq9XqRjnMjfEZAI/6RYRSVYx8qNT2id4tB7WGk=; b=ukMOsIvbgT60peK/dsPg0xwZaih0OUfda4bizd+aifi9GM10ag6RUdh5yp3BqGcqH+ wIt8TEoxj0wCNBREU4CQukttj7ymZeKCiRNey1LDoGz0Xq+tBE9Nzk5yvQenhVTyRC2j YSkSGYIsCnhDgT8blWZ3UjdFpwzr6naigZbA4= MIME-Version: 1.0 Received: by 10.68.34.202 with SMTP id b10mr7778275pbj.105.1309791036932; Mon, 04 Jul 2011 07:50:36 -0700 (PDT) Received: by 10.68.65.229 with HTTP; Mon, 4 Jul 2011 07:50:36 -0700 (PDT) In-Reply-To: <20110704151505.99e0ed4d.freebsd@edvax.de> References: <20110704151505.99e0ed4d.freebsd@edvax.de> Date: Mon, 4 Jul 2011 17:50:36 +0300 Message-ID: From: tethys ocean To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD_Questions 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:50:37 -0000 so thx :) I have a question again in below On Mon, Jul 4, 2011 at 4:15 PM, Polytropon wrote: > On Mon, 4 Jul 2011 15:28:16 +0300, tethys ocean wrote: > > Hi, > > > > I have 3 question > > > > is FreeBSD can boot and run all service while one of slice is not mount > for > > example /usr slice.. > > Check the corresponding entry in /etc/fstab where all file systems > should be mentioned that you want to be mounted at system startup. > For example, a proper line would look like this: > > # Device Mountpoint FStype Options Dump > Pass# > # ----------- --------------------- ------ ------------- ----- > ----- > /dev/ad0s1f /usr ufs rw 2 2 > > Check device names. Depending on how you're accessing disks, the > name could also be ad0f, ada0f, da0f or something else. > > * Also keep the correct terminology: FreeBSD mounts UFS partitions, > not slices. A slice contains a partition carrying a file system, > usually UFS.* *Means that /usr is not slice ?? or /var is not slice? are all these are UFS ?* > > > 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 > > No. You can't access files inside a file system that isn't mounted > (exceptions: forensic analysis, or performing a device dump). > > > > > third question is can I mount any unmount slice by using just fsck :) > > No. You can only mount file system that are marked clean. To > accomplish this - yes - running fsck for the device (or the > mount point, if listed in /etc/fstab) is required when the > device has been uncleanly mounted previously. To mount all > file systems, use "mount -a". > > Also you should _not_ fsck a mounted partition. Unmount them > first (if required), run fsck, then mount. In worst case, boot > from a live system CD or DVD or USB stick and issue the fsck > command from there (really, just worst case scenario, you > shouldn't need this in the first place). > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > -- 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.