From owner-freebsd-questions@FreeBSD.ORG Mon May 7 11:19:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE52B16A404 for ; Mon, 7 May 2007 11:19:09 +0000 (UTC) (envelope-from trip@nosubject.org) Received: from smtp2.34sp.com (smtp2.34sp.com [80.82.113.68]) by mx1.freebsd.org (Postfix) with ESMTP id A4C2813C44B for ; Mon, 7 May 2007 11:19:09 +0000 (UTC) (envelope-from trip@nosubject.org) Received: from localhost (localhost.34sp.com [127.0.0.1]) by smtp2.34sp.com (Postfix) with ESMTP id 1EA292426E; Mon, 7 May 2007 12:19:08 +0100 (BST) X-Virus-Scanned: by Clam Anti Virus Received: from smtp2.34sp.com ([127.0.0.1]) by localhost (smtp.34sp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6AG9ZId8gvUi; Mon, 7 May 2007 12:19:07 +0100 (BST) Received: from [192.168.1.6] (chello062178049105.17.11.vie.surfer.at [62.178.49.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp2.34sp.com (Postfix) with ESMTP id A52BF2425A; Mon, 7 May 2007 12:19:07 +0100 (BST) Message-ID: <463F0B29.7090405@nosubject.org> Date: Mon, 07 May 2007 13:19:05 +0200 From: Bernd Trippel User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: Modulok References: <64c038660705070202q6bd79ea5pe5659ce886ed02f4@mail.gmail.com> In-Reply-To: <64c038660705070202q6bd79ea5pe5659ce886ed02f4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Query file system type for yet-to-be mounted volumes? 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, 07 May 2007 11:19:09 -0000 Modulok typed on 07/05/07 11:02: > How does one determine the file system a disk uses, for disks that are > not yet mounted? Example: You're handed a disk that has been sitting > around in a closet for years, with no idea what it was used for. The > department manager tells you to see what it contains. > > How do I mount it, if I don't already know what file system it uses? > Is there a command to query this? Trial and error doesn't seem like > the ideal solution. You might get a clue using "file": eg: # file -s /dev/da0s1 /dev/da0s1: x86 boot sector, code offset 0x3c, OEM-ID "MSDOS5.0", sectors/cluster 32, root entries 512, Media descriptor 0xf8, sectors/FAT 250, heads 255, hidden sectors 32, sectors 2044383 (volumes > 32 MB) , serial number 0x64650d9b, unlabeled, FAT (16 bit) see man file As far as I am aware parted or gparted (partition-editor running on Linux) is not in ports, but there is a 50MB-live-cd availabe: http://gparted.sourceforge.net/livecd.php but you might want to check the features first. > > -Modulok- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >