From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 23 07:47:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E50216A420 for ; Thu, 23 Feb 2006 07:47:26 +0000 (GMT) (envelope-from devin@spamcop.net) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id D178443D45 for ; Thu, 23 Feb 2006 07:47:25 +0000 (GMT) (envelope-from devin@spamcop.net) Received: from plexi.pun-pun.prv ([192.168.7.29] helo=plexi) by mail.distalzou.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FCBBz-000Kea-MH; Thu, 23 Feb 2006 16:47:15 +0900 Date: Thu, 23 Feb 2006 16:47:15 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@plexi.pun-pun.prv To: andrew clarke In-Reply-To: <20060223071811.GA30268@ozzmosis.com> Message-ID: <20060223164518.H818@plexi.pun-pun.prv> References: <20060223071811.GA30268@ozzmosis.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: volume serial number + volume label X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 07:47:26 -0000 On Thu, 23 Feb 2006, andrew clarke wrote: > How can I programmatically retrieve the "volume serial number" and > "volume label" of a removable disc in FreeBSD? This is the same > information that's presented by issuing a "dir" command in Windows: > > Volume in drive D is FooBar > Volume Serial Number is 58BB-96AA This information is only relevant for msdos filesystems, for which you'll likely find the emulators/mtools port provides good support. -- Tod McQuillin