Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
i compiled the linux-2.6.15.4 and i added to the Grub: title Custom Linux Kernel 2.6.15.4 root (hd0,1) kernel /boot/bzImage ro root=/dev/hda0 hdc=ide-scsi and when i boot i get: VFS: Cannot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    17

    Cool HELP:ERROR when i boot the compiled Kernel


    i compiled the linux-2.6.15.4 and i added to the Grub:

    title Custom Linux Kernel 2.6.15.4
    root (hd0,1)
    kernel /boot/bzImage ro root=/dev/hda0 hdc=ide-scsi

    and when i boot i get:
    VFS: Cannot open root device "hda0" or unknown - block(0,0)
    after that a Kernel panic and it just Stops
    i tryed to chage it too hda1 or hda2 but it didn't work
    Any Help will do
    (i read the thread b4 but it didn't work for me)

  2. #2
    Linux Engineer spencerf's Avatar
    Join Date
    Jan 2005
    Location
    Syracuse, NY
    Posts
    1,144
    well first question is do you have /boot on a seperate partition?

    if not: then grub should look like this:

    title
    root (hd0,1)
    kernel /boot/bzimage ro root=/dev/hda2 hdc=ide-scsi

    if yes: as /boot is on hda2 and / is hda3 (i'm just guessing here) then grub is:
    title
    root (hd0,1)
    kernel /boot/bzimage ro root=/dev/hda3 hdc=ide-scsi

    if this doesn't help then please post your /etc/fstab
    All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL

  3. #3
    Just Joined!
    Join Date
    Feb 2006
    Posts
    17
    i have one Hd and two partitions the linux is in the second one
    so i know i have to use root (hd0,1)
    the Worknig kernel line look's like this:

    title Ubuntu, kernel 2.6.12-10-386
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda2 ro quiet splash
    initrd /boot/initrd.img-2.6.12-10-386
    savedefault
    boot

    so i guess i should write:
    kernel /boot/bzImage ro root=/dev/hda2 hdc=ide-scsi
    but it didn't work

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2006
    Posts
    17
    the /etc/fstab:
    /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    /dev/hda2 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda5 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

  6. #5
    Just Joined!
    Join Date
    Apr 2004
    Location
    Stalk much?
    Posts
    19
    put this is ur grub config:

    title Ubuntu, kernel 2.6.12-10-386
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.12-10-386 ro quiet splash
    initrd /boot/initrd.img-2.6.12-10-386
    savedefault
    boot

    that should boot it

    are there any other entries in ur boot file? if so try copying one of them and just changing the version, otherwise try that

  7. #6
    Linux Engineer spencerf's Avatar
    Join Date
    Jan 2005
    Location
    Syracuse, NY
    Posts
    1,144
    except he made a custom kernel so the name is changed.

    when you compiled your custom kernel did you copy it over to /boot

    the command usually is

    cp arch/i386/boot/bzimage /boot/bzimage (this is just the name you save it to you can name it whatever you want but this name is what you boot in grub.conf or menu.lst

    also did you get any error messages you said it didn't work when you changed it but grub usually spits out some sort of error. If it says kernel not found then you didn't copy it over or you have the wrong name.
    All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL

  8. #7
    Just Joined! tb10alj's Avatar
    Join Date
    Feb 2006
    Location
    Germany
    Posts
    31
    Hmmmm,

    maybe the custom kernel is missing the driver for your harddisk controller
    (or you compiled this driver as module and you didn't create an initial ramdisk
    for this kernel).


    regards,
    JAN

  9. #8
    Just Joined!
    Join Date
    Feb 2006
    Posts
    17
    Hi, thank's for all the Help
    but the bug is still on
    here's what i did:
    1. make menuconfig
    2. make dep
    3. make clean
    4. make bzImage
    5. make modules
    6. make modules_install
    7. cp /usr/src/linux/arch/i386/boot/bzImage /boot/
    i tryed too add to the menu.lst all kinds of lines the last one was:

    title Custom Linux Kernel 2.6.15.4
    root (hd0,1)
    kernel /boot/bzImage root=/dev/hda2 ro quiet splash
    initrd /boot/bzImage
    savedefault
    boot

    but i got and Error:
    VFS unable to mount root fs on un known-block(0,0)

    mybe Jan is right but i dont know how to handle:
    - the driver for your harddisk controller ??
    - or the initial ramdisk for this kernel ??

    how can i check and correct this things ??

  10. #9
    Just Joined!
    Join Date
    Feb 2006
    Posts
    2
    Hi,

    I try to install RTAI in my red hat 9. I'm starter in linux.

    I have in my grub.conf:

    default=0
    timeout=10
    splashimage=(hd0,0)/grub/splash.xpm.gz
    title Red hat
    root(hd0,0)
    kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
    initrd /initrd-2.4.20-8.img

    title RTAILinux
    root(hd0,0)
    kernel /vmlinuz-2.4.20-rthal5 ro root=/dev/hda2
    initrd /initrd-2.4.20-8.img
    splash=silent showopts



    The error when i try to boot RTAILinux is:

    ds: no socket drivers loaded!
    EXT2-fs: ide0(3,2): couldn't mount because of unsupported optionnal features (4)
    Kernel panic: VFS: Unable to mount root fs on 03:02


    What to do please?

  11. #10
    Just Joined!
    Join Date
    Feb 2006
    Posts
    2

    help

    Hi,

    I try to install RTAI in my red hat 9. I'm starter in linux.

    I have in my grub.conf:

    default=0
    timeout=10
    splashimage=(hd0,0)/grub/splash.xpm.gz
    title Red hat
    root(hd0,0)
    kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
    initrd /initrd-2.4.20-8.img

    title RTAILinux
    root(hd0,0)
    kernel /vmlinuz-2.4.20-rthal5 ro root=/dev/hda2
    initrd /initrd-2.4.20-8.img
    splash=silent showopts



    The error when i try to boot RTAILinux is:

    ds: no socket drivers loaded!
    EXT2-fs: ide0(3,2): couldn't mount because of unsupported optionnal features (4)
    Kernel panic: VFS: Unable to mount root fs on 03:02


    What to do please?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •