Date: Sun, 5 Mar 2000 07:23:48 -0800 (PST) From: Dave Wells <wellsian@caffeine.com> To: Glen Mann <gmann@cyberia.com> Cc: questions@FreeBSD.ORG Subject: Re: Getting DOS Volume Label Message-ID: <Pine.BSF.4.21.0003050659140.6344-100000@boris.netgate.net> In-Reply-To: <38C273C2.20BC2AE7@cyberia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003050659140.6344-100000>