RE: How to use blkid for getting USB partition name???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's the USB Label/Volume name for the USB partition. See the following log.
We cant get any verbose output for blkid.

root:/> cat /proc/partitions
major minor  #blocks  name

   8        0  244198584 sda
   8        1          1 sda1
   8        5   33551721 sda5
   8        6   33551721 sda6
   8        7   33551721 sda7
   8        8   33551721 sda8
   8        9   33551721 sda9
   8       10   33551721 sda10
   8       11   33551721 sda11
   8       12    9325701 sda12
root:/> blkid -s TYPE /dev/sda5
root:/> blkid -s UUID /dev/sda5
root:/> BLKID_DEBUG=0xFFFF blkid -p -o /dev/sda5
root:/>

Regards,
Chinnathambi M
 

-----Original Message-----
From: 'Karel Zak' [mailto:kzak@xxxxxxxxxx] 
Sent: Thursday, July 08, 2010 3:39 PM
To: chinnathambi
Cc: 'stephane ancelot'; linux-hotplug@xxxxxxxxxxxxxxx; 'santhosh';
sadasivarao.m@xxxxxxxxxxxxxxxxxxx
Subject: Re: How to use blkid for getting USB partition name???

On Thu, Jul 08, 2010 at 10:25:34AM +0530, chinnathambi wrote:
> root:/> blkid -p -o udev /dev/sda5
> root:/> BLKID_DEBUG=0xffff blkid -p -o udev /dev/sda5
> root:/>
> root:/>
> 
> 		I need to extract the USB name. But I cant get it. I don
> know whether I am doing anything wrong in the basic level. So please
clarify
> in this regard.

 What do you mean with "USB name"? The blkid command returns details
 about filesystems.

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux