Gentoo Archives: gentoo-dev

From: "Aurélien Francillon" <aurelien.francillon@×××××××××××.fr>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] HDD Detection
Date: Sun, 13 Jun 2004 13:25:26
Message-Id: 40CC55C3.2090901@libertysurf.fr
In Reply to: Re: [gentoo-dev] HDD Detection by Duane Healing
1 Duane Healing wrote:
2 > On Saturday 12 June 2004 14:34, Nathaniel McCallum wrote:
3 >
4 >>On Sat, 2004-06-12 at 15:05, Nathaniel McCallum wrote:
5 >>OK, the script has been rewritten to use sysfs now. Please try it
6 >>again. Hopefully scsi detection should work now :). Currently it
7 >>should detect anything in /sys/bus/{scsi,ide}/devices. If there is
8 >>anything besides scsi and ide that needs to be detected, please let me
9 >>know.
10 >
11 >
12 > templar:/tmp# ./detect_devices.py
13 > Your devices are detected by this script as:
14 > Traceback (most recent call last):
15 > File "./detect_devices.py", line 76, in ?
16 > for device in detect_devices():
17 > File "./detect_devices.py", line 52, in detect_devices
18 > raise Exception, "invalid major minor in "\
19 > Exception: invalid major minor in /sys/bus/ide/devices/0.1/block/dev
20 > templar:/tmp# cat /proc/partitions
21 > major minor #blocks name
22 >
23 > 3 0 337725 hda
24 > 3 1 20491 hda1
25 > 3 2 317205 hda2
26 > 22 0 10022040 hdc
27 > 22 1 5859472 hdc1
28 > 22 2 254016 hdc2
29 > 22 3 3908520 hdc3
30 > 22 64 6297480 hdd
31 > 22 65 488061 hdd1
32 > 22 66 390757 hdd2
33 > 22 67 5418630 hdd3
34 >
35
36 i have the same error, but works with the attached patch
37
38 # ./detect_devices.py
39 Your devices are detected by
40 this script as:
41 /dev/hdb
42 /dev/hda
43
44
45 Fdisk detected your devices as:
46 /dev/hda
47 /dev/hdb
48
49 Compare the two lists above with your real system devices (not partitions).
50 Ideally, the two lists should be the same. If the lists are missing any
51 devices or have extra devices, please email me a copy of the output of this
52 and of 'cat /proc/partitions' to my address npmccallum@g.o
53
54 # cat /proc/partitions
55 major minor #blocks name
56
57 3 0 117220824 hda
58 3 1 64228 hda1
59 3 2 20474842 hda2
60 3 3 522112 hda3
61 3 4 1 hda4
62 3 5 20474811 hda5
63 3 6 75682183 hda6
64 3 64 60051600 hdb
65 3 65 11317761 hdb1
66 3 66 1 hdb2
67 3 69 1060258 hdb5
68 3 70 47672856 hdb6

Attachments

File name MIME type
detect_devices.diff text/plain