Hai Stephane, I am not able to get any verbose output. Pls carify.. root:/> cat /proc/partitions major minor #blocks name 31 0 256 mtdblock0 31 1 384 mtdblock1 31 2 7552 mtdblock2 31 3 7680 mtdblock3 31 4 512 mtdblock4 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 -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. Regards, Chinnathambi M -----Original Message----- From: linux-hotplug-owner@xxxxxxxxxxxxxxx [mailto:linux-hotplug-owner@xxxxxxxxxxxxxxx] On Behalf Of Karel Zak Sent: Thursday, May 06, 2010 7:09 PM To: chinnathambi Cc: 'stephane ancelot'; linux-hotplug@xxxxxxxxxxxxxxx Subject: Re: How to use blkid for getting USB partition name??? On Thu, May 06, 2010 at 03:03:23PM +0530, chinnathambi wrote: > Hai, > I have enable hotplug for detecting USB. I am having muti partition > in my USB hard disc. I am trying to recover the parttion name by using parttion name... Do you mean filesystem LABEL? > blkid. But I cant get any response. I want to know whether I have to enable > anything in my kernel. Or after executing blkid command where to check for > the output ? > > Shown below is how I used blkid. > > root:/> hotplug: usb inserted > hotplug: usb inserted > hotplug: usb inserted > hotplug: usb inserted > hotplug: usb inserted > > root:/> cat /proc/partitions > major minor #blocks name > > 31 0 256 mtdblock0 > 31 1 384 mtdblock1 > 31 2 7552 mtdblock2 > 31 3 7680 mtdblock3 > 31 4 512 mtdblock4 > 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 /dev/sda5 > root:/> blkid -c -o /dev/sda5 blkid -p -o udev /dev/sda5 or BLKID_DEBUG=0xffff blkid -p -o udev /dev/sda5 to get more verbose output. 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 -- 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