Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My gentoo fail to mount root disk [solved, but still a prob]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 7:56 am    Post subject: My gentoo fail to mount root disk [solved, but still a prob] Reply with quote

Hello

My system has been working fine since my reinstall (gentoo 2005.1, handbook-install).
I have booted several times after install with no problem.

Then I did a emerge sync and a emerge -uv --deep world..
Also struggled a little with LDAP.

After rebooting, the system will not boot.
The error is somthing like this: fsck.ext3: Failed to open..... /dev/hda3
And then it tries with ext2 and that fails also since /dev/hda3 is ext3.

When booting livecd, /dev/hda3 mounts fine (no problems)
I checked my /etc/fstab and it contains no problems.

When the booting stops I can enter root password to gain console access.
I did that, just to look around. Since root filesystem is mounted-readonly.

The strange thing is that 'fdisk -l' does not report anything (empty).

It looks to me like it has something to do with the device-filesystem.
I have a default gentoo install (by the book), so I'm using kernel 2.6 and udev.

How should I proceed to find my problem?

MartOn


Last edited by frode.meling on Fri Oct 07, 2005 4:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Fri Oct 07, 2005 10:10 am    Post subject: Reply with quote

Sure, you've got ext3 support compiled in your kernel?
Code:
grep EXT3_FS /usr/src/linux/.config

The live cd will surely have ext3 support.
fdisk expects the hardrive as parameter, hence fdisk -l /dev/hda should do the trick.
_________________
-- erol
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 10:17 am    Post subject: Reply with quote

Quite sure yes.
unless the ext3 support can dissapear from kernel by itself.
I have the same kernel I had 3 days ago and then it worked fine.

The kernel is a genkernel with config from gentoo 2005.1 livecd (/proc/config.gz )


If I try a fdisk /dev/hda (not from livecd) after the boot failure, I get an error /dev/hxx does not exist.



MartOn
Back to top
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Fri Oct 07, 2005 10:50 am    Post subject: Reply with quote

frode.meling wrote:
unless the ext3 support can dissapear from kernel by itself

usually not
frode.meling wrote:
If I try a fdisk /dev/hda (not from livecd) after the boot failure, I get an error /dev/hxx does not exist.

Well, that could be a hint. Maybe udev is causing this problem as the device node /dev/hda[n] is not created. Have you updated your config files after your last big update?
_________________
-- erol
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 11:07 am    Post subject: Reply with quote

I have run dispatch-conf after my update, so no configfiles are pending.

I also have done some config changes in the pam modules (just enabling ldap)
Can that affect the mount progress or the device system?

I'm also wondering if udev is conflicting with another package? OR maybe it is unmerged by another package?


MartOn
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 1:37 pm    Post subject: Reply with quote

Hello
I looked further into error messages.
As expected, it is a udev problem.

During boot (a few lines further up, ofcourse)..
This line is stated:

/sbin/rc: line 93: 3703 Segmentation fault /sbin/udevstart


Any ideas?
MartOn
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Oct 07, 2005 2:00 pm    Post subject: Reply with quote

Oeee, segmentation faults.

Would you mind passing us the emerge --info information you gather from your system? To obtain it, boot from the Installation CD, mount the partitions, chroot to the gentoo environment, run
Code:

# emerge --info > /tmp/info-log.txt

and then either put /tmp/info-log.txt online somewhere or copy/paste the content to a code-box in this forum:
Code:

[code]...[/code]

_________________
Please add "[solved]" to the initial topic title when it is solved. TIA.
Linux Sea (PDF), an online e-book on Gentoo Linux
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 2:09 pm    Post subject: Reply with quote

Here it is:
Code:

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Sempron(tm) Processor 2800+
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb
fortran gdbm gif gpm gstreamer gtk2 imlib ipv6 jpeg ldap libg++ libwww mad mikmod motif mp3
mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime
readline samba sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Fri Oct 07, 2005 2:23 pm    Post subject: Reply with quote

Looks perfectly sane. Can you check /var/log/emerge.log and see what packages were updated during your last emerge? Perhaps that might give us a clue as to what is causing this behavior.

You might want to run revdep-rebuild from within the chrooted environment. It'll try to rebuild all packages that were build with a dynamic library in mind but where that library has been updated (new version) and the version the package used is removed.
_________________
Please add "[solved]" to the initial topic title when it is solved. TIA.
Linux Sea (PDF), an online e-book on Gentoo Linux
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 2:59 pm    Post subject: Reply with quote

Ok. I'll do that.

I will do the revdep and see if that works.
If that does not work I will generate a new kernel with genkernel (I saw a new release)

MartOn
Back to top
View user's profile Send private message
frode.meling
n00b
n00b


Joined: 03 Nov 2003
Posts: 11

PostPosted: Fri Oct 07, 2005 3:59 pm    Post subject: My gentoo fail to mount root disk [solved, but still a prob] Reply with quote

Hello
revdep-rebuild did not do anything.

I'm not sure I found it, but I have a file in /etc called nsswitch.conf
The LDAP tutorial I ran, wanted me to change the file to include LDAP.
like this:

This file will stop boot process:
Code:
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $

passwd:      compat ldap
shadow:      compat ldap
group:       compat ldap

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns ldap wins
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files


This file will boot with no problem:
Code:
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $

passwd:      compat
shadow:      compat
group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files


Can someone tell me why?
Is it related to me using genkernel's initramfs?

MartOn
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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