From mboxrd@z Thu Jan 1 00:00:00 1970 From: "chinnathambi" Date: Thu, 08 Jul 2010 12:18:50 +0000 Subject: RE: How to use blkid for getting USB partition name??? Message-Id: <20100708120408.08F741F128C@zimbra.jasmin-infotech.com> List-Id: References: <20100506093216.D2E411F105E@zimbra.jasmin-infotech.com> In-Reply-To: <20100506093216.D2E411F105E@zimbra.jasmin-infotech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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@redhat.com] Sent: Thursday, July 08, 2010 3:39 PM To: chinnathambi Cc: 'stephane ancelot'; linux-hotplug@vger.kernel.org; 'santhosh'; sadasivarao.m@jasmin-infotech.com 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 http://karelzak.blogspot.com