Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/sda is not found any more.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Thu Feb 18, 2010 10:20 am    Post subject: /dev/sda is not found any more. Reply with quote

Hi,
I have a laptop which I've been using for two years with gentoo on it. I did an emerge -uD world last saturday and now have a problem.

The machine boots fine to gdm, but when you log in you find that, there's no home directory. I looked into this a bit more and found that /dev/sda no longer existed in gentoo, even though /boot is on /dev/sda6. FYI / is on /dev/sda7, swap is on /dev/sda8 and /home is on /dev/sda9.I've since done a dispatch-conf and a revdep-rebuild, which shows the system is at least vaguely functional.

The error gentoo gives in startup is;
fsck.ext3: No such file or directory while trying to open /dev/sda7
/dev/sda7:
The superblock could not be read or does not descrive a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), the the superblock is corrupt, and you might try running e2fsck with an alternate superblock:

I've booted the machine off a knoppix USB stick, it sees /dev/sda and I can mount home.

I've run e2fsck -b 32768 /dev/sda on the unmounted /dev/sda partition from knoppix, it found some errors, I agreed to the corrections but nothing seems to have changed.

I'm bemused how I can boot to a partition which is apparently this badly damaged, and am wondering if fsck is failing in gentoo as a result of a udev update causing the partitions to be incorrectly mounted. That would be a best case, although it cold be a screwed partition.

I'm _really_ desperate to get this solved, any advice would be greatly received.
Jim
Back to top
View user's profile Send private message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Thu Feb 18, 2010 11:14 am    Post subject: Reply with quote

What does

Code:
fdisk -l


show?
_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Thu Feb 18, 2010 11:29 am    Post subject: Reply with quote

I tried fdisk -l, displays nothing in gentoo, works perfectly in knoppix.
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1148
Location: /dev/koelsch

PostPosted: Thu Feb 18, 2010 11:41 am    Post subject: Reply with quote

Hi BrummieJim,

if fdisk doesn't show you existing device nodes, i guess i have had a similar problem at beginning of February.

Here is my solution:

You can downgrade to udev-149 and everything should work as before, but its only a workaround for me.
To fix the root cause, you have to do the following, not sure if only if you are working with the 2.6.32xx kernel branch:

Into the kernel config you have to deselcet the deprecated option under general setup called CONFIG_SYSFS "deprecated sysfs features which may confuse old userspace tools" and eventuelly CONFIG_SYS (2) found under /file-system/pseudo-filesystems

Than udev-151 (latest version i guess) works also fine for me.

Regards, Andy.
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Thu Feb 18, 2010 11:45 am    Post subject: Reply with quote

Hi,
I was praying it was something like that. I'll do that tonigh, and let you know how it goes.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Feb 18, 2010 12:50 pm    Post subject: Reply with quote

I had that problem too and there is a bugzilla about that too :P
Back to top
View user's profile Send private message
aspedisca
n00b
n00b


Joined: 23 Apr 2009
Posts: 14

PostPosted: Fri Feb 19, 2010 7:10 am    Post subject: Reply with quote

d2_racing wrote:
I had that problem too and there is a bugzilla about that too :P


Hi,
I have this problem too, it is so annoying. I looked for but I could not find the bugzilla page for this.
Could you post the link if you have?
Thank you
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Feb 19, 2010 4:02 pm    Post subject: Reply with quote

In fact, I don't see it anymore.

I will double check.
Back to top
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Fri Feb 19, 2010 8:54 pm    Post subject: Reply with quote

Can confirm downgrading works, went to the stable 146-r1 version.

Thanks for all your help and if you're having this problem, I hope the thread helps.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Feb 19, 2010 9:56 pm    Post subject: Reply with quote

BrummieJim wrote:
Can confirm downgrading works, went to the stable 146-r1 version.

Thanks for all your help and if you're having this problem, I hope the thread helps.


Just how should it help ?
udev ebuild has been warning about deprecated sysfs config option for quite a while.
Recently, it simply stopped supporting it at all.
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1148
Location: /dev/koelsch

PostPosted: Sat Feb 20, 2010 10:48 am    Post subject: Reply with quote

Yepp,

as i told in my post above, downgrading udev is just a workaround - no solution.
To fix it, you have to change your kernel config, as i mentioned above.

One old Bug-report regarding this you can found here, for clarification. (until d2_racing found the link he mentioned :wink: )


https://bugs.gentoo.org/225249


Andy.
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sun Feb 21, 2010 6:14 pm    Post subject: Reply with quote

I have a similar problem with udev-146-r1. The root device /dev/sda3 could not be found at startup.

I'm running linux-2.6.31-gentoo-r9 with the following options:
Code:
# grep SYSFS .config
# CONFIG_SYSFS_DEPRECATED_V2 is not set
# CONFIG_ACPI_SYSFS_POWER is not set
# CONFIG_WIRELESS_EXT_SYSFS is not set
CONFIG_SYSFS=y


Should I deactive CONFIG_SYSFS?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Feb 21, 2010 9:12 pm    Post subject: Reply with quote

No, those options look fine. You may need to add 'root=/dev/sda3' to grub kernel parameters.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Sun Feb 21, 2010 9:48 pm    Post subject: Reply with quote

The parameter is already there
Code:
# For booting gentoo on /dev/sda3
title  gentoo-sda3-2.6.31-gentoo-r9
root   (hd0,0)
kernel /vmlinuz root=/dev/sda3 splash=verbose,theme:emergence video=uvesafb:1024x768-32@75,mtrr:3,ywrap console=tty1
initrd /boot/myinitrd/img.cpio.gz

But /dev/sda3 isn't available.
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Wed Feb 24, 2010 6:30 pm    Post subject: Reply with quote

My problem was solved here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum