Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]kernel panic: VFS: Unable to mount root fs
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
cristi92b
n00b
n00b


Joined: 26 Feb 2012
Posts: 29

PostPosted: Wed Sep 05, 2012 9:28 pm    Post subject: [SOLVED]kernel panic: VFS: Unable to mount root fs Reply with quote

I keep getting a kernel panic and I suspect it is a SCSI or a SATA driver. What do you think?
It's a 3.4.9 vanilla kernel.


See the last kernel lines:
Code:
Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown-block(8,6)

http://postimage.org/image/or6v3cco7/

/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# 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 / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda5      /boot      ext2      noauto,noatime   1 2
/dev/sda6      /      ext4      noatime      0 1
/dev/sda7      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0



lspci -v
Code:
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
   Subsystem: Giga-byte Technology Device 5001
   Flags: bus master, 66MHz, fast devsel, latency 0
   Capabilities: [44] HyperTransport: Slave or Primary Interface
   Capabilities: [dc] HyperTransport: MSI Mapping Enable+ Fixed-

00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
   Subsystem: Giga-byte Technology Device 0c11
   Flags: bus master, 66MHz, fast devsel, latency 0

00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
   Subsystem: Giga-byte Technology Device 0c11
   Flags: 66MHz, fast devsel, IRQ 10
   I/O ports at fc00 [size=64]
   I/O ports at 1c00 [size=64]
   I/O ports at 1c40 [size=64]
   Capabilities: [44] Power Management version 2

00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
   Subsystem: Giga-byte Technology Device 0c11
   Flags: 66MHz, fast devsel

00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3) (prog-if 10 [OHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
   Memory at fe02f000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [44] Power Management version 2
   Kernel driver in use: ohci_hcd

00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3) (prog-if 20 [EHCI])
   Subsystem: Giga-byte Technology Device 5004
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5
   Memory at fe02e000 (32-bit, non-prefetchable) [size=256]
   Capabilities: [44] Debug port: BAR=1 offset=0098
   Capabilities: [80] Power Management version 2
   Kernel driver in use: ehci_hcd

00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1) (prog-if 01 [Subtractive decode])
   Flags: bus master, 66MHz, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
   I/O behind bridge: 0000c000-0000cfff
   Memory behind bridge: fde00000-fdefffff
   Prefetchable memory behind bridge: fdf00000-fdffffff
   Capabilities: [b8] Subsystem: Giga-byte Technology Device 026f
   Capabilities: [8c] HyperTransport: MSI Mapping Enable- Fixed-

00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
   Subsystem: Giga-byte Technology Device a002
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
   Memory at fe028000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [44] Power Management version 2
   Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
   Capabilities: [6c] HyperTransport: MSI Mapping Enable- Fixed+
   Kernel driver in use: HDA Intel
   Kernel modules: snd-hda-intel

00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2) (prog-if 8a [Master SecP PriP])
   Subsystem: Giga-byte Technology Device 5002
   Flags: bus master, 66MHz, fast devsel, latency 0
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
   I/O ports at f000 [size=16]
   Capabilities: [44] Power Management version 2
   Kernel driver in use: AMD_IDE

00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
   Subsystem: Giga-byte Technology Device e000
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 10
   Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
   I/O ports at ec00 [size=8]
   Capabilities: [44] Power Management version 2
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable+ 64bit+
   Capabilities: [6c] HyperTransport: MSI Mapping Enable- Fixed+
   Kernel driver in use: forcedeth

00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
   Subsystem: Giga-byte Technology Device b002
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
   I/O ports at 09f0 [size=8]
   I/O ports at 0bf0 [size=4]
   I/O ports at 0970 [size=8]
   I/O ports at 0b70 [size=4]
   I/O ports at d800 [size=16]
   Memory at fe02c000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [44] Power Management version 2
   Capabilities: [b0] MSI: Enable- Count=1/4 Maskable- 64bit+
   Capabilities: [cc] HyperTransport: MSI Mapping Enable- Fixed+
   Kernel driver in use: sata_nv

00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   I/O behind bridge: 0000b000-0000bfff
   Memory behind bridge: fb000000-fcffffff
   Prefetchable memory behind bridge: 00000000c0000000-00000000dfffffff
   Capabilities: [40] Subsystem: nVidia Corporation Device 0000
   Capabilities: [48] Power Management version 2
   Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+
   Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed-
   Capabilities: [80] Express Root Port (Slot+), MSI 00
   Capabilities: [100] Virtual Channel

00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
   Flags: fast devsel
   Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
   Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
   Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
   Flags: fast devsel
   Capabilities: [f0] Secure device <?>

00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
   Flags: fast devsel

01:06.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 61) (prog-if 10 [OHCI])
   Subsystem: Agere Systems FW322/323
   Flags: bus master, medium devsel, latency 32, IRQ 10
   Memory at fdeff000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [44] Power Management version 2
   Kernel driver in use: ohci1394

02:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Giga-byte Technology Device 34f2
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   Memory at de000000 (64-bit, prefetchable) [size=32M]
   I/O ports at bc00 [size=128]
   [virtual] Expansion ROM at d0000000 [disabled] [size=512K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Capabilities: [b4] Vendor Specific Information: Len=14 <?>
   Capabilities: [100] Virtual Channel
   Capabilities: [128] Power Budgeting <?>
   Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>

02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
   Subsystem: Giga-byte Technology Device 34f2
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at fcffc000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Kernel driver in use: HDA Intel
   Kernel modules: snd-hda-intel



grub.conf
Code:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1

title Gentoo Linux - 3.4.9 Vanilla Kernel
root (hd0,4)
kernel /boot/linux-3.4.9 root=/dev/sda6

title Gentoo Linux - 3.4.9 Vanilla Kernel (rescue)
root (hd0,4)
kernel /boot/linux-3.4.9 root=/dev/sda6 init=/bin/bb
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:


Last edited by cristi92b on Thu Sep 06, 2012 12:17 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31729
Location: 56N 3W

PostPosted: Wed Sep 05, 2012 10:11 pm    Post subject: Reply with quote

cristi92b,

Code:
unknown-block(8,6)
means /dev/sda6

This tells that /dev/sda6 is not really your root filesystem or the filesystem driver is not built into the kernel or not loaded.
That is, the kernel can see /dev/sda6 but not read what it finds there.

You can try adding rootfs=ext4 to your kernel line before you do kernel surgery.
Boot to the grub screen, press 'e' navigare to the kernel line and add rootfs=ext4
Now allow the boot to continue.

You have only edited the grub.conf in RAM. If it works, edit the on disk grub.conf.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cristi92b
n00b
n00b


Joined: 26 Feb 2012
Posts: 29

PostPosted: Wed Sep 05, 2012 10:24 pm    Post subject: Reply with quote

Same result... :cry:

ext2, ext3, ext4 and xfs are included in the kernel and not as modules.


a part of .config file

Code:

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_DEBUG=y
CONFIG_FS_XIP=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_JBD2=y
CONFIG_JBD2_DEBUG=y
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
CONFIG_REISERFS_CHECK=y
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_REISERFS_FS_SECURITY=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
CONFIG_JFS_STATISTICS=y
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_DEBUG is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
# CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_QUOTACTL_COMPAT=y
CONFIG_AUTOFS4_FS=y
CONFIG_FUSE_FS=y
# CONFIG_CUSE is not set
CONFIG_GENERIC_ACL=y

Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31729
Location: 56N 3W

PostPosted: Wed Sep 05, 2012 11:00 pm    Post subject: Reply with quote

cristi92b,

Your panic image shows /dev/sdb with exactly seven partitions. Unfortunately, the information for /dev/sda has been cut off the top of the image.
Does /dev/sda have 7 or more partitions too?

if you change to root=/dev/sdb6 does it get further?
Unless you change /etc/fstab too, it will fail on the rootfsck and root will stay read only, so its harmless to check with the press 'e' at the splash screen method.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6444
Location: Goose Creek SC

PostPosted: Wed Sep 05, 2012 11:11 pm    Post subject: Reply with quote

A while ago ext4 was exhibiting problems like yours when ext2,3,4 were selected independently as in your config and
Code:
< > Second extended fs support                                   
< > Ext3 journalling file system support                         
<*> The Extended 4 (ext4) filesystem                             
[*]   Use ext4 for ext2/ext3 file systems (NEW)                 
[*]   Ext4 extended attributes (NEW)                             
[ ]     Ext4 POSIX Access Control Lists (NEW)                   
[ ]     Ext4 Security Labels (NEW)                               
[ ]   EXT4 debugging support (NEW)                               
[ ] JBD2 (ext4) debugging support (NEW)
was a solution

booting cd and posting results of fdisk -l might be helpful
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cristi92b
n00b
n00b


Joined: 26 Feb 2012
Posts: 29

PostPosted: Wed Sep 05, 2012 11:19 pm    Post subject: Reply with quote

It works!!! And I think I know why this happened, I had an USB drive connected during the gentoo installation. Maybe recompiling the kernell will solve this.

Thank you very much!!!

Yes, /dev/sda should have 7 partitions if it's the HDD.


On gentoo tty1: fdisk -l
/dev/sda appears to have 8MB and no partition table, Disk identifier: 0x00000000

/dev/sdb has 7 partitions.

See picture:
http://postimage.org/image/yije876lj/

-----------

Live CD fdisk gives the expected result, only sda, no sdb.

I recompiled the kernel but it only works with sdb as HDD. I have no idea what is the 8mb "device".

-----------

I found someting:

http://michael-prokop.at/blog/2010/02/04/the-mysterious-8mb-block-device-on-linux/

-----------

I marked the theread as solved, thank you again!!! :D
Back to top
View user's profile Send private message
cristi92b
n00b
n00b


Joined: 26 Feb 2012
Posts: 29

PostPosted: Thu Sep 06, 2012 10:15 am    Post subject: Reply with quote

scsi_debug is not the problem.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6444
Location: Goose Creek SC

PostPosted: Thu Sep 06, 2012 3:11 pm    Post subject: Reply with quote

is your hard drive a seagate momentus? or any other brand of "hybrid" hard drive?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cristi92b
n00b
n00b


Joined: 26 Feb 2012
Posts: 29

PostPosted: Thu Sep 06, 2012 5:15 pm    Post subject: Reply with quote

no, it's a WD caviar black.
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