linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is it a bug for uDEV
@ 2003-11-05  9:12 "Yu, Daniel (余雋 IES)"
  2003-11-05  9:43 ` Ling, Xiaofeng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: "Yu, Daniel (余雋 IES)" @ 2003-11-05  9:12 UTC (permalink / raw)
  To: linux-hotplug


 Dear all:
         When i used the uDEV on my notebook,  I find  out a problem about uDEV. I inserted a usb storage device into a usb slot, while i did not specify the certain name for it in udev.config. 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?  I think that there should be just sda1 in the /udev directory after my inserting.  Am i right? or just my wrong? Any arguments are welcome.


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Is it a bug for uDEV
  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
  2003-11-06 23:54 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Ling, Xiaofeng @ 2003-11-05  9:43 UTC (permalink / raw)
  To: linux-hotplug

It is not bug of uDEV,  the kernel does send out three hotplug event.
That's the issue of usb_storage driver.

-----Original Message-----
From: linux-hotplug-devel-admin@lists.sourceforge.net [mailto:linux-hotplug-devel-admin@lists.sourceforge.net] On Behalf Of "Yu, Daniel (§E¹m IES)"
Sent: 2003¦~11¤ë5¤é 17:13
To: linux-hotplug-devel@lists.sourceforge.net
Subject: Is it a bug for uDEV



 Dear all:
         When i used the uDEV on my notebook,  I find  out a problem about uDEV. I inserted a usb storage device into a usb slot, while i did not specify the certain name for it in udev.config. 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?  I think that there should be just sda1 in the /udev directory after my inserting.  Am i right? or just my wrong? Any arguments are welcome.


-------------------------------------------------------
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


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it a bug for uDEV
  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
  2003-11-06 23:54 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2003-11-05 21:17 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it a bug for uDEV
  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
@ 2003-11-06 23:54 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-11-06 23:54 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Nov 05, 2003 at 05:12:44PM +0800, "Yu, Daniel (?E?m IES)" wrote:
> 
>  Dear all:
>          When i used the uDEV on my notebook,

What's this "uDEV" name?  It's "udev" :)

> I find  out a problem about uDEV.

As others have pointed out, it's not a bug in udev, but your device
really does have all of those partitions on it, or at least the kernel
thinks so.  If not, let the kernel developers know there is something
wrong with the partition detection code for this device.

thanks,

greg k-h


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-06 23:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2003-11-06 23:54 ` Greg KH

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).