From owner-freebsd-questions@FreeBSD.ORG Tue Jun 8 14:36:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64DB716A4CE for ; Tue, 8 Jun 2004 14:36:54 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D5243D5D for ; Tue, 8 Jun 2004 14:36:53 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i58Eaa704784; Tue, 8 Jun 2004 10:36:36 -0400 (EDT) From: Jerry McAllister Message-Id: <200406081436.i58Eaa704784@clunix.cl.msu.edu> To: bhunter@solisix.com (Bruce Hunter) Date: Tue, 8 Jun 2004 10:36:33 -0400 (EDT) In-Reply-To: <1086674510.1106.4.camel@solid.solisixoffice.com> from "Bruce Hunter" at Jun 08, 2004 02:01:50 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Improper shutdown of system / Fragmentation Problems / Boot logs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 14:36:54 -0000 > > I am kinda new to FBSD, still kinda learning stuff. Anyway, when my > system boots i see all kinda fragmentation information. How do I correct > this? Any good reading material? Do not correct it. It is not at all the same thing as fragmentation in Microsloth systems and is not a problem. There are some papers on the topic and I seem to remember something written up, maybe on onlamp.com or somewhere like that, that explain it fairly well. Do a little searching on UFS, FFS and fragmentation to accumulate some info. > Also, what should I do when I shutdown > my system incorrectly and boot up again? Use the "shutdown"(8) command to shut the system down. If it goes down improperly, such as in a power failure, generally the standard fsck(8) during the subsequent boot will take care of it. It is possible that a file or two gets too mangled or the root file system in unclean and then it will ask you to run fsck manually. Generally, then it will dump you right in to single user mode, but if not, then boot to single user mode and then run 'fsck -f' on each file system it can automatically recover starting with root (/) You may have to do some 'y' responses or if it is so much it is onerrous, then do 'fsck -fy' and it will assume a 'y' at every point. Then, when it is all cleaned up, just reboot. On rare occasions I have had to do the process twice. But anything more than that is a strong indicator that the hard drive itself is the problem and it is failing and only a replacement will solve the problem. > Last questions! I promise. Is > there a file that shows the data printed to screen durning boot? > Probably, a log file. The "dmesg"(8) command will normally print out what you need. If the system has been up too long for it to go back far enough, then look in the file: "/var/run/dmesg.boot" ////jerry > > Thanks guys, > Bruce >