From owner-freebsd-questions Sun Mar 5 7:25:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from boris.netgate.net (boris.netgate.net [204.145.147.154]) by hub.freebsd.org (Postfix) with ESMTP id EE84D37B9ED for ; Sun, 5 Mar 2000 07:25:30 -0800 (PST) (envelope-from wellsian@caffeine.com) Received: from localhost (wellsian@localhost) by boris.netgate.net (8.9.3/8.9.3) with ESMTP id HAA06656; Sun, 5 Mar 2000 07:23:48 -0800 (PST) (envelope-from wellsian@caffeine.com) Date: Sun, 5 Mar 2000 07:23:48 -0800 (PST) From: Dave Wells X-Sender: wellsian@boris.netgate.net To: Glen Mann Cc: questions@FreeBSD.ORG Subject: Re: Getting DOS Volume Label In-Reply-To: <38C273C2.20BC2AE7@cyberia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Whoops. Make that rfd0 so you can read while it's mounted. You're right, formatting seems weird or broken. Or I just need some sleep... On Sun, 5 Mar 2000, Glen Mann wrote: > 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message