From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 20:58:25 2010 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 E15711065673 for ; Tue, 6 Jul 2010 20:58:24 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id BE2318FC12 for ; Tue, 6 Jul 2010 20:58:24 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1OWFDe-0006sY-EL; Tue, 06 Jul 2010 16:58:23 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 64ECF4233367; Tue, 6 Jul 2010 16:58:18 -0400 (EDT) Message-ID: <4C3398E5.2090504@FreeBSD.org> Date: Tue, 06 Jul 2010 16:58:13 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Mike Barnard References: <4C333FC8.20802@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: FreeBSD Questions Subject: Re: /usr/local empty after upgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2010 20:58:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike Barnard wrote: > Hi Greg, > > Please see your request below > >> Hi Mike, >> >> It's possible that your disk device names changed during the upgrade and >> /etc/fstab can no longer mount the previous device on /usr/local. Do >> you see any error messages during the boot process? >> >> > no, I do not see any error during the boot process. > > >> Please reply to the list with the output from the following commands: >> >> ls -l /dev/da* # Assuming SCSI disks >> > crw-r----- 1 root operator 0, 94 Jul 6 16:50 /dev/da0 > crw-r----- 1 root operator 0, 96 Jul 6 16:50 /dev/da0s1 > crw-r----- 1 root operator 0, 97 Jul 6 19:50 /dev/da0s1a > crw-r----- 1 root operator 0, 98 Jul 6 16:50 /dev/da0s1b > crw-r----- 1 root operator 0, 99 Jul 6 19:50 /dev/da0s1d > crw-r----- 1 root operator 0, 100 Jul 6 19:50 /dev/da0s1e > crw-r----- 1 root operator 0, 101 Jul 6 16:50 /dev/da0s1f > crw-r----- 1 root operator 0, 106 Jul 6 19:50 /dev/da0s1f.journal > crw-r----- 1 root operator 0, 102 Jul 6 16:50 /dev/da0s1g > crw-r----- 1 root operator 0, 107 Jul 6 19:50 /dev/da0s1g.journal > > >> cat /etc/fstab >> > # Device Mountpoint FStype Options Dump > Pass# > /dev/da0s1b none swap sw 0 0 > /dev/da0s1a / ufs rw 1 1 > /dev/da0s1g.journal /resource ufs rw,async 2 > 2 > /dev/da0s1e /tmp ufs rw 2 2 > /dev/da0s1f.journal /usr ufs rw,async 2 2 > /dev/da0s1d /var ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > >> That information may help figure out what happened to the devices during >> the upgrade. >> >> > unless I got the journaling wrong, the fstab and devices should work fine. > > > Regards, > Hi Mike, What did you have in your /usr/local directory prior to the upgrade? Had you installed any ports? What is the output of the following command: pkg_info If it doesn't print anything, then you haven't installed any ports yet, and an empty /usr/local directory is normal. If you manually placed some files in there, that's a different story, and perhaps booting to single-user and running fsck on /usr would help. At first, I thought you might have /usr/local on its own partition and a device rename might have caused a mount failure. Were there any other problems with the files/directories in /usr, or was it just /usr/local that was emptied? Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMM5jk0sRouByUApARAvDSAKDMb03N2331UUhhbv3yGjv3fHSEBwCgkiF4 jpH3M13BqqyzsSehE88Hn+0= =Zk4T -----END PGP SIGNATURE-----