Ontem eu estava no canal #ubuntu-br quando um usuário fez a seguinte pergunta:
Como eu descubro o UUID de uma partição FAT32????
Taí uma duvida que nunca me passou pela cabeça!
A pergunta ficou martelando na minha cabeça, e eu tinha que encontrar uma solução para ela…
Comecei a fazer a busca pelo amigo Google até que encontrei uma aplicação chamada diskutils, só que ela era usada em Mac OSX, não, deve existir algo no Ubuntu.
Comecei a pensar e a palavra VOLUME veio a minha cabeça…..
Fui no terminal, digitei vol e pressionei tab, duas opções de comando:
$ vol
vol_id volname
Agora foi a vez de usar o man:
VOL_ID(8) vol_id VOL_ID(8)
NAME
vol_id - probe filesystem type and read label and uuid
SYNOPSIS
vol_id [--export] [-t] [-l] [-u] [device]
DESCRIPTION
vol_id is usually called from a udev rule, to provide udev with the filesystem type, the label and the uuid of a volume. vol_id supports all
common filesystem formats and detects various raid setups to prevent the recognition of raid members as a volume with a filesystem.
voi là!!!!
Agora foi só usar o comando:
$ sudo vol_id -u /dev/hdd5
8EF04F1FF04F0D41
Note a diferença do UUID de uma partição com ext3 e NTFS
[Comentar este artigo] - [Mais artigos deste autor]


![[Powered by PHPlanet]](images/phplanet-alpha-small.png)

![[Powered by PHPlanet]](images/phplanet.png)
![[Powered by PHP]](images/php.png)
![[Powered by Smarty(TM) Template Engine]](images/smarty.png)
![[Powered by MySQL®]](images/mysql.png)