Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st April 2009
bigearsbilly bigearsbilly is offline
New User
Join Date: Mar 2009
Posts: 8
Thanked 0 Times in 0 Posts
Default MS DOS volume labels?

I am writing an automounter using devd

anyone know how I can get the DOS labels from
USB HDD and sticks?

or any disk query tips,
I know geom,glabel,usbdevs,fdisk,
Reply With Quote
  #2   (View Single Post)  
Old 1st April 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,546
Thanked 112 Times in 104 Posts

I know vol [drive] should work on modern systems. Hmm, where did I put m y command reference. (edit: thought you meant through DOS, lol)
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 1st April 2009 at 11:38 PM.
Reply With Quote
  #3   (View Single Post)  
Old 1st April 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,114
Thanked 198 Times in 156 Posts

glabel(8) should work for FAT32, from the manpage:

Currently supported file systems are:

           o   UFS1 (directory /dev/ufs/).
           o   UFS2 (directory /dev/ufs/).
           o   MSDOSFS (FAT12, FAT16, FAT32) (directory /dev/msdosfs/).
           o   CD ISO9660 (directory /dev/iso9660/).
           o   EXT2FS (directory /dev/ext2fs/).
           o   REISERFS (directory /dev/reiserfs/).
           o   NTFS (directory /dev/ntfs/).
Which also answers the question where you can find the labels in /dev/.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer volume cannot increase. bsdnewbie999 OpenBSD General 3 19th June 2008 03:16 PM

All times are GMT. The time now is 09:17 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick