Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
I've built my own kernel, set up everything as usual (note i just installed Debian Etch RC 2), and i reboot, as usual... And i get this unusual error T_T ...
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Question Kernel Panic: Invalid or unsupported executable format

    I've built my own kernel, set up everything as usual (note i just installed Debian Etch RC 2), and i reboot, as usual... And i get this unusual error T_T says something about it doesnt knows the devfs filesystem and tells me:

    Kernel panic: Invalid or unsupported executable format

    I have no idea what this could be :S and btw i don't know if i'm telling all the necessary information... anybody takes the risk of helpin me? T_T thanks!

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Are you getting the error in grub or after it is actually loading?
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Wink Good question

    Yay, good question. Nop, it happens after grub, while it's loading; grub works just fine... it also mentions sth about /dev/console not found... I've searched and some1 said to execute the command: MAKEDEV console - it didn't work btw =P

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Arrow More detailed info!

    Yay, i took a snapshot of the problem, but i'll transcript the lastest lines anyways for ppl to be able to find this thread on future searches =):

    Code:
    mount: unknown filesystem type 'devfs'
    SCSI subsystem initialized
    umount: devfs: not mounted
    mount: unknown filesystem type 'devfs'
    NTFS driver 2.1.27 [Flags: R/W MODULE]
    umount: devfs: not mounted
    pivot_root: No such file or directory
    /sbin/init: 432: cannot open dev/console: No such file
    Kernel panic - not syncing: Attempted to kill init!
    The full log would be here =P:


    Anyways i think i've copied the most important stuff.

    Thanks for the help =)

  5. #5
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Did you recompile the kernel with devfs enabled? 2.6 uses udev instead....

    Do you still have the old kernel installed? Can you boot with that?
    First, try adding this to your kernel line devfs=nomount

    If that doesn't work, use a live cd or rescue cd and
    Code:
    cd /dev
    mknod -m 660 console c 5 1
    mknod -m 660 null c 1 3
    http://webpages.charter.net/decibels....html#consnull
    Brilliant Mediocrity - Making Failure Look Good

  6. #6
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Question Course

    course, i never never take my base kernel out of grub.

    btw i have no idea where you want me to edit the kernel xD i mean, so i could add the devfs=nomount thingy... and i've no idea what devfs is xD i just did make menuconfig as always when setting up my own kernel... anyways what's best thing to do?

  7. #7
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    you need to edit grub. In most cases it will be at
    Code:
    /boot/grub/menu.lst
    Near the bottom of the file there will be something that looks like this (this is mine)
    Code:
    title           Debian GNU/Linux, kernel 2.6.18-4-k7
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda1 ro 
    initrd          /boot/initrd.img-2.6.18-4-k7
    savedefault
    make the 2nd line into kernel /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda1 ro devfs=nomount

    Just make sure it is for the kernel you made
    Brilliant Mediocrity - Making Failure Look Good

  8. #8
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Unhappy aw

    nop... that won't work... all errors are same and has same kernel panic =/ nothin changed... yes, i've put it on the right place, i'm stupid but not that much xD here's my kernel at grub

    Code:
    title		MyDebian Linux, kernel 2.6.19.7
    root		(hd0,4)
    kernel		/boot/vmlinuz-2.6.19.7 root=/dev/sda5 ro devfs=nomount
    initrd		/boot/initrd.img-2.6.19.7
    savedefault
    any other trick on mind?

  9. #9
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    what number kernel was installed by debian by default?
    Brilliant Mediocrity - Making Failure Look Good

  10. #10
    Just Joined!
    Join Date
    Jul 2006
    Location
    Rosario, Argentina
    Posts
    55

    Post

    copied =P

    Code:
    title		Debian GNU/Linux, kernel 2.6.18-4-686
    root		(hd0,4)
    kernel		/boot/vmlinuz-2.6.18-4-686 root=/dev/sda5 ro 
    initrd		/boot/initrd.img-2.6.18-4-686
    savedefault
    i got Pentium 4 and SATA hd =P

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
  •