linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to use blkid for getting USB partition name???
Date: Thu, 06 May 2010 13:39:02 +0000	[thread overview]
Message-ID: <20100506133902.GD30693@nb.net.home> (raw)
In-Reply-To: <20100506093216.D2E411F105E@zimbra.jasmin-infotech.com>

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@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2010-05-06 13:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06  9:45 How to use blkid for getting USB partition name??? chinnathambi
2010-05-06 13:39 ` Karel Zak [this message]
2010-05-07  4:36 ` chinnathambi
2010-05-11  4:47 ` chinnathambi
2010-05-14 15:01 ` chinnathambi
2010-07-08  5:07 ` chinnathambi
2010-07-08 10:08 ` 'Karel Zak'
2010-07-08 12:18 ` chinnathambi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100506133902.GD30693@nb.net.home \
    --to=kzak@redhat.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).