public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
@ 2010-02-19  5:49 James Homuth
  2010-02-19  6:55 ` Hung Dang
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: James Homuth @ 2010-02-19  5:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 708 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1042 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
@ 2010-02-19  6:55 ` Hung Dang
  2010-02-19  8:07   ` James Homuth
  2010-02-19  7:01 ` [gentoo-user] " daid kahl
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: Hung Dang @ 2010-02-19  6:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

On 02/18/10 22:49, 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.
How about /dev/sda1,2,3?

Hung


[-- Attachment #2: Type: text/html, Size: 1341 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
  2010-02-19  6:55 ` Hung Dang
@ 2010-02-19  7:01 ` daid kahl
  2010-02-19  7:58   ` James Homuth
  2010-02-19  9:24 ` Stroller
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: daid kahl @ 2010-02-19  7:01 UTC (permalink / raw
  To: gentoo-user

On 19 February 2010 14:49, James Homuth <james@the-jdh.com> 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*.
> But, booting to
> an install CD I burned for diagnostic purposes, it sees them just fine.

Kernel versions of native install and Live CD?

I susupect Hung's suggestion may be the answer.  AFAIK grub is boot
strapping before the kernel, and so the devices can be named different
from BIOS and the install.  I had a similar strange problem where I
needed symlinks for hd devices to sd devices or vice versa with an
older kernel and newer hardware (and I think some BIOS tweaks).  [I'm
not recommending people to symlink devices, since that seems like a
bad way to do things, but I'm willing to be stupid for myself in cases
of need.]

~daid



^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  7:01 ` [gentoo-user] " daid kahl
@ 2010-02-19  7:58   ` James Homuth
  0 siblings, 0 replies; 19+ messages in thread
From: James Homuth @ 2010-02-19  7:58 UTC (permalink / raw
  To: gentoo-user

 

-----Original Message-----
From: daid kahl [mailto:daidxor@gmail.com] 
Sent: February 19, 2010 2:02 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

On 19 February 2010 14:49, James Homuth <james@the-jdh.com> 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*.
> But, booting to
> an install CD I burned for diagnostic purposes, it sees them just fine.

Kernel versions of native install and Live CD?

Native install is running 2.6.29. Live CD is running I'm not certain which
version kernel. It's the most recent ISO of the X86 CD however, so I imagine
later than that.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  6:55 ` Hung Dang
@ 2010-02-19  8:07   ` James Homuth
  2010-02-19  9:18     ` J. Roeleveld
  2010-02-19 10:02     ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 19+ messages in thread
From: James Homuth @ 2010-02-19  8:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

 


  _____  

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


On 02/18/10 22:49, 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.

 
 How about /dev/sda1,2,3? 
 
There is no /dev/sda*, either. First thing I checked.

[-- Attachment #2: Type: text/html, Size: 2327 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  8:07   ` James Homuth
@ 2010-02-19  9:18     ` J. Roeleveld
  2010-02-19 10:02     ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 0 replies; 19+ messages in thread
From: J. Roeleveld @ 2010-02-19  9:18 UTC (permalink / raw
  To: gentoo-user

On Friday 19 February 2010 09:07:59 James Homuth wrote:
>   _____
> 
> From: Hung Dang [mailto:hungptit@gmail.com]
> Sent: February 19, 2010 1:55 AM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
> 
> 
> On 02/18/10 22:49, 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.
> 
> 
>  How about /dev/sda1,2,3?
> 
> There is no /dev/sda*, either. First thing I checked.
> 

As your root-filesystem does appear to be mounted, can you give use the result 
of the "mount" command to see how it identifies the root-filesystem?

I have seen harddrive naming schemes change between kernel versions. Eg. hda 
might end up being hdb or hdc,... (same with sd.....)

Alternatively, to avoid this, you could use drive-labels and configure 
/etc/fstab with these labels rather then the drive-items.

Can you also show us the dmesg-output to see if the drives are actually 
identified?
If "udev" is not running correctly, the device-nodes might not be created 
automatically.

--
Joost



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
  2010-02-19  6:55 ` Hung Dang
  2010-02-19  7:01 ` [gentoo-user] " daid kahl
@ 2010-02-19  9:24 ` Stroller
  2010-02-19 11:51   ` Iain Buchanan
  2010-02-19 10:26 ` Alex Schuster
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 19+ messages in thread
From: Stroller @ 2010-02-19  9:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]


On 19 Feb 2010, at 05:49, 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.

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

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

Stroller.


[-- Attachment #2: Type: text/html, Size: 1393 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [gentoo-user] Re: Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  8:07   ` James Homuth
  2010-02-19  9:18     ` J. Roeleveld
@ 2010-02-19 10:02     ` Nikos Chantziaras
  1 sibling, 0 replies; 19+ messages in thread
From: Nikos Chantziaras @ 2010-02-19 10:02 UTC (permalink / raw
  To: gentoo-user

On 02/19/2010 10:07 AM, James Homuth wrote:
>
>
> *From:* Hung Dang [mailto:hungptit@gmail.com]
> *Sent:* February 19, 2010 1:55 AM
> *To:* gentoo-user@lists.gentoo.org
> *Subject:* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they
> exist...
>
> On 02/18/10 22:49, 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.
> How about /dev/sda1,2,3?
> There is no /dev/sda*, either. First thing I checked.

Hello. Please quote correctly when you reply, like everybody else.

You can see the partitions listed in the /proc/partitions file.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
                   ` (2 preceding siblings ...)
  2010-02-19  9:24 ` Stroller
@ 2010-02-19 10:26 ` Alex Schuster
  2010-02-19 11:43 ` Iain Buchanan
  2010-02-22 15:13 ` YoYo siska
  5 siblings, 0 replies; 19+ messages in thread
From: Alex Schuster @ 2010-02-19 10:26 UTC (permalink / raw
  To: gentoo-user

James Homuth writes:

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

See the "When is a disk not a disk" thread a few days ago. I guess this is 
the same problem:

----------------------------------------------------------------------
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

> b) You have a corrupted partition table that you can try to repair
>  with the "testdisk" tool (after you make a full backup of your
>  disk.)

That seems to have been it. Testdisk did indeed write a new partition 
table, minus one of the partitions which it insisted on deleting so I 
suppose something was wrong with it.
----------------------------------------------------------------------

	Wonko



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
                   ` (3 preceding siblings ...)
  2010-02-19 10:26 ` Alex Schuster
@ 2010-02-19 11:43 ` Iain Buchanan
  2010-02-20  2:18   ` Hung Dang
  2010-02-22  7:32   ` daid kahl
  2010-02-22 15:13 ` YoYo siska
  5 siblings, 2 replies; 19+ messages in thread
From: Iain Buchanan @ 2010-02-19 11:43 UTC (permalink / raw
  To: gentoo-user

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>

Diplomacy is the art of saying "nice doggie" until you can find a rock.
		-- Wynn Catlin




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  9:24 ` Stroller
@ 2010-02-19 11:51   ` Iain Buchanan
  0 siblings, 0 replies; 19+ messages in thread
From: Iain Buchanan @ 2010-02-19 11:51 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19 11:43 ` Iain Buchanan
@ 2010-02-20  2:18   ` Hung Dang
  2010-02-20 17:44     ` James Homuth
  2010-02-22  7:32   ` daid kahl
  1 sibling, 1 reply; 19+ messages in thread
From: Hung Dang @ 2010-02-20  2:18 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-20  2:18   ` Hung Dang
@ 2010-02-20 17:44     ` James Homuth
  2010-02-21  3:38       ` Iain Buchanan
  0 siblings, 1 reply; 19+ messages in thread
From: James Homuth @ 2010-02-20 17:44 UTC (permalink / raw
  To: gentoo-user

 

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




^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-20 17:44     ` James Homuth
@ 2010-02-21  3:38       ` Iain Buchanan
  0 siblings, 0 replies; 19+ messages in thread
From: Iain Buchanan @ 2010-02-21  3:38 UTC (permalink / raw
  To: gentoo-user

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.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19 11:43 ` Iain Buchanan
  2010-02-20  2:18   ` Hung Dang
@ 2010-02-22  7:32   ` daid kahl
  2010-02-22  7:43     ` daid kahl
  1 sibling, 1 reply; 19+ messages in thread
From: daid kahl @ 2010-02-22  7:32 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-22  7:32   ` daid kahl
@ 2010-02-22  7:43     ` daid kahl
  0 siblings, 0 replies; 19+ messages in thread
From: daid kahl @ 2010-02-22  7:43 UTC (permalink / raw
  To: gentoo-user

> 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



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
                   ` (4 preceding siblings ...)
  2010-02-19 11:43 ` Iain Buchanan
@ 2010-02-22 15:13 ` YoYo siska
  2010-02-22 16:37   ` YoYo siska
  5 siblings, 1 reply; 19+ messages in thread
From: YoYo siska @ 2010-02-22 15:13 UTC (permalink / raw
  To: gentoo-user

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/




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-22 15:13 ` YoYo siska
@ 2010-02-22 16:37   ` YoYo siska
  2010-02-22 23:59     ` Iain Buchanan
  0 siblings, 1 reply; 19+ messages in thread
From: YoYo siska @ 2010-02-22 16:37 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
  2010-02-22 16:37   ` YoYo siska
@ 2010-02-22 23:59     ` Iain Buchanan
  0 siblings, 0 replies; 19+ messages in thread
From: Iain Buchanan @ 2010-02-22 23:59 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-02-23  0:03 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19  5:49 [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist James Homuth
2010-02-19  6:55 ` Hung Dang
2010-02-19  8:07   ` James Homuth
2010-02-19  9:18     ` J. Roeleveld
2010-02-19 10:02     ` [gentoo-user] " Nikos Chantziaras
2010-02-19  7:01 ` [gentoo-user] " daid kahl
2010-02-19  7:58   ` James Homuth
2010-02-19  9:24 ` Stroller
2010-02-19 11:51   ` Iain Buchanan
2010-02-19 10:26 ` Alex Schuster
2010-02-19 11:43 ` Iain Buchanan
2010-02-20  2:18   ` Hung Dang
2010-02-20 17:44     ` James Homuth
2010-02-21  3:38       ` Iain Buchanan
2010-02-22  7:32   ` daid kahl
2010-02-22  7:43     ` daid kahl
2010-02-22 15:13 ` YoYo siska
2010-02-22 16:37   ` YoYo siska
2010-02-22 23:59     ` Iain Buchanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox