grub problem

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Scenario:

I'm trying to create a dual-boot system with Micro$oft Windows 2K Pro and Gentoo Linux (kernel-2.6.12-gentoo-r6) using grub as the boot loader. Both operating systems have been installed with no errors or hiccoughs during the installation processes.

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Problem:

On boot-up, grub appears with menu options for Win 2K and Gentoo. Win 2K boots fine - no problems whatsoever there. Gentoo *starts* actually booting the kernel and gets quite a way into the boot process (I'm *guessing* about 85% or better into the entire boot process). It successfully loads many drivers/modules related to power management, PCI devices, USB devices, RAID controller, CDROM and DVD drives, video card, sound card (and quite a number of others that I can barely make out as their related console output flys up the screen). Then, near the end of the boot process, then the following occurs:

*The system hangs indefinitely (kernel panic)

*The last few lines of console output are --

VFS: Cannot open root device "sda7" or unknown-block(0,0)

Please append a correct "root=" boot option

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

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Noteworthy Considerations:

For some reason (perhaps because I'm running RAID ?) my storage is detected as /dev/sda (as opposed to /dev/hda).

In testing, I can actiavte my swap (using swapon), chroot into my installation and freely move about/view/edit my installation/boot and the files therein (using chroot, mount, ls, nano and etc.). Everything appears to be where it needs to be in my root and boot partitions. To be sure where grub is concerned, here is some output from the grub command-line:

GNU GRUB version 0.96 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> find /kernel-2.6.12-gentoo-r6
find /kernel-2.6.12-gentoo-r6
(hd0,4)

grub> find /boot/grub/grub.conf
find /boot/grub/grub.conf
(hd0,4)

grub> find /etc/fstab
find /etc/fstab
(hd0,6)

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Core Hardware:

Motherboard: Gigabyte GA-K8NS Pro with latest BIOS/firmware (rev F16)

Processor: Athlon 64 3700+

Memory: 2 x 1GB/DDR 400

Storage: 2 x Western Digital WD2000JB 200GB drives in RAID-0 configuration

RAID controller: 3Ware Escalade 7500-4LP with latest firmware and BIOS drivers

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Drive Partition Info:

Fdisk dump:

Disk /dev/sda: 407.8 GB, 407854120960 bytes
255 heads, 63 sectors/track, 49585 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 7 HPFS/NTFS
/dev/sda2 1306 35542 275008702+ 7 HPFS/NTFS
/dev/sda3 35543 49585 112800397+ 5 Extended
/dev/sda5 * 35543 35575 265041 83 Linux
/dev/sda6 35576 35638 506016 82 Linux swap / Solaris
/dev/sda7 35639 49585 112029246 83 Linux

...or, if you prefer...

Cfdisk dump:

cfdisk 2.12i

Disk Drive: /dev/sda
Size: 407854120960 bytes, 407.8 GB
Heads: 255 Sectors per Track: 63 Cylinders: 49585

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------
sda1 Boot Primary NTFS [^A] 10734.00
sda2 Primary NTFS [^_] 281608.92
sda5 Boot Logical Linux ReiserFS 271.44
sda6 Logical Linux swap / Solaris 518.20
sda7 Logical Linux ReiserFS 114717.99

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Grub Config (/boot/grub/grub.conf):

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# 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,4)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12 Gentoo r6
# Partition where the kernel image (or operating system) is located
root (hd0,4)
kernel /kernel-2.6.12-gentoo-r6 root=(0,6) #have also tried "root=/dev/sda7" and "root=dev/hda7"

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows 2K Pro
rootnoverify (hd0,0)
makeactive
chainloader +1

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Fstab Config (/etc/fstab):

# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier 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 / tail freely.
#
# See the manpage fstab(5) for more information.

#

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

# NOTE: The next line is critical for boot!
proc /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)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

Comments

  • : #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    :
    : Scenario:
    :
    : I'm trying to create a dual-boot system with Micro$oft Windows 2K Pro and Gentoo Linux (kernel-2.6.12-gentoo-r6) using grub as the boot loader. Both operating systems have been installed with no errors or hiccoughs during the installation processes.
    :
    : #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    :
    : Problem:
    :
    : On boot-up, grub appears with menu options for Win 2K and Gentoo. Win 2K boots fine - no problems whatsoever there. Gentoo *starts* actually booting the kernel and gets quite a way into the boot process (I'm *guessing* about 85% or better into the entire boot process). It successfully loads many drivers/modules related to power management, PCI devices, USB devices, RAID controller, CDROM and DVD drives, video card, sound card (and quite a number of others that I can barely make out as their related console output flys up the screen). Then, near the end of the boot process, then the following occurs:
    :
    : *The system hangs indefinitely (kernel panic)
    :
    : *The last few lines of console output are --
    :
    : VFS: Cannot open root device "sda7" or unknown-block(0,0)
    :
    : Please append a correct "root=" boot option
    :
    : Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

    :
    : #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    :
    : Noteworthy Considerations:
    :
    : For some reason (perhaps because I'm running RAID ?) my storage is detected as /dev/sda (as opposed to /dev/hda).


    Well, sd devices are known to the dev/udev system as scsi devices. USB flash sticks along with USB devices are mounted as a scsi device. My system is using IDE only as of now. It does support SATA drives which I dont have too much experience with. One reason I think you see that error you posted from the console above could be due to the fact that /dev/sda7 isnt a root device? Please read on to see my attempt of fixing up your grub config file. I dont have much experience with RAID.

    :
    : In testing, I can actiavte my swap (using swapon), chroot into my installation and freely move about/view/edit my installation/boot and the files therein (using chroot, mount, ls, nano and etc.). Everything appears to be where it needs to be in my root and boot partitions. To be sure where grub is concerned, here is some output from the grub command-line:
    :
    : GNU GRUB version 0.96 (640K lower / 3072K upper memory)
    :
    : [ Minimal BASH-like line editing is supported. For the first word, TAB
    : lists possible command completions. Anywhere else TAB lists the possible
    : completions of a device/filename. ]
    :
    : grub> find /kernel-2.6.12-gentoo-r6
    : find /kernel-2.6.12-gentoo-r6
    : (hd0,4)
    :
    : grub> find /boot/grub/grub.conf
    : find /boot/grub/grub.conf
    : (hd0,4)
    :
    : grub> find /etc/fstab
    : find /etc/fstab
    : (hd0,6)
    :
    : #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    :
    : Core Hardware:
    :
    : Motherboard: Gigabyte GA-K8NS Pro with latest BIOS/firmware (rev F16)
    :
    : Processor: Athlon 64 3700+
    :
    : Memory: 2 x 1GB/DDR 400
    :
    : Storage: 2 x Western Digital WD2000JB 200GB drives in RAID-0 configuration
    :
    : RAID controller: 3Ware Escalade 7500-4LP with latest firmware and BIOS drivers
    :
    : #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    :
    : Drive Partition Info:
    :
    : Fdisk dump:
    :
    : Disk /dev/sda: 407.8 GB, 407854120960 bytes
    : 255 heads, 63 sectors/track, 49585 cylinders
    : Units = cylinders of 16065 * 512 = 8225280 bytes
    :
    : Device Boot Start End Blocks Id System
    : /dev/sda1 * 1 1305 10482381 7 HPFS/NTFS
    : /dev/sda2 1306 35542 275008702+ 7 HPFS/NTFS
    : /dev/sda3 35543 49585 112800397+ 5 Extended
    : /dev/sda5 * 35543 35575 265041 83 Linux
    : /dev/sda6 35576 35638 506016 82 Linux swap / Solaris
    : /dev/sda7 35639 49585 112029246 83 Linux
    :
    : ...or, if you prefer...
    :
    : Cfdisk dump:
    :
    : cfdisk 2.12i
    :
    : Disk Drive: /dev/sda
    : Size: 407854120960 bytes, 407.8 GB
    : Heads: 255 Sectors per Track: 63 Cylinders: 49585
    :
    : Name Flags Part Type FS Type [Label] Size (MB)
    : ----------------------------------------------------------------------------
    : sda1 Boot Primary NTFS [^A] 10734.00
    : sda2 Primary NTFS [^_] 281608.92
    : sda5 Boot Logical Linux ReiserFS 271.44
    : sda6 Logical Linux swap / Solaris 518.20
    : sda7 Logical Linux ReiserFS 114717.99


    According to what i'm reading here from the fdisk/cfdisk dumps sda1 is a NTFS filesystem type? If so this shouldnt be your boot partition. In your Gentoo manual you should of seen the Grub boot loader setup. From what I remember offhand Grub reads the filesystems differently from the fstab file. I think that if you have /dev/sda1 for the OS it would look like sd(0,0).

    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

    Heres a shot I took at your grub.conf file. NOTE: I installed Gentoo with genkernel. I think it explains that you must pass different parameters to the grub config file depending on which method stage of Gentoo you installed:
    [code]
    #Which listing to boot as default. 0 is the first, 1 the second etc.
    default 0
    # 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,4)/grub/splash.xpm.gz

    title=Gentoo Linux 2.6.12 Gentoo r6
    #Partition where the kernel image (or operating system) is located
    #real_root should be /dev/sda7 so I counted down two.
    root (sd0,5)

    #NOTE: If you see my config you will notice I omitted "root=/dev/ram0 init=/linuxrc" along with another line. I dont know if they are neccessary. I think they require you use those options if you used genkernel.
    kernel /kernel-2.6.12-gentoo-r6 real_root=/dev/sda7


    # The next four lines are only if you dualboot with a Windows system.
    # In this case, Windows is hosted on /dev/hda6.

    #I'm confused... You say that this windows configuration in the #bootloader works fine? I thought you were using all scsi raid or #something.


    title=Windows 2K Pro
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    [/code]

    Now remember that I'm only guessing as to what your grub config file should look like. Depending on what method you chose intstall Gentoo Linux will depend on how they expect you to setup the grub config file. You should refer to the manual.


    This is my Grub bootloader menu. Maybe it will help:

    [code]
    default 0
    timeout 18
    color black/cyan yellow/cyan

    title=Gentoo Linux 2.6.11-r9
    root (hd1,7)
    kernel /kernel-2.6.11-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb9
    initrd /initrd-2.6.11-gentoo-r9

    #You see that my real_root is /dev/hdb9. hdb is my secondary IDE slave #HDD which is a Westerdn Digital 160 gigabytes The way Grub reads it #counts down the partitions by two. root(hd1,7)... hd1 is the hdb #portion and the 7 is equivalent to partition 9. Just a difference of 2.

    title=Windows XP Professional
    root (hd0,0)
    chainloader +1
    [/code]

    Well I hope this post helps you out

    --George



    <------------------------------------------>

    Reach me at:

    AIM IM: kc2keo
    EMAIL: [email protected]

    Pri. Homepage: http://MouyiosMachine.hopto.org:8080

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion