Gentoo Archives: gentoo-user

From: YoYo siska <yoyo@××××××.sk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
Date: Mon, 22 Feb 2010 17:07:30
Message-Id: 20100222163751.GA29759@ksp.sk
In Reply to: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist... by YoYo siska
1 On Mon, Feb 22, 2010 at 04:13:40PM +0100, YoYo siska wrote:
2 > On Fri, Feb 19, 2010 at 12:49:47AM -0500, James Homuth wrote:
3 > > I performed a bit of an update on my laptop a day or two ago, and after
4 > > reboot, I lost the ability to do anything with /dev/hda*. I currently have 0
5 > > swap space, and according to stat, ls etc, they don't exist. But, booting to
6 > > an install CD I burned for diagnostic purposes, it sees them just fine.
7 > > Also, and this is the strange part. It boots no problem, so the OS is able
8 > > to mount at least /dev/hda3, even though from the command line I'm not
9 > > seeing it. I'm probably missing something completely dead obvious (it's
10 > > after midnight here and all), and Google's turning up nothing, so if someone
11 > > could kindly slap me in the face with it, that'd be appreciated. Thanks
12 > > either way for whatever help comes my way.
13 >
14 >
15 >
16 > Hi,
17 > I just had to restart my computer (power issues :( ) in the middle of
18 > an update (well, it was more like 'just before the end';) and after
19 > restart I have the same problem as you, no /dev/sd[ab]* files...
20 >
21 > My first guess was that I rebooted without updating the config files, so
22 > I ran etc-update (there were some udev config files as well as init
23 > script) and rebooted, but that didn't help.
24 >
25 > It is certainly not a problem with drivers not being in kernel, as the
26 > kernel sees the disks and partitions (see below), so I just run
27 >
28 > tail -n +3 /proc/partitions | while read maj min size name ; do mknod /dev/$name b $maj $min ; done
29 > /etc/init.d/localmount pause; /etc/init.d/localmount start
30 >
31 > to get everything mounted again...
32 >
33 > That means it will have to be an udev (or even openrc) problem.
34 > The last update of udev did in fact say this:
35 >
36 > * Checking for suitable kernel configuration options...
37 > * CONFIG_SYSFS_DEPRECATED: should not be set. But it is.
38 > * CONFIG_SYSFS_DEPRECATED_V2: should not be set. But it is.
39 > * CONFIG_IDE: should not be set. But it is.
40 > * Please check to make sure these options are set correctly.
41 > * Failure to do so may cause unexpected problems.
42 > *
43 > * udev-151 does not support Linux kernel before version 2.6.25!
44 > * For a reliable udev, use at least kernel 2.6.27
45 >
46 > * Your kernel version (2.6.28-gentoo-r2) is new enough to run udev-151 reliably.
47 >
48 > I didn't want to mess with the kernel right now, but I gues that's the
49 > first thing to try...
50 > I'll report when I rebuild & reboot...
51 >
52 yop, that was it
53
54 though you wrote about /dev/hda*, which means you should be a bit more
55 carefull if you used the IDE drivers (under ATA/ATAPI/.... support,
56 thats the "CONFIG_IDE" option) and disabled the CONFIG_IDE options, you
57 have to enable it under
58 Serial ATA (prod) and Parallel ATA (experimental) drivers (CONFIG_ATA)
59 and also your device might get renamed to sd* instead of hd* (I don't
60 know, I have only a cdrom, that becomes sr0 ;)
61
62 But I think that the real problem was with those SYSFS_DEPRECATED
63 options, so you might be able to get things working with just disabling
64 those and leaving IDE as it was...
65
66 btw, I found this bug afterwards:
67 http://bugs.gentoo.org/show_bug.cgi?id=302173
68
69
70
71 yoyo

Replies

Subject Author
Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist... Iain Buchanan <iaindb@××××××××××××.au>