Gentoo Archives: gentoo-catalyst

From: Paul Smith <psmith@××××××.com>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] Seeing devices during initrd
Date: Wed, 08 Jun 2005 14:29:39
Message-Id: 17063.238.917348.693887@lemming.engeast.baynetworks.com
1 Hi all;
2
3 I am trying to mount a filesystem from my harddisk during the initrd
4 bringup (during linuxrc processing).
5
6 If I go to /sys/block I can see the block device listed there (in my
7 case /sys/block/sda). If I go into that directory I can see the
8 partition I want to mount (/sys/block/sda/sda1).
9
10
11 But, there is no device in /dev for this: no /dev/sda, no /dev/sda1. I
12 am using udev, and it is working (for example I CAN see and mount my
13 cdrom drive, /dev/hdc).
14
15 However, after my system boots up I _do_ see /dev/sda and /dev/sda1, and
16 I can mount them.
17
18 So something happens during the "real" system boot to make those visible
19 to udev, that is not happening during initrd. But yet, they _ARE_
20 visible to /sys.
21
22
23 I guess I need a little direction here: how does udev find out about
24 these things; how is it that /sys knows they're there, but no device
25 exists for them; is there any way to make a /dev entry for these items,
26 give the contents of /sys (can I mknod them myself given info in /sys
27 maybe?)
28
29 Is it coldplug that is setting this up?
30
31 I'm not familiar enough with udev etc. to figure out what's going on
32 here; hints anyone?
33
34 --
35 -------------------------------------------------------------------------------
36 Paul D. Smith <psmith@××××××.com> HASMAT: HA Software Mthds & Tools
37 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
38 -------------------------------------------------------------------------------
39 These are my opinions---Nortel Networks takes no responsibility for them.
40 --
41 gentoo-catalyst@g.o mailing list

Replies

Subject Author
Re: [gentoo-catalyst] Seeing devices during initrd Chris Gianelloni <wolf31o2@g.o>