LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,4) (http://www.linuxquestions.org/questions/linux-newbie-8/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block-8-4-a-581289/)

mr.gizm0 08-31-2007 02:22 PM

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,4)
 
Hey all, I've tried to set up gentoo-current on my mac book, I used the minimal cd, I've been following along with the gentoo hand book
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml and also the wiki page for gentoo on a mac book http://gentoo-wiki.com/HARDWARE_Apple_MacBook

Please note this is my first time I have attempted to install gentoo (and got this far).

my problem is I can't get the system to get past the below output:

Code:

Please append a correct "root=" boot option; here are the available partitions:

0300 514048 hda driver: ide-cdrom
0800 58605120 sda driveR: sd

0801 204800 sda1
0802 29360128 sda2
0803 28909080 sda3

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,4)

My root partition is on /dev/sda4, this isn't even listed :/ I'm really confused by this.

I have included a copy of my fstab

Code:

livecd / # cat /etc/fstab
# /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/pa                      ss>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda3              /boot          ext2            noauto,noatime  1 2
/dev/sda4              /              ext3            noatime        0 1
/dev/cdrom              /mnt/cdrom      audo            noauto,ro      0 0
procs                  /proc          proc            defaults        0 0
#/dev/fd0              /mnt/floppy    auto            noauto          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)
shm                    /dev/shm        tmpfs          nodev,nosuid,noexec    0                        0

Here is my fdisk /dev/sda output
Code:


Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1          26      204819+  ee  EFI GPT
/dev/sda2              26        3681    29360128  af  Unknown
/dev/sda3  *        3681        3685      34814+  83  Linux
/dev/sda4            3686        7296    29005357+  83  Linux

/dev/sda3 is my boot partition and /dev/sda4 is my root partition

My lilo config file is below:
Code:

livecd / # cat /etc/lilo.conf
#
# Global LILO settings
#
boot=/dev/sda
timeout=5
default=gentoo
#
# Kernel specific LILO settings
#
image=/boot/vmlinuz-2.6.22-gentoo-r5-mactel-mactelpatches-macbook-core2duo

#
# Uncomment the next line if your MacBook locks up
# during boot with an APIC-related error message
# or if you see strange keyboard problems (double-chars).
#
#append="noapic acpi=force irqpoll"
label=gentoo
read-only
root=/dev/sda4


And this is what happens when I type lilo, I'm also confused about this warning, I've looked it up on google and I can't find anything useful related to it.
Code:

livecd / # lilo
Warning: LBA32 addressing assumed
Added gentoo *
One warning was issued.
livecd / #

finally, here is my .config that I used to configure my kernel.
I have uploaded it to paste bin because this post was too long when it was included
http://pastebin.com/f2cccbba4

The kernel version I compiled was 2.6.22, I obtained this by issuing
emerge gentoo-sources.

I'd appreciate any help you people can offer.

Thanks for reading my thread and thanks for your help.

My root partition is ext3 and my boot partition is ext2.

mr.gizm0

Valkyrie_of_valhalla 09-01-2007 06:05 AM

Umm, have you tried replacing root=/dev/sda4 with root=/dev/sda3 ?
Bootloaders usually use what's in /boot to boot, so that should be the problem....

mr.gizm0 09-01-2007 10:06 AM

Quote:

Originally Posted by Valkyrie_of_valhalla (Post 2877614)
Umm, have you tried replacing root=/dev/sda4 with root=/dev/sda3 ?
Bootloaders usually use what's in /boot to boot, so that should be the problem....

Thanks for your reply, I just tried it and now I get a different error message,
Code:

No filesystem could mount root, tried: reiserfs ext3 ext2 vfat iso9660 hfsplus fuseblk udf

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)

Anyone have any idea what I'm doing wrong?
Thanks.

Valkyrie_of_valhalla 09-01-2007 11:49 AM

A few more ideas:

1. There might be a problem with that partition. Can you mount it with a live cd?
2. Did you run mkinitrd after installing the kernel?

mr.gizm0 09-01-2007 01:56 PM

Quote:

Originally Posted by Valkyrie_of_valhalla (Post 2877893)
A few more ideas:

1. There might be a problem with that partition. Can you mount it with a live cd?
2. Did you run mkinitrd after installing the kernel?

I can mount it with the live cd, but I did not run mkinitrd, I just did
emerge mkinitrd
I'll have to look up the usage, do I need to add it to my lilo.conf aswell?

thanks for your reply
mr.gizm0

mr.gizm0 09-01-2007 03:58 PM

I've tried to do
Code:

mkinitrd /boot/initrd.img 2.6.22-gentoo-r5-mactelpatches-macbook-core2duo
and I added
Code:

initrd = /boot/initrd.img
to my lilo.conf, re ran lilo, rebooted and it's still not working :(

Thanks for the suggestion, but do you have any others?

thanks alot.
mr.gizm0


All times are GMT -5. The time now is 11:24 AM.