From owner-freebsd-questions Sun Mar 5 6:48:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp1.supernet.com (smtp1.desupernet.net [204.249.184.44]) by hub.freebsd.org (Postfix) with SMTP id 84A3E37BA15 for ; Sun, 5 Mar 2000 06:48:24 -0800 (PST) (envelope-from gmann@cyberia.com) Received: (qmail 10517 invoked from network); 5 Mar 2000 14:48:20 -0000 Received: from 96-105.tnt-1.york.supernet.com (HELO cyberia.com) (208.157.96.105) by smtp1.supernet.com with SMTP; 5 Mar 2000 14:48:20 -0000 Message-ID: <38C273C2.20BC2AE7@cyberia.com> Date: Sun, 05 Mar 2000 09:48:34 -0500 From: Glen Mann Organization: Phrantic Physics X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: wellsian Cc: questions@FreeBSD.ORG Subject: Re: Getting DOS Volume Label References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG wellsian wrote: > > I'm sure there's a less geekish method, but this works: > > hd -n 11 -s 0x2600 /dev/fd0 > > Dave Geekish? On Unix? This is beautiful. I used hd -n 11 -s 0x2600 /dev/fd0 | awk -F\| ' NR==1 {print $2}' to get the volume label. Couldn't get the hd format strings to work, hence awk. This does not work if the floppy is mounted though. Thanks! > > On Sat, 4 Mar 2000, Glen Mann wrote: > > > Howdy- > > > > How can I (not using mtools) get the volume label from a DOS diskette? > > > > Thanks > > -Glen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message