Skip to contentSkip to conversation

Is it a bug for uDEV

DISCUSSION Yu, Daniel (余雋 IES) 4 participants 4 messages Nov 5, 2003 – Nov 6, 2003

lore
Share & tools
lore
#0 lore raw

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

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: [email protected] [mailto:[email protected]] On Behalf Of "Yu, Daniel (§E¹m IES)"
Sent: 2003¦~11¤ë5¤é 17:13
To: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Yu, Daniel (余雋 IES)
Quoted 4 lines · Daniel (?E?m IES)

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Yu, Daniel (余雋 IES)
Quoted 3 lines · Daniel (?E?m IES)

Dear all:
When i used the uDEV on my notebook,

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

Quoted 1 line

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel