Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109077 - gentoo-sources-2.6.12-r5+: cant mount root
Summary: gentoo-sources-2.6.12-r5+: cant mount root
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 18:34 UTC by Luke Imhoff
Modified: 2005-11-24 16:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
2.6.12-r4 .config (.config,34.04 KB, text/plain)
2005-10-13 21:39 UTC, Luke Imhoff
Details
2.6.13-r4 .config (.config,34.48 KB, text/plain)
2005-10-13 22:00 UTC, Luke Imhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Imhoff 2005-10-12 18:34:07 UTC
Whenever I try to upgrade to a kernel >2.6.12-r4 (what I'm currently running), I
get a kernel panic during boot.  The panic reports a bad magic number for XFS
(which is used on a non-critical FS) before the panic.

Reproducible: Always
Steps to Reproduce:
1. Compile kernel >2.6.12-r4
2. Install kernel to boot
3. Boot kernel

Actual Results:  
..results removed because I can't copy all the stuff as it flies by the on screen...

md: Autodetecting RAID arrays
md: autorun ...
md: ... autorun
UDF-fs: No VRS found
XFS: bad magic number
XFS: SB validate failed
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-bl0ck(3,6)

Expected Results:  
The kernel boots

Portage 2.0.53_rc5 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -ftracer
-fprefetch-loop-arrays -msse -m3dnow -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/env.d"
CXXFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -ftracer
-fprefetch-loop-arrays -msse -m3dnow -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/opt/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa apache2 apm asm avi berkdb
bitmap-fonts bonobo browserplugin cdr crypt cups curl divx4linux dts dvd eds
emboss encode ffmpeg firefox flac foomaticdb fortran freetype gdbm gif gnome gpm
gstreamer gtk gtk2 guile hal imagemagick imlib ipv6 java jikes jpeg junit libg++
libwww mad mastroska mikmod mmx mmxext motif mp3 mpeg nas ncurses nls nsplugin
ntpl ntplonly offensive ogg oggvorbis opengl pam pdflib perl pic png ppds python
quicktime readline sdl slang speex spell sse ssl svg svga sysvipc tcltk tcpd
tetex theora tiff truetype truetype-fonts type1 type1-fonts unicode usb
userlocales vcd vorbis wxwindows xml xml2 xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS

=================================================================

The only XFS mount point is /media which is part of my LVM group.  The root file
system is ext3.

=================================================================
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13
20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>            <type>          <opts>         
        <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2               /boot                   ext2            noauto,noatime 
        1 1
/dev/hda3               none                    swap            sw             
        0 0
/dev/hda5               /                       ext3            noatime        
        0 1
# Raid volumes being used as non-raid volumes
#/dev/hde1              /media/downloads        xfs             noatime        
        0 0
/dev/hdg1               /mnt/virtual            xfs             noatime,user   
        0 0
# Logical volumes
/dev/vg/usr             /usr                    ext3            noatime        
        0 0
/dev/vg/home            /home                   ext3            noatime        
        0 0
/dev/vg/opt             /opt                    ext3            noatime        
        0 0
/dev/vg/var             /var                    ext3            noatime        
        0 0
/dev/vg/tmp             /tmp                    ext3            noatime        
        0 0
/dev/vg/media           /media                  xfs             noatime        
        0 0
# Removable volumes
/dev/cdroms/cdrom0      /mnt/cdrom              iso9660         noauto,user,ro 
        0 0
/dev/fd0                /mnt/floppy             auto            noauto,user    
        0 0
/dev/sdb1               /mnt/card               vfat            noauto,user    
        0 0
# Windows volumes
/dev/hda1               /mnt/winxp              ntfs            noauto,ro      
        0 0

# NOTE: The next line is critical for boot!
none                    /proc                   proc            defaults       
        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm                tmpfs           defaults       
        0 0
none                    /sys                    sysfs           defaults       
        0 0

======================================================================

lvdisplay:

  --- Logical volume ---
  LV Name                /dev/vg/usr
  VG Name                vg
  LV UUID                ekBI0f-LSAH-ugo2-mcKL-ryhW-l9Pp-p6RyDv
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:0

  --- Logical volume ---
  LV Name                /dev/vg/home
  VG Name                vg
  LV UUID                G43ll1-o4OF-aecN-sGzO-3Zq4-WJmv-DueeFf
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:1

  --- Logical volume ---
  LV Name                /dev/vg/opt
  VG Name                vg
  LV UUID                V3S2tU-UfeR-fHbB-5T2S-kVyt-N8VR-g78py5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:2

  --- Logical volume ---
  LV Name                /dev/vg/var
  VG Name                vg
  LV UUID                626JE9-nZlO-qL5t-jZo0-C01Y-h8E7-uuzx12
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:3

  --- Logical volume ---
  LV Name                /dev/vg/media
  VG Name                vg
  LV UUID                OUufV5-jatI-UkMK-1s7S-am5p-GVJB-tik0Sb
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                680.75 GB
  Current LE             174272
  Segments               4
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:4

  --- Logical volume ---
  LV Name                /dev/vg/tmp
  VG Name                vg
  LV UUID                w2qwI1-Q4Ek-LCtm-zWBH-4G0T-QxCX-5UhRPG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           252:5
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-10-13 03:51:36 UTC
Please attach .config from 2.6.12, .config from 2.6.13, lspci output, and
bootloader config.

Is this machine on a local area network? Do you have access to a serial console
cable and another local machine?
Comment 2 Luke Imhoff 2005-10-13 21:10:11 UTC
I just want to emphasize that I tried to upgrade from 2.6.12-r4 to 2.6.12-r5 and
this issue was already there.  I only bring it up now since 2.6.13 hasn't
resolved the issue.  So, it's not a 2.6.12 to 2.6.13 issue necessarily.
Comment 3 Luke Imhoff 2005-10-13 21:39:04 UTC
Created attachment 70628 [details]
2.6.12-r4 .config
Comment 4 Luke Imhoff 2005-10-13 21:45:36 UTC
lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo
KT266/A/333]0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo
KT266/A/333 AGP]
0000:00:06.0 RAID bus controller: Promise Technology, Inc. PDC20276
(MBFastTrak133 Lite) (rev 01)
0000:00:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000
Controller (PHY/Link)
0000:00:09.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
0000:00:09.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 50)
0000:00:09.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
0000:00:0d.0 Unknown mass storage controller: Promise Technology, Inc. PDC20375
(SATA150 TX2plus) (rev 02)
0000:00:0e.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet
Controller (rev 02)
0000:00:0f.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
0000:00:0f.1 Input device controller: Creative Labs SB Audigy MIDI/Game port
(rev 03)
0000:00:0f.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 23)
0000:00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 23)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX
5500] (rev a1)

===========================================================
/boot/grub/grub.conf

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 1
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.13-r4 (Bleeding Edge)
# Partition where the kernel image (or operating system) is located
root (hd0,1)
kernel /vmlinuz-2.6.13-gentoo-r4 root=/dev/hda6
boot

title=Gentoo Linux 2.6.12-r4 (Stable)
# Partition where the kernel image (or operating system) is located
root (hd0,1)
kernel /vmlinuz-2.6.12-gentoo-r4 root=/dev/hda5
boot

# The next three lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda1.
title=Windows XP SP2
rootnoverify (hd0,0)
makeactive
chainloader +1

============================================================

The machine is hooked up to a Belkin router that I'm using as a hardware
firewall.  The firewall is attached to the UMN Resnet network.  I don't have
access to another computer to connect to router nor a serial cable.  I could
maybe convince one of my friends to loan me their laptop.
Comment 5 Luke Imhoff 2005-10-13 22:00:40 UTC
Created attachment 70639 [details]
2.6.13-r4 .config
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-10-14 11:35:39 UTC
So 2.6.12-r4 works fine and 2.6.12-r5 fails?
Comment 7 Luke Imhoff 2005-10-14 15:58:54 UTC
Yes, that's what I'm saying.  The problem started when 2.6.12-r5 came out since
I always upgrade as soon as possible.  However, 2.6.13 hasn't resolved the
problem either.  The kernel panic message has been the same for 2.6.12-r5 to
2.6.13-r4 which I just tried last night.  I may not have tried every -r in that
range, but the ones I did had the same error message.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-10-15 08:44:33 UTC
I find this very unlikely to be a kernel bug as nothing at all storage-related
changed between -r4 and -r5. It is more likely to be a misconfiguration. Please
also attach your kernel .config from 2.6.12-r5
Comment 9 Luke Imhoff 2005-10-15 12:04:52 UTC
My .config for 2.6.12-r5 would have just been me running make oldconfig on my
.config from 2.6.12-r4.  2.6.12-r5 isn't in portage anymore so I can't generate
a .config in this manner, but if no new config options were introduced from r4
to r5 then my 2.6.12-r4, which I already attached, should be what you want.
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-10-25 12:37:39 UTC
Please download and unpack this tarball:

http://dev.gentoo.org/~dsd/genpatches/tarballs/genpatches-2.6.12-8.base.tar.bz2

From the extracted files, please apply the following patches to 2.6.12-r4:

1305_ppc-ntp.patch
1905_netfilter-conntrack.patch
2900_gameport-probe.patch

After applying each one, rebuild the kernel, reboot, to confirm that the system
still boots (make sure you have a backup kernel incase it doesn't...).

Those patches will convert your 2.6.12-r4 into -r5 so hopefully it will point
out where the problem was introduced.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2005-11-08 14:05:04 UTC
Please reopen when you've had a go at comment #10
(I really suspect there is more to this bug than what the report suggests)
Comment 12 Luke Imhoff 2005-11-08 23:08:22 UTC
I tried a booting a version with each patch individually and they worked.  I was
planning on trying 2.6.14, but I haven't had a good time to reboot.
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2005-11-24 16:57:41 UTC
Please reopen when you test 2.6.14, or even better, the latest development
kernel (currently 2.6.15-rc2)