From mboxrd@z Thu Jan 1 00:00:00 1970 From: "chinnathambi" Date: Thu, 06 May 2010 09:45:23 +0000 Subject: How to use blkid for getting USB partition name??? Message-Id: <20100506093216.D2E411F105E@zimbra.jasmin-infotech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 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 root:/> Please clarify me how to use this command blkid? Regards, Chinnathambi M