linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Is it a bug for uDEV
Date: Wed, 05 Nov 2003 21:17:38 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-106807097602439@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106802369910205@msgid-missing>

On Wed, Nov 05, 2003 at 05:12:44PM +0800, "Yu, Daniel (?E?m IES)" wrote:
> 
> When i check the /udev directory, however, there are three devices added
> into it: sda, sda1, sda2. Actually, i can only use sda1 for handling.
> Then why to appear the other two devices: sda and sda2?

udev/hotplug does abolutely the right thing.
The sda node is the whole disc. You may install a  bootsector by
writing block 0 of sda, so you need this node to be created.
sda1 and sda2 are your data partitions. You can print the partition table
with "fdisk -l /dev/sda" and you will see two partitions there.
Maybe you just don't use the second partition now.


Kay

This is what udev creates for the first IDE disc:
  brw-r--r--    1 root     root       3,   0 Nov  5 20:14 hda
  brw-r--r--    1 root     root       3,   1 Nov  5 20:14 hda1
  brw-r--r--    1 root     root       3,   2 Nov  5 20:14 hda2
  brw-r--r--    1 root     root       3,   4 Nov  5 20:14 hda3


and this is the partition table:
  Device Boot      Start         End      Blocks   Id  System
  /dev/hda1               1         992      499936+  82  Linux swap
  /dev/hda2             993       20368     9765504   83  Linux
  /dev/hda3           20369      155061    67885272   83  Linux



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2003-11-05 21:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05  9:12 Is it a bug for uDEV "Yu, Daniel (余雋 IES)"
2003-11-05  9:43 ` Ling, Xiaofeng
2003-11-05 21:17 ` Kay Sievers [this message]
2003-11-06 23:54 ` Greg KH

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=marc-linux-hotplug-106807097602439@msgid-missing \
    --to=kay.sievers@vrfy.org \
    --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).