From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 05 Nov 2003 21:17:38 +0000 Subject: Re: Is it a bug for uDEV Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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