From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 13:15:09 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 34E92106566B for ; Mon, 4 Jul 2011 13:15:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id E8F3E8FC1D for ; Mon, 4 Jul 2011 13:15:08 +0000 (UTC) Received: from r55.edvax.de (port-92-195-180-180.dynamic.qsc.de [92.195.180.180]) by mx01.qsc.de (Postfix) with ESMTP id 50F1C3D220; Mon, 4 Jul 2011 15:15:06 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p64DF5j7005097; Mon, 4 Jul 2011 15:15:05 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 4 Jul 2011 15:15:05 +0200 From: Polytropon To: tethys ocean Message-Id: <20110704151505.99e0ed4d.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD_Questions Subject: Re: mount /unmount X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 13:15:09 -0000 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. > 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, ...