kernel panic: no init found - Setup

This is a discussion on kernel panic: no init found - Setup ; Hi, I partitioned my disk and install RH 9.0 with kernel 2.4.20-8. Then ,I compiled my kernel with 2.4.20, and I make disk partition like this: ļϵͳ % ص /dev/hdc12 2.9G 1.3G 1.5G 46% / /dev/hdc7 487M ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: kernel panic: no init found

  1. kernel panic: no init found

    Hi, I partitioned my disk and install RH 9.0 with kernel 2.4.20-8.
    Then ,I compiled my kernel with 2.4.20, and I make disk partition like
    this:
    ļϵͳ % ص
    /dev/hdc12 2.9G 1.3G 1.5G 46% /
    /dev/hdc7 487M 15M 447M 4% /boot
    /dev/hdc11 2.9G 33M 2.8G 2% /home
    none 251M 0 251M 0% /dev/shm
    /dev/hdc9 4.9G 1.2G 3.4G 27% /usr
    /dev/hdc10 2.9G 33M 2.8G 2% /usr/local
    /dev/hdc8 4.9G 52M 4.6G 2% /var

    my /etc/fstab like :
    LABEL=/1 / ext3
    defaults 1 1
    LABEL=/boot /boot ext3
    defaults 1 2
    none /dev/pts devpts
    gid=5,mode=620 0 0
    LABEL=/home /home ext3
    defaults 1 2
    none /proc proc
    defaults 0 0
    none /dev/shm tmpfs
    defaults 0 0
    LABEL=/usr /usr ext3
    defaults 1 2
    LABEL=/usr/local /usr/local ext3
    defaults 1 2
    LABEL=/var /var ext3
    defaults 1 2
    /dev/hdc6 swap swap
    defaults 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660
    noauto,owner,kudzu,ro 0 0

    my /etc/grub.conf like:
    title Red Hat Linux (2.4.20-8)
    root (hd0,6)
    kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1
    initrd /initrd-2.4.20-8.img
    title Mach (2.4.20)
    root (hd0,6)
    kernel /vmlinuz-2.4.20 root=/dev/hdc7 ramdisk_size=12000

    title DOS
    rootnoverify (hd0,0)
    chainloader +1

    I did not make initrd for Mach, since I setup machine successfully on
    other PC.

    When I restart , It gives "Kernel panic: no init found" error. But
    before the sentence , I cannot found anything abnormal.

  2. Re: kernel panic: no init found

    On Dec 27, 12:33*pm, Jiancong wrote:
    > Hi, I partitioned my disk and install RH 9.0 with kernel 2.4.20-8.
    > Then ,I compiled my kernel with 2.4.20, and I make disk partition like
    > this:
    > ļϵͳ * * * * * * * * % ص
    > /dev/hdc12 * * * * * *2.9G *1.3G *1.5G *46% /
    > /dev/hdc7 * * * * * * 487M * 15M *447M * 4% /boot
    > /dev/hdc11 * * * * * *2.9G * 33M *2.8G * 2% /home
    > none * * * * * * * * *251M * * 0 *251M * 0% /dev/shm
    > /dev/hdc9 * * * * * * 4.9G *1.2G *3.4G *27% /usr
    > /dev/hdc10 * * * * * *2.9G * 33M *2.8G * 2% /usr/local
    > /dev/hdc8 * * * * * * 4.9G * 52M *4.6G * 2% /var
    >
    > my /etc/fstab like :
    > LABEL=/1 * * * * * * * */ * * * * * * * * * * * ext3
    > defaults * * * *1 1
    > LABEL=/boot * * * * * * /boot * * * * * * * * * ext3
    > defaults * * * *1 2
    > none * * * * * * * * * */dev/pts * * * * * * * *devpts
    > gid=5,mode=620 *0 0
    > LABEL=/home * * * * * * /home * * * * * * * * * ext3
    > defaults * * * *1 2
    > none * * * * * * * * * */proc * * * * * * * * * proc
    > defaults * * * *0 0
    > none * * * * * * * * * */dev/shm * * * * * * * *tmpfs
    > defaults * * * *0 0
    > LABEL=/usr * * * * * * */usr * * * * * * * * * *ext3
    > defaults * * * *1 2
    > LABEL=/usr/local * * * */usr/local * * * * * * *ext3
    > defaults * * * *1 2
    > LABEL=/var * * * * * * */var * * * * * * * * * *ext3
    > defaults * * * *1 2
    > /dev/hdc6 * * * * * * * swap * * * * * * * ** *swap
    > defaults * * * *0 0
    > /dev/cdrom * * * * * * */mnt/cdrom * * * * * * *udf,iso9660
    > noauto,owner,kudzu,ro 0 0
    >
    > my /etc/grub.conf like:
    > title Red Hat Linux (2.4.20-8)
    > * * * * root (hd0,6)
    > * * * * kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1
    > * * * * initrd /initrd-2.4.20-8.img
    > title Mach (2.4.20)
    > * * * * root (hd0,6)
    > * * * * kernel /vmlinuz-2.4.20 root=/dev/hdc7 ramdisk_size=12000
    >
    > title DOS
    > * * * * rootnoverify (hd0,0)
    > * * * * chainloader +1
    >
    > I did not make initrd for Mach, since I setup machine successfully on
    > other PC.
    >
    > When I restart , It gives "Kernel panic: no init found" error. But
    > before the sentence , I cannot found anything abnormal.


    I modify /etc/grub.conf like this and it works.
    title Mach (2.4.20)
    root (hd0,6)
    kernel /vmlinuz-2.4.20 root=/dev/hdc12 ramdisk_size=12000

  3. Re: kernel panic: no init found

    In comp.os.linux.setup, Jiancong

    wrote
    on Wed, 26 Dec 2007 20:59:03 -0800 (PST)
    :
    > On Dec 27, 12:33*pm, Jiancong wrote:
    >> Hi, I partitioned my disk and install RH 9.0 with kernel 2.4.20-8.
    >> Then ,I compiled my kernel with 2.4.20, and I make disk partition like
    >> this:
    >> ļϵͳ * * * * * * * * % ص
    >> /dev/hdc12 * * * * * *2.9G *1.3G *1.5G *46% /
    >> /dev/hdc7 * * * * * * 487M * 15M *447M * 4% /boot
    >> /dev/hdc11 * * * * * *2.9G * 33M *2.8G * 2% /home
    >> none * * * * * * * * *251M * * 0 *251M * 0% /dev/shm
    >> /dev/hdc9 * * * * * * 4.9G *1.2G *3.4G *27% /usr
    >> /dev/hdc10 * * * * * *2.9G * 33M *2.8G * 2% /usr/local
    >> /dev/hdc8 * * * * * * 4.9G * 52M *4.6G * 2% /var
    >>
    >> my /etc/fstab like :
    >> LABEL=/1 * * * * * * * */ * * * * * * * * * * * ext3
    >> defaults * * * *1 1
    >> LABEL=/boot * * * * * * /boot * * * * * * * * * ext3
    >> defaults * * * *1 2
    >> none * * * * * * * * * */dev/pts * * * * * * * *devpts
    >> gid=5,mode=620 *0 0
    >> LABEL=/home * * * * * * /home * * * * * * * * * ext3
    >> defaults * * * *1 2
    >> none * * * * * * * * * */proc * * * * * * * * * proc
    >> defaults * * * *0 0
    >> none * * * * * * * * * */dev/shm * * * * * * * *tmpfs
    >> defaults * * * *0 0
    >> LABEL=/usr * * * * * * */usr * * * * * * * * * *ext3
    >> defaults * * * *1 2
    >> LABEL=/usr/local * * * */usr/local * * * * * * *ext3
    >> defaults * * * *1 2
    >> LABEL=/var * * * * * * */var * * * * * * * * * *ext3
    >> defaults * * * *1 2
    >> /dev/hdc6 * * * * * * * swap * * * * * * * * * *swap
    >> defaults * * * *0 0
    >> /dev/cdrom * * * * * * */mnt/cdrom * * * * * * *udf,iso9660
    >> noauto,owner,kudzu,ro 0 0
    >>
    >> my /etc/grub.conf like:
    >> title Red Hat Linux (2.4.20-8)
    >> * * * * root (hd0,6)
    >> * * * * kernel /vmlinuz-2.4.20-8 ro root=LABEL=/1
    >> * * * * initrd /initrd-2.4.20-8.img
    >> title Mach (2.4.20)
    >> * * * * root (hd0,6)
    >> * * * * kernel /vmlinuz-2.4.20 root=/dev/hdc7 ramdisk_size=12000
    >>
    >> title DOS
    >> * * * * rootnoverify (hd0,0)
    >> * * * * chainloader +1
    >>
    >> I did not make initrd for Mach, since I setup machine successfully on
    >> other PC.
    >>
    >> When I restart , It gives "Kernel panic: no init found" error. But
    >> before the sentence , I cannot found anything abnormal.

    >
    > I modify /etc/grub.conf like this and it works.
    > title Mach (2.4.20)
    > root (hd0,6)
    > kernel /vmlinuz-2.4.20 root=/dev/hdc12 ramdisk_size=12000


    That, as it turns out, is the correct fix. The *boot* volume (/boot in
    your /etc/fstab) is where the kernel resides, but the *root* is the root
    of the entire directory tree. Of course /etc/init doesn't exist on
    /dev/hdc7, which is what linux was trying to look for with root=/dev/hdc7.

    You might also see

    kernel /vmlinuz-2.4.20 root=/dev/ram real_root=/dev/hdc12 ramdisk_size=12000
    initrd /initramfs-2.4.20

    or some such in your instructions. In this case root=
    is referring to a ramdisk, which has scripts to pick up
    the real root later. The distinctions are a bit subtle.

    --
    #191, ewill3@earthlink.net
    Useless C/C++ Programming Idea #2239120:
    void f(char *p) {char *q = p; strcpy(p,q); }

    --
    Posted via a free Usenet account from http://www.teranews.com


+ Reply to Thread