Gentoo Archives: gentoo-dev

From: Christian Bricart <christian@×××××××.de>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] missing ide discs mapping is udev's fault?
Date: Tue, 21 Feb 2006 19:54:38
Message-Id: 43FB6EEF.80805@bricart.de
In Reply to: Re: [gentoo-dev] missing ide discs mapping is udev's fault? by Richard Fish
1 Richard Fish wrote:
2 > On 2/21/06, Christian Bricart <christian@×××××××.de> wrote:
3 >
4 >>Hi,
5 >>So I have /dev/hda through /dev/hdl which are ok. But the mappings to
6 >>/dev/discs/discX with X > 7 are missing.
7 >
8 >
9 > <snip>
10 >
11 >>I wanted to file a bug report, but I'm not certain if it's actually
12 >>udev's fault.
13 >
14 >
15 > Yes, it is udev's fault, but it is not a bug. The /dev/discs nodes
16 > were a convention of devfs, and _never_ standard.
17
18 Re-checked.. /dev/discs seems to be based on /dev/ide/-mapping and yet
19 they are not complete:
20
21 magrathea ~ # find /dev/ide -name disc -o -name cd
22 /dev/ide/host0/bus0/target0/lun0/disc
23 /dev/ide/host0/bus0/target1/lun0/disc
24 /dev/ide/host0/bus1/target0/lun0/cd
25 /dev/ide/host0/bus1/target1/lun0/disc
26 /dev/ide/host2/bus0/target0/lun0/disc
27 /dev/ide/host2/bus0/target1/lun0/disc
28 /dev/ide/host4/bus0/target0/lun0/disc
29 /dev/ide/host4/bus1/target0/lun0/disc
30 /dev/ide/host4/bus1/target1/lun0/disc
31
32 so /dev/ide/host/bus0/target1/lun0/disc (which ought to be /dev/hdj) is
33 missing there.
34 But see the listing in sysfs:
35
36 magrathea ~ # find /sys/bus/ide/drivers/ide* -type l | sort -k 7 -t /
37 /sys/bus/ide/drivers/ide-disk/0.0
38 /sys/bus/ide/drivers/ide-disk/0.1
39 /sys/bus/ide/drivers/ide-cdrom/1.0
40 /sys/bus/ide/drivers/ide-disk/1.1
41 /sys/bus/ide/drivers/ide-disk/2.0
42 /sys/bus/ide/drivers/ide-disk/2.1
43 /sys/bus/ide/drivers/ide-disk/4.0
44 /sys/bus/ide/drivers/ide-disk/4.1
45 /sys/bus/ide/drivers/ide-disk/5.0
46 /sys/bus/ide/drivers/ide-disk/5.1
47
48 and the listing from dmesg:
49
50 magrathea ~# dmesg | grep ^hd | grep drive
51 hda: Maxtor 4D040H2, ATA DISK drive
52 hdb: SAMSUNG SP1614N, ATA DISK drive
53 hdc: IDE-CD R/RW 16x10A, ATAPI CD/DVD-ROM drive
54 hdd: Maxtor 92041U4, ATA DISK drive
55 hde: Maxtor 4G120J6, ATA DISK drive
56 hdf: Maxtor 96147H6, ATA DISK drive
57 hdi: SAMSUNG SP1614N, ATA DISK drive
58 hdj: IC35L040AVER07-0, ATA DISK drive
59 hdk: SAMSUNG SP1614N, ATA DISK drive
60 hdl: SAMSUNG SP1614N, ATA DISK drive
61
62 And hdparm iterates through /dev/ide/* if found...
63 Is /dev/ide according to LSB? Or is this also supposed to vanish? ;-)
64 Then I'll have to file a bug for hdparm instead :)
65
66 Christian
67
68 >
69 > From the ChangeLog (there are many other entries BTW):
70 >
71 > *udev-064-r1 (31 Jul 2005)
72 >
73 > 31 Jul 2005; Greg Kroah-Hartman <gregkh@g.o>
74 > +files/udev.rules-064-r1, +udev-064-r1.ebuild:
75 > Start moving to a sane /dev naming scheme.
76 > This release removes the devfs names for the tty and consolde devices, and the
77 > symlinks that were implementing the LSB standard names. We only implement the
78 > LSB names now, which saves over 3Mb of RAM on /dev.
79 >
80 > -Richard
81 >
82
83 --
84 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] missing ide discs mapping is udev's fault? Greg KH <gregkh@g.o>
Re: [gentoo-dev] missing ide discs mapping is udev's fault? Richard Fish <bigfish@××××××××××.org>