OVH Cloud OVH Cloud

no init found error

4 réponses
Avatar
theintangible1
Hi, I tried to build a linux on a extended partition(/mnt/target),
using a redhat linux I already have on the machine. I installed
kernel on /mnt/target and could boot, and also install SysVinit, so I
have a /mnt/target/sbin/init. I don't understand why when it boots, it
says no init found. Any help is appreciated.

Michelle

4 réponses

Avatar
Le Souricier Gris
Hi, I tried to build a linux on a extended partition(/mnt/target),
using a redhat linux I already have on the machine. I installed
kernel on /mnt/target and could boot, and also install SysVinit, so I
have a /mnt/target/sbin/init. I don't understand why when it boots, it
says no init found. Any help is appreciated.

Michelle
Puisque nous sommes dans un forum français, speakons français,

la "seule chose" que fait le noyau après s'être chargé s'est exécuté
/sbin/init qui lit le fichier inittab.

Sur RH, il est utilisé au moment du démarrage un fichier initrd.img
construit par la commande mkinitrd, l'avez vous indiqué dans votre
chargeur de démarrage.

Il me manque pleins d'infos pour répondre ...

Quel est le but ? Un chroot ?
Quel est le contenu de /etc/fstab ?

--
_@°> Eric BERTHOMIER / Le Sourcier Gris
http://lesouriciergris.free.fr http://troll.west.free.fr

Avatar
no_spam
On Wed, 09 Jun 2004 10:50:03 +0200, Le Souricier Gris wrote:

Hi, I tried to build a linux on a extended partition(/mnt/target),
using a redhat linux I already have on the machine. I installed
kernel on /mnt/target and could boot, and also install SysVinit, so I
have a /mnt/target/sbin/init. I don't understand why when it boots, it
says no init found. Any help is appreciated.

Michelle
Puisque nous sommes dans un forum français, speakons français,

la "seule chose" que fait le noyau après s'être chargé s'est exécuté
/sbin/init qui lit le fichier inittab.


Pas tout à fait:
il essaye d'abord la commande passée avec l'argument init=xxx
s'il y en a un puis, dans l'ordre:
/sbin/init
/etc/init
/bin/init
/bin/sh

si ça ne marche pas, alors que /sbin/init est bien présent sur la
partition target, c'est sans doute qu'il n'est pas executable
ou bien qu'il manque des librairies ou le loader dynamique
(/lib/ld-linux.so), si init n'a pas été compilé en statique.


Avatar
Le Souricier Gris
On Wed, 09 Jun 2004 10:50:03 +0200, Le Souricier Gris wrote:



Hi, I tried to build a linux on a extended partition(/mnt/target),
using a redhat linux I already have on the machine. I installed
kernel on /mnt/target and could boot, and also install SysVinit, so I
have a /mnt/target/sbin/init. I don't understand why when it boots, it
says no init found. Any help is appreciated.

Michelle


Puisque nous sommes dans un forum français, speakons français,
la "seule chose" que fait le noyau après s'être chargé s'est exécuté
/sbin/init qui lit le fichier inittab.



Pas tout à fait:
il essaye d'abord la commande passée avec l'argument init=xxx
s'il y en a un puis, dans l'ordre:
/sbin/init
/etc/init
/bin/init
/bin/sh

si ça ne marche pas, alors que /sbin/init est bien présent sur la
partition target, c'est sans doute qu'il n'est pas executable
ou bien qu'il manque des librairies ou le loader dynamique
(/lib/ld-linux.so), si init n'a pas été compilé en statique.

Je serai intéressé de savoir où tu as pu pêché ces informations, un site

Web ou la doc du noyau ?

Eric

--
_@°> Eric BERTHOMIER / Le Sourcier Gris
http://lesouriciergris.free.fr http://troll.west.free.fr



Avatar
no_spam
On Wed, 09 Jun 2004 15:51:06 +0200, Le Souricier Gris wrote:

On Wed, 09 Jun 2004 10:50:03 +0200, Le Souricier Gris wrote:



Hi, I tried to build a linux on a extended partition(/mnt/target),
using a redhat linux I already have on the machine. I installed
kernel on /mnt/target and could boot, and also install SysVinit, so I
have a /mnt/target/sbin/init. I don't understand why when it boots, it
says no init found. Any help is appreciated.

Michelle


Puisque nous sommes dans un forum français, speakons français,
la "seule chose" que fait le noyau après s'être chargé s'est exécuté
/sbin/init qui lit le fichier inittab.



Pas tout à fait:
il essaye d'abord la commande passée avec l'argument init=xxx
s'il y en a un puis, dans l'ordre:
/sbin/init
/etc/init
/bin/init
/bin/sh

si ça ne marche pas, alors que /sbin/init est bien présent sur la
partition target, c'est sans doute qu'il n'est pas executable
ou bien qu'il manque des librairies ou le loader dynamique
(/lib/ld-linux.so), si init n'a pas été compilé en statique.

Je serai intéressé de savoir où tu as pu pêché ces informations, un site

Web ou la doc du noyau ?


Dans la doc en C du noyau :-)
/usr/src/linux/init/main.c
à la fin de la fonction init()