On Mon, Feb 22, 2010 at 04:13:40PM +0100, YoYo siska wrote:
> On Fri, Feb 19, 2010 at 12:49:47AM -0500, James Homuth wrote:
> > I performed a bit of an update on my laptop a day or two ago, and after
> > reboot, I lost the ability to do anything with /dev/hda*. I currently have 0
> > swap space, and according to stat, ls etc, they don't exist. But, booting to
> > an install CD I burned for diagnostic purposes, it sees them just fine.
> > Also, and this is the strange part. It boots no problem, so the OS is able
> > to mount at least /dev/hda3, even though from the command line I'm not
> > seeing it. I'm probably missing something completely dead obvious (it's
> > after midnight here and all), and Google's turning up nothing, so if someone
> > could kindly slap me in the face with it, that'd be appreciated. Thanks
> > either way for whatever help comes my way.
> 
> 
> 
> Hi,
>   I just had to restart my computer (power issues :( ) in the middle of
> an update (well, it was more like 'just before the end';) and after
> restart I have the same problem as you, no /dev/sd[ab]* files...
> 
> My first guess was that I rebooted without updating the config files, so
> I ran etc-update (there were some udev config files as well as init
> script) and rebooted, but that didn't help.
> 
> It is certainly not a problem with drivers not being in kernel, as the
> kernel sees the disks and partitions (see below), so I just run
> 
> tail  -n +3 /proc/partitions | while read maj min size name  ; do  mknod 
> /dev/$name b $maj $min ;  done
> /etc/init.d/localmount pause; /etc/init.d/localmount start
> 
> to get everything mounted again...
> 
> That means it will have to be an  udev (or even openrc) problem.
> The last update of udev did in fact say this:
> 
>  * Checking for suitable kernel configuration options...
>  *   CONFIG_SYSFS_DEPRECATED:    should not be set. But it is.
>  *   CONFIG_SYSFS_DEPRECATED_V2:         should not be set. But it is.
>  *   CONFIG_IDE:         should not be set. But it is.
>  * Please check to make sure these options are set correctly.
>  * Failure to do so may cause unexpected problems.
>  * 
>  * udev-151 does not support Linux kernel before version 2.6.25!
>  * For a reliable udev, use at least kernel 2.6.27
> 
>  * Your kernel version (2.6.28-gentoo-r2) is new enough to run udev-151 
> reliably.
> 
> I didn't want to mess with the kernel right now, but I gues that's the
> first thing to try...
> I'll report when I rebuild & reboot...
> 
yop, that was it

though you wrote about /dev/hda*, which means you should be a bit more
carefull if you used the IDE drivers (under ATA/ATAPI/.... support,
thats the "CONFIG_IDE" option) and disabled the CONFIG_IDE options, you
have to enable it under
Serial ATA (prod) and Parallel ATA (experimental) drivers (CONFIG_ATA)
and also your device might get renamed to sd* instead of hd* (I don't
know, I have only a cdrom, that becomes sr0 ;)

But I think that the real problem was with those SYSFS_DEPRECATED
options, so you might be able to get things working with just disabling
those and leaving IDE as it was...

btw, I found this bug afterwards:
http://bugs.gentoo.org/show_bug.cgi?id=302173



yoyo


Reply via email to