FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-19-2010, 10:51 AM
Iain Buchanan
 
Default Can't see /dev/hda1,2,3 but I know they exist...

On Fri, 2010-02-19 at 09:24 +0000, Stroller wrote:

> I would try to help, but your text is too small.

now, now, be nice

> This is why you should post in plain-text format.

he did, you're obviously favouring the html part.

James:
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0612_01CAB0FD.6FF40D00"

Stroller:
Content-Type: multipart/alternative; boundary=Apple-Mail-27-501489522

> Stroller.

--
Iain Buchanan <iaindb at netspace dot net dot au>

A debugged program is one for which you have not yet found the conditions
that make it fail.
-- Jerry Ogdin
 
Old 02-20-2010, 01:18 AM
Hung Dang
 
Default Can't see /dev/hda1,2,3 but I know they exist...

On 02/19/10 04:43, Iain Buchanan wrote:
> On Fri, 2010-02-19 at 00:49 -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.
>>
> The first thing that jumps to my mind is you have an older initrd that
> has your HD drivers in it (such as ATA), but the newer kernel you've
> probably just built (is that what you mean by "a bit of an update"?)
> doesn't.
>
> Check for an initrd, and tell us what "a bit of an update" means You
> could also compare config files between your rescue CD and your system,
> if you can find it!
>
> HTH,
>
You could see your HDD because the boot CD have enabled all drivers.
Could you double check if you have configured the kernel for your HDD
correctly?

Hung
 
Old 02-20-2010, 04:44 PM
"James Homuth"
 
Default Can't see /dev/hda1,2,3 but I know they exist...

-----Original Message-----
From: Hung Dang [mailto:hungptit@gmail.com]
Sent: February 19, 2010 9:18 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

> The first thing that jumps to my mind is you have an older initrd that
> has your HD drivers in it (such as ATA), but the newer kernel you've
> probably just built (is that what you mean by "a bit of an update"?)
> doesn't.
>
> Check for an initrd, and tell us what "a bit of an update" means
> You could also compare config files between your rescue CD and your
> system, if you can find it!
>
> HTH,
>
You could see your HDD because the boot CD have enabled all drivers.
Could you double check if you have configured the kernel for your HDD
correctly?


The kernel was not updated or changed since the laptop's last fully
successful boot. And, at that time, it was configured to acknowledge my HDD.
 
Old 02-21-2010, 02:38 AM
Iain Buchanan
 
Default Can't see /dev/hda1,2,3 but I know they exist...

On Sat, 2010-02-20 at 12:44 -0500, James Homuth wrote:
>
> -----Original Message-----
> From: Hung Dang [mailto:hungptit@gmail.com]
> Sent: February 19, 2010 9:18 PM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
>
>
> You could see your HDD because the boot CD have enabled all drivers.
> Could you double check if you have configured the kernel for your HDD
> correctly?
>
>
> The kernel was not updated or changed since the laptop's last fully
> successful boot. And, at that time, it was configured to acknowledge my HDD.

thanks for bottom posting, but I'm having a hard time differentiating
between your post and the one your responding to, because they're on the
same level. I guess you're using Outlook because you can't boot
properly? In Outlook you can tell it to prepend the standard "> "
before the original message in the menu somewhere.

So back to your problem - you can boot but just how far? Can you log
into X? What were the updates you applied? (Please list them all).
What boot messages do you see? How do you log in?

Type `fdisk -l` and post the output.

thanks,
--
Iain Buchanan <iaindb at netspace dot net dot au>

"Look, this is a man. He's got great numbers. He talks about numbers. I'm
beginning to think not only did he invent the Internet, but he invented the
calculator."

George W. Bush
October 3, 2000
First Presidential Debate. Boston, Massachusetts.
 
Old 02-22-2010, 06:32 AM
daid kahl
 
Default Can't see /dev/hda1,2,3 but I know they exist...

On 19 February 2010 20:43, Iain Buchanan <iaindb@netspace.net.au> wrote:
> On Fri, 2010-02-19 at 00:49 -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.
>
> The first thing that jumps to my mind is you have an older initrd that
> has your HD drivers in it (such as ATA), but the newer kernel you've
> probably just built (is that what you mean by "a bit of an update"?)
> doesn't.
>
> Check for an initrd, and tell us what "a bit of an update" means You
> could also compare config files between your rescue CD and your system,
> if you can find it!
>
> HTH,
> --
> Iain Buchanan <iaindb at netspace dot net dot au>
>

Copy the live cd kernel to your machine and make it an option in grub
and try booting that. Then at least you can stop chrooting and
optical mounting. This will give us some information on if it is a
kernel problem or not. Make sure to make modules_install

If it's the kernel, check out kccmp to compare the kernel options
between Live CD and the machine's kernel configuration after you dig
up the configuration for the kernel on the Live CD.

Other people are mentioning udev, and I wonder about this, too.
Either before or after you check the kernel (whichever you decide is
easier or seems better to you), can you chroot and rebuild udev
through portage and also run a revdep-rebuild please? You said you
updated, but it is not clear to me that the full update was proper.
If you don't have revdep-rebuild, emerge the gentoolkit in the portage
tree to get it, and check out the documentation to see what else it
includes!

~daid
 
Old 02-22-2010, 06:43 AM
daid kahl
 
Default Can't see /dev/hda1,2,3 but I know they exist...

> Other people are mentioning udev, and I wonder about this, too.
> Either before or after you check the kernel (whichever you decide is
> easier or seems better to you), can you chroot and rebuild udev
> through portage and also run a revdep-rebuild please? You said you
> updated, but it is not clear to me that the full update was proper.
> If you don't have revdep-rebuild, emerge the gentoolkit in the portage
> tree to get it, and check out the documentation to see what else it
> includes!
>
> ~daid

Sorry. Also emerge --oneshot udev as well please.

~daid
 
Old 02-22-2010, 02:13 PM
YoYo siska
 
Default Can't see /dev/hda1,2,3 but I know they exist...

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...

yoyo



===================
Kernel can see the partitions just fine:

julka dev # cat /proc/partitions
major minor #blocks name

7 0 512000 loop0
8 0 199148544 sda
8 1 18940603 sda1
8 2 32218357 sda2
8 3 2152710 sda3
8 4 1 sda4
8 5 145830006 sda5
8 16 312571224 sdb
8 17 312568641 sdb1
julka dev # ls /sys/block/
hda/ loop1/ loop3/ loop5/ loop7/ ram1/ ram11/ ram13/ ram15/ ram3/ ram5/ ram7/ ram9/ sdb/
loop0/ loop2/ loop4/ loop6/ ram0/ ram10/ ram12/ ram14/ ram2/ ram4/ ram6/ ram8/ sda/
julka dev # ls /sys/block/sd*
/sys/block/sda:
bdi dev ext_range power range ro sda2 sda4 size stat uevent
capability device holders queue removable sda1 sda3 sda5 slaves subsystem

/sys/block/sdb:
bdi capability dev device ext_range holders power queue range removable ro sdb1 size slaves stat subsystem uevent



--
_
|
YoYo () Siska
===================
http://www.ksp.sk/
 
Old 02-22-2010, 03:37 PM
YoYo siska
 
Default Can't see /dev/hda1,2,3 but I know they exist...

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
 
Old 02-22-2010, 10:59 PM
Iain Buchanan
 
Default Can't see /dev/hda1,2,3 but I know they exist...

On Mon, 2010-02-22 at 17:37 +0100, YoYo siska wrote:

> 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

yep, switch from CONFIG_IDE to Parallel ATA. And the drives will be
changed from hda to sda, so be prepared with a boot disk to change
fstab.

--
Iain Buchanan <iaindb at netspace dot net dot au>

The best diplomat I know is a fully activated phaser bank.
-- Scotty
 

Thread Tools




All times are GMT. The time now is 07:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org