Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-22 Thread daid kahl
On 19 February 2010 20:43, Iain Buchanan iai...@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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-22 Thread daid kahl
 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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-22 Thread YoYo siska
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

   70 512000 loop0
   80  199148544 sda
   81   18940603 sda1
   82   32218357 sda2
   832152710 sda3
   84  1 sda4
   85  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  rosda2  sda4  sizestat 
  uevent
capability  device  holdersqueue  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/




Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-22 Thread YoYo siska
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




Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-22 Thread Iain Buchanan
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




RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-20 Thread James Homuth
 

-Original Message-
From: Hung Dang [mailto:hungp...@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.




RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-20 Thread Iain Buchanan
On Sat, 2010-02-20 at 12:44 -0500, James Homuth wrote:
 
 -Original Message-
 From: Hung Dang [mailto:hungp...@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.




RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread James Homuth
 


  _  

From: Hung Dang [mailto:hungp...@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.


Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread J. Roeleveld
On Friday 19 February 2010 09:07:59 James Homuth wrote:
   _
 
 From: Hung Dang [mailto:hungp...@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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Stroller


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.



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Alex Schuster
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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Iain Buchanan
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




Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Iain Buchanan
On Fri, 2010-02-19 at 09:24 +, 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




Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-19 Thread Hung Dang
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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-18 Thread Hung Dang
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



Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-18 Thread daid kahl
On 19 February 2010 14:49, James Homuth ja...@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



RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...

2010-02-18 Thread James Homuth
 

-Original Message-
From: daid kahl [mailto:daid...@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 ja...@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.