From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 09:35:02 2003 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 B61C216A4CE for ; Wed, 10 Dec 2003 09:35:02 -0800 (PST) Received: from mail.pcbancorp.com (mail.pcbancorp.com [207.154.91.207]) by mx1.FreeBSD.org (Postfix) with SMTP id 69B9143D21 for ; Wed, 10 Dec 2003 09:35:00 -0800 (PST) (envelope-from ThompsDa@1stnational.com) Received: from mail.pcbancorp.com ([IP=10.210.3.102]) by eSafe SMTP Relay 1071060164; Wed Dec 10 09:37:52 2003 Received: from SBBTGWD-MTA by mail.pcbancorp.com with Novell_GroupWise; Wed, 10 Dec 2003 09:34:40 -0800 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.2 From: "DAVID THOMPSON" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline cc: freebsd-questions@FreeBSD.ORG Subject: Re: fsck not recognizing vinum filesystem type 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: , Date: Wed, 10 Dec 2003 17:35:03 -0000 X-Original-Date: Wed, 10 Dec 2003 09:21:07 -0800 X-List-Received-Date: Wed, 10 Dec 2003 17:35:03 -0000 >>> Nate Lawson 12/09/03 11:13AM >>> >On Tue, 9 Dec 2003, DAVID THOMPSON wrote: >> I am a relatively new FreeBSD user and I have never posted a request >> for help before so I hope I am doing this right and not plugging up the >> board with irrelevant and out of context questions. My apologies if I >> am. Here is my problem: > >Welcome to the club! > >> I have vinum installed on my FreeBSD 5.1-Release box. Vinum starts and actually it is 5.0-Release...my mistake >> runs fine, but I can't fsck any of the volumes because it says... >> >> "fsck: Could not determine filesystem type." >> >> If I do a fsck -t ufs /dev/vinum/??? it will work fine, but it's when I >> don't explicity tell fsck what the filesystem type is that I get this >> error. > >You probably didn't disklabel the disk. Do a "man disklabel". In >particular, you should do: > > disklabel -w /dev/vinum/??? auto > > Edit the disklabel: > > disklabel -e /dev/vinum/??? > > Then newfs: > > newfs /dev/vinum/??? > >Note that you can potentially trash the system with all this, so please >read the section in the handbook on setting up vinum and/or disklabels >before doing this on a production system. In fact, test on a scratch disk >first. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/vinum-vinum.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html >-Nate unfortunately I did run the disklabel route and everything checks out. I have fdisk'd, disklabel'd, and reconfigured my drives so many times I have dreams about it. The only difference between my box at home and the one at work is that I ran a cvsup and portupgrade on my one at home when I was doing the initial install. Is there a possiblity that the fsck binary is somehow the wrong rev.? I am trying to understand how fsck determines the filesystem, and I thought this was done by checking the superblock. However, it seems that the superblock only denotes one definition of filesystem type (e.g. FreeBSD, vinum, etc.) and not the other definition (e.g. ufs, ext3, etc...). At least these are the two definitions of fstype that I know of. So I am still stuck at trying to determine how fsck automatically determines the second definition of fstype. Remember that fsck works if I explicitly tell it to use ufs. My other theory is that maybe my newfs binary isn't doing it's thing. My understanding was that in version 5.0 ufs2 would be the default, but it seems like my newfs uses ufs1 as it's default. This makes me wonder if maybe other things aren't working as they should. Any ideas, leads, thoughts, or suggestions are always appreciated... thanks again. Dave. ************************************************************************ This e-mail is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, or an employee or agent of the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error please notify us immediately by replying to postmaster@pcbancorp.com. ************************************************************************