LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-31-2007, 03:22 PM   #1
mr.gizm0
LQ Newbie
 
Registered: Jan 2004
Distribution: slackware 12
Posts: 26

Rep: Reputation: 15
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

Last edited by mr.gizm0; 08-31-2007 at 04:47 PM. Reason: missing information
 
Old 09-01-2007, 07:05 AM   #2
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
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....
 
Old 09-01-2007, 11:06 AM   #3
mr.gizm0
LQ Newbie
 
Registered: Jan 2004
Distribution: slackware 12
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Valkyrie_of_valhalla View Post
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.
 
Old 09-01-2007, 12:49 PM   #4
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
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?
 
Old 09-01-2007, 02:56 PM   #5
mr.gizm0
LQ Newbie
 
Registered: Jan 2004
Distribution: slackware 12
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Valkyrie_of_valhalla View Post
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
 
Old 09-01-2007, 04:58 PM   #6
mr.gizm0
LQ Newbie
 
Registered: Jan 2004
Distribution: slackware 12
Posts: 26

Original Poster
Rep: Reputation: 15
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
 
  


Reply

Tags
fdisk, gentoo, kernel, lilo, macbook, panic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block Dankles Slackware 23 01-28-2011 04:01 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block bijit1709 Slackware 11 06-08-2007 05:38 PM
Kernel panic - not syncing : VFS: Unable to mount root fs on unknown block(0,0) Merlinator Ubuntu 1 03-05-2007 05:18 AM
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block kaplis Linux - Software 1 09-19-2006 02:44 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2) Volgin Linux - Software 1 12-11-2005 08:46 PM


All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration