From: Jens Kubieziel Date: Mon, 22 Mar 2004 11:24:23 +0000 Subject: [udev] Adding multiple partitions of a usb drive Message-Id: <20040322112422.GH1289@kubieziel.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="yLVHuoLXiP9kZBkt" List-Id: To: linux-hotplug@vger.kernel.org --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a usb drive with seven partitions on it and want to assign each one an entry in /etc/fstab. So I added BUS=3D"usb", SYSFS{serial}=3D"0B02011C03EF4BFC", NAME=3D"USBdrive%n" to my /etc/udev/udev.rules. If I look to /udev/ after switching on the drive, I see: QBI050102:~# la /udev/{sda*,USB*} brw------- 1 root root 8, 0 Mar 19 19:04 /udev/USBdrive brw------- 1 root root 8, 1 Mar 19 19:04 /udev/USBdrive1 brw------- 1 root root 8, 5 Mar 19 19:04 /udev/USBdrive5 brw------- 1 root root 8, 10 Mar 19 19:04 /udev/sda10 brw------- 1 root root 8, 6 Mar 19 19:04 /udev/sda6 brw------- 1 root root 8, 7 Mar 19 19:04 /udev/sda7 brw------- 1 root root 8, 8 Mar 19 19:04 /udev/sda8 brw------- 1 root root 8, 9 Mar 19 19:04 /udev/sda9 Four out of seven partitions have a wrong name. But fdisk shows: QBI050102:~# fdisk -l /udev/USBdrive Disk /udev/USBdrive: 123.5 GB, 123522416640 bytes 255 heads, 63 sectors/track, 15017 cylinders Units =3D cylinders of 16065 * 512 =3D 8225280 bytes Device Boot Start End Blocks Id System /udev/USBdrive1 1 15017 120624021 5 Extended /udev/USBdrive5 1 3647 29294464+ 83 Linux /udev/USBdrive6 3648 7294 29294496 83 Linux /udev/USBdrive7 10942 13801 22972918+ 83 Linux /udev/USBdrive8 13802 15017 9767488+ b W95 FAT32 /udev/USBdrive9 7295 7340 369463+ 82 Linux swap /udev/USBdrive10 7341 10941 28925001 83 Linux Partition table entries are not in disk order Switching on and off gives me every time another view: QBI050102:~# la /udev/{sda*,USB*} brw------- 1 root root 8, 0 Mar 19 19:08 /udev/USBdrive brw------- 1 root root 8, 1 Mar 19 19:08 /udev/USBdrive1 brw------- 1 root root 8, 7 Mar 19 19:08 /udev/USBdrive7 brw------- 1 root root 8, 8 Mar 19 19:08 /udev/USBdrive8 brw------- 1 root root 8, 10 Mar 19 19:08 /udev/sda10 brw------- 1 root root 8, 5 Mar 19 19:08 /udev/sda5 brw------- 1 root root 8, 6 Mar 19 19:08 /udev/sda6 brw------- 1 root root 8, 9 Mar 19 19:08 /udev/sda9 Do I understand something wrong here or is there a bug in udev? I use 021 right now. Thanks for your answer --=20 Jens Kubieziel http://www.kubieziel.de Best of all is never to have been born. Second best is to die soon. --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD4DBQFAXszmVm02LO4Jd+gRAtm7AJidCBqc+/TumBg2aMrpC7bcq4o5AKCUGlDt Bjt+tF5GvfU1Q2njK6yQdA== =Con3 -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ 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