Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
Hi, I am running Xubuntu 7.04 ( Kernel 2.6.20.16). It works great. Then I got the 2.6.22.1 kernel compiled it with no problem. Changed the menu.lst( added an entry into ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    Kernel panic:unable to boot with compiled kernel...



    Hi,

    I am running Xubuntu 7.04 ( Kernel 2.6.20.16). It works great.

    Then I got the 2.6.22.1 kernel compiled it with no problem. Changed the menu.lst( added an entry into it to boot my compiled kernel ).

    I get the following errors:
    :
    :
    :
    please append a correct "root=" boot option
    kernel panic - not syncing: vfs: unable to mount fs on unknown-block(0,0)

    ....................................

    I tried lots of options but nothing helped. Can someone plaese point me in the right direction?

    Thanks in advance.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,536
    Can you post your menu.lst here? Also, post the output of:
    Code:
    ls /boot
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Post the contents of /etc/fstab file too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    Contents of menu.lst

    Quote Originally Posted by Dapper Dan View Post
    Can you post your menu.lst here? Also, post the output of:
    Code:
    ls /boot
    Code:
    default         0
    timeout         20
    
    hiddenmenu
    
    title           Ubuntu, kernel 2.6.20-16-generic
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro quiet splash
    initrd          /boot/initrd.img-2.6.20-16-generic
    quiet
    savedefault
    
    title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro single
    initrd          /boot/initrd.img-2.6.20-16-generic
    
    title           Ubuntu, kernel 2.6.20-15-generic
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro quiet splash
    initrd          /boot/initrd.img-2.6.20-15-generic
    quiet
    savedefault
    
    title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro single
    initrd          /boot/initrd.img-2.6.20-15-generic
    
    title           Ubuntu, kernel 2.6.22.1
    root            (hda,1)
    kernel          /boot/vmlinuz-2.6.22.1 root=/dev/hda1 ro
    initrd          /boot/initrd-2.6.22.1.img
    
    title           Ubuntu, memtest86+
    root            (hd0,0)
    kernel          /boot/memtest86+.bin
    quiet
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    ************************************************** ********************
    Code:
    ls -l /boot 
    
    total 88244
    -rw-r--r-- 1 root root   414210 2007-04-15 04:07 abi-2.6.20-15-generic
    -rw-r--r-- 1 root root   414274 2007-06-07 16:58 abi-2.6.20-16-generic
    lrwxrwxrwx 1 root root       15 2007-08-02 23:54 config -> config-2.6.22.1
    -rw-r--r-- 1 root root    83234 2007-04-15 01:33 config-2.6.20-15-generic
    -rw-r--r-- 1 root root    83217 2007-06-07 14:16 config-2.6.20-16-generic
    -rw-r--r-- 1 root root    81509 2007-08-02 23:54 config-2.6.22.1
    -rw-r--r-- 1 root root    81509 2007-08-02 22:10 config-2.6.22.1.old
    lrwxrwxrwx 1 root root       19 2007-08-02 23:54 config.old -> config-2.6.22.1.old
    drwxr-xr-x 2 root root     4096 2007-08-05 19:24 grub
    -rw-r--r-- 1 root root 57237504 2007-08-03 00:00 initrd-2.6.22.1.img
    -rw-r--r-- 1 root root  7158365 2007-07-02 21:52 initrd.img-2.6.20-15-generic
    -rw-r--r-- 1 root root  6841615 2007-04-15 09:20 initrd.img-2.6.20-15-generic.bak
    -rw-r--r-- 1 root root  6928414 2007-07-09 22:55 initrd.img-2.6.20-16-generic
    -rw-r--r-- 1 root root    94600 2006-10-20 07:44 memtest86+.bin
    lrwxrwxrwx 1 root root       19 2007-08-02 23:54 System.map -> System.map-2.6.22.1
    -rw-r--r-- 1 root root   806942 2007-04-15 04:08 System.map-2.6.20-15-generic
    -rw-r--r-- 1 root root   806992 2007-06-07 17:00 System.map-2.6.20-16-generic
    -rw-r--r-- 1 root root   882466 2007-08-02 23:54 System.map-2.6.22.1
    -rw-r--r-- 1 root root   882466 2007-08-02 22:10 System.map-2.6.22.1.old
    lrwxrwxrwx 1 root root       23 2007-08-02 23:54 System.map.old -> System.map-2.6.22.1.old
    lrwxrwxrwx 1 root root       16 2007-08-02 23:54 vmlinuz -> vmlinuz-2.6.22.1
    -rw-r--r-- 1 root root  1745100 2007-04-15 04:07 vmlinuz-2.6.20-15-generic
    -rw-r--r-- 1 root root  1746636 2007-06-07 16:58 vmlinuz-2.6.20-16-generic
    -rw-r--r-- 1 root root  1932628 2007-08-02 23:54 vmlinuz-2.6.22.1
    -rw-r--r-- 1 root root  1932692 2007-08-02 22:10 vmlinuz-2.6.22.1.old
    lrwxrwxrwx 1 root root       20 2007-08-02 23:54 vmlinuz.old -> vmlinuz-2.6.22.1.old
    Last edited by devils casper; 08-07-2007 at 03:37 AM. Reason: inserted Code tags

  5. #5
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    contents of /etc/fstab

    Quote Originally Posted by devils_casper View Post
    Post the contents of /etc/fstab file too.
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/hda1
    UUID=815118fc-4552-4161-abc0-63ea58561d54 / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda5
    UUID=7756db50-b8a4-4196-8c74-4c2c4fd4d2bf 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. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    title Ubuntu, kernel 2.6.22.1
    root (hda,1)
    kernel /boot/vmlinuz-2.6.22.1 root=/dev/hda1 ro
    initrd /boot/initrd-2.6.22.1.img
    Why its (hda,1)?
    It should be root (hd0,0).
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    first it was (hd0,0)

    Quote Originally Posted by devils_casper View Post
    Why its (hda,1)?
    It should be root (hd0,0).
    Hi,

    It was originally (hd0,0) and i was getting that error. And somewhere in the forums I read that we need to point to the correct device on our systems which is hda1 as you can see from the contents of the fstab file.

    I can change it back to (hd0,0). I think I will get the same error though

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Try to change it and post exact error message here, if any.
    I dont think it will throw any error because every thing is correct now. Let see...
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    errors...

    Quote Originally Posted by devils_casper View Post
    Try to change it and post exact error message here, if any.
    I dont think it will throw any error because every thing is correct now. Let see...
    Hi,
    I still have the same errors....
    .
    .
    .
    .
    [ 44.590291] RAMDISK: cramfs filesystem found at block 0
    [ 44.590462] RAMDISK: Loading 55896KiB [1 disk] into ram disk... done.
    [ 46.899335] List of all partitions
    [ 46.899462] No filesystem could mount root, tried: reiserfs ext2
    [ 46.899682] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



    ****************
    Ok. I want to explain the RAMDISK messages. Initially I had 16 disks each 4096KiB. Since, my initrd image is about 54MB, I changed my RAMDISK size to be 64MB and reduced the number of disks from 16 to 1. I did this through menuconfig.
    I am not sure if this is helpful info.

    Thanks for all your help.

  10. #10
    Just Joined!
    Join Date
    Jun 2007
    Posts
    34

    can someone please suggest any ansewers....

    Quote Originally Posted by rabantu View Post
    Hi,
    I still have the same errors....
    .
    .
    .
    .
    [ 44.590291] RAMDISK: cramfs filesystem found at block 0
    [ 44.590462] RAMDISK: Loading 55896KiB [1 disk] into ram disk... done.
    [ 46.899335] List of all partitions
    [ 46.899462] No filesystem could mount root, tried: reiserfs ext2
    [ 46.899682] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



    ****************
    Ok. I want to explain the RAMDISK messages. Initially I had 16 disks each 4096KiB. Since, my initrd image is about 54MB, I changed my RAMDISK size to be 64MB and reduced the number of disks from 16 to 1. I did this through menuconfig.
    I am not sure if this is helpful info.

    Thanks for all your help.
    Please someone point me in the right direction.

Page 1 of 3 1 2 3 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
  •