Date: Sun, 05 Mar 2000 09:48:34 -0500 From: Glen Mann <gmann@cyberia.com> To: wellsian <wellsian@caffeine.com> Cc: questions@FreeBSD.ORG Subject: Re: Getting DOS Volume Label Message-ID: <38C273C2.20BC2AE7@cyberia.com> References: <Pine.BSF.4.21.0003041809520.3044-100000@boris.netgate.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38C273C2.20BC2AE7>
