LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-11-2010, 01:17 PM   #1
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
Unhappy Another Kernel Panic (Please append a correct root= option, not syncing, etc.)


After trying to browse through the 3 other Kernel Panic threads and attempting to fix my problem using those, I've decided to post a new thread...

I am at the last stage of LFS 6.6, no errors as far as I can tell, and everything has been working fine in the chroot environment.

I set up GRUB, no errors. I already have GRUB on Linux Mint 9 (Ubuntu 10.04), so didn't install it to the MBR. I rebooted, and saw "GNU/Linux...", which wasn't there before. I clicked on it and this is what I saw (sorry, I don't know where the log is, if there is one):
[Picture of my monitor with errors]

I saw that something was wrong with /dev/sda3 (my LFS partition), so I looked at fdisk -l (on Linux Mint):
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb744052f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       16633   133599232+  83  Linux
/dev/sda2           16633       17849     9767520   82  Linux swap / Solaris
/dev/sda3           17849       20411    20582784   83  Linux
/dev/sda4   *       20411       38914   148620288    7  HPFS/NTFS
If this is relevant, here is LFS's fstab file:
Code:
# Begin /etc/fstab
# file system  mount-point type   options        dump fsck
#                                                     order
/dev/sda3      /           ext3   defaults       1    1
/dev/sda2      swap        swap   pri=1          0    0
proc           /proc       proc   defaults       0    0
sysfs          /sys        sysfs  defaults       0    0
devpts         /dev/pts    devpts gid=4,mode=620 0    0
tmpfs          /dev/shm    tmpfs  defaults       0    0
# End /etc/fstab
And here is Linux Mint's grub.cgf:
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
insmod png
if background_image /boot/grub/linuxmint.png ; then
  set color_normal=white/black
  set color_highlight=white/light-gray
else
  set menu_color_normal=white/black
  set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 9, 2.6.32-21-generic (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=f46e79a4-c951-489f-82d7-d3bc158ee521 ro   quiet splash
	initrd	/boot/initrd.img-2.6.32-21-generic
}
menuentry "Linux Mint 9, 2.6.32-21-generic (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
	echo	'Loading Linux 2.6.32-21-generic ...'
	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=f46e79a4-c951-489f-82d7-d3bc158ee521 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set f46e79a4-c951-489f-82d7-d3bc158ee521
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6" {
	insmod ext2
        insmod lvm
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
	linux	/boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro  
}
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6 (recovery mode)" {
	insmod ext2
        insmod lvm
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
	linux	/boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro single 
}
menuentry "Windows 7 (loader) (on /dev/sda4)" {
	insmod ntfs
	set root='(hd0,4)'
	search --no-floppy --fs-uuid --set 483c78cb3c78b592
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
And here's LFS's grub.cfg:
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
	linux	/boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro  
}
menuentry "GNU/Linux, with Linux 2.6.32.8-lfs-6.6 (recovery mode)" {
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set db1c9927-1949-4e92-8822-b5b96127af7b
	linux	/boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda3 ro single 
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
Any ideas? I really don't want to abandon 3 days of hard work...
 
Old 06-11-2010, 06:14 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Your grub.cfg's say /dev/sda3 but the kernel says "sda3". That looks fishy to me. Also, it seems that you've compiled your kernel with support for RAID and NFS and your grub.cfg says insmod lvm so it seems you've got all sorts of tricky things going on. Do you have only one hard disk? If you have 2 the kernel could be calling the partition /dev/sdb3. Did you compile your kernel with support for libata or is your hard disk an IDE drive? If so, the kernel may be calling the partition /dev/hda3. Did you compile your kernel with support for your motherboard's chipset? (you can learn a lot with lspci on your host system). Also, use lsmod on your host system to see what modules it has loaded. Compile them into your kernel.
 
Old 06-13-2010, 07:02 PM   #3
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
I was typing up a long reply, but Chrome crashed on me. I will try re-compiling my kernel (I got desperate and checked EVERY option that was not marked as experimental because I really wanted it to boot, so I guess there would be some conflicts) and see if any of the name changes ("sda" => "hda") help.

Thanks !
 
Old 06-13-2010, 07:04 PM   #4
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
How would I include my motherboard's chipset?

lspci outputs a lot of lines that include MCP61, so I would guess that that's my chipset:
Code:
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
01:06.0 Network controller: Broadcom Corporation BCM43XG (rev 01)
01:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev 80)
02:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 9800 GT] (rev a2)
 
Old 06-13-2010, 07:10 PM   #5
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
Upon further investigation, I noticed that there was a "NVIDIA SATA support" driver that I didn't compile. I'll give that a shot.
 
Old 06-13-2010, 08:13 PM   #6
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
Okay, I fixed it. It WAS the "NVIDIA SATA support" option. Thanks for the help
 
  


Reply



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
[SOLVED] Diskless: Kernel panic-not syncing: No init found. Try passing init= option to kernel Pier Gentoo 6 10-10-2011 06:17 AM
Kernel panic - not syncing: VFS: Unable to mount root fs ? linux_mani Linux - General 1 01-23-2009 04:25 AM
Kernel panic-not syncing:No init found. Try passing init=option to kernel cucolin@ Ubuntu 5 12-26-2008 06:44 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel ranjithmrk Linux - Newbie 4 08-22-2008 02:33 PM
Kernel panic - not syncing: VFS: unable to mount root.... nelad Ubuntu 2 04-14-2007 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:32 AM.

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
Open Source Consulting | Domain Registration