initrd n'est pas obligatoire ... cela permet surtout de démarrer plus vite (et
encore!)
Voici un exemple de commande à lancer dans /bott
mkinitrd /boot/initrd-2.4.22-26mdkcustom.img 2.4.22-26mdkcustom
> Message du 29/01/04 23:30
> De : Olivier Depoix <oliveded@xxxxxxxxxx>
> A : 'confirme@xxxxxxxxxxxxxxxxxx' <confirme@xxxxxxxxxxxxxxxxxx>
> Copie à :
> Objet : [Confirme] compilation et installation du kernel 2.4.22-21mdk
>
> Bonjour,
>
> Apres installation des sources du kernel 2.1.22-21mdk je me suis lance sur
> sa compilation avec :
>
> make dep
> make clean bzImage modules
> make modules_install
>
> ( en suivant la doc Mandrake 9.2 )
>
> et jusque la tout va bien.
>
> La ou ca plante, c'est au lancement de
>
> make install
>
> quand on arrive a la creation de l'image de initrd ( avec mkinitrd ) le
> systeme cherche un "loopback device" ( /dev/loop#) qu'il ne trouve pas (
> c'est sur puisqu'il n'y est pas , j'ai verifie ).
>
> Est-ce que quelqu'un sait ce qu'est ce "loopback device" et comment faire
> pour generer l'image de initrd ?
>
> Voila le resultat de mkinitrd ( avec l'option -v ) :
>
> [root@localhost boot]# /sbin/mkinitrd -v
> /boot/initrd-2.4.22-21mdkcustom.img 2.4.22-21mdkcustom
> Looking for deps of module ide-disk
> Looking for deps of module ext3
> jbd
> Looking for deps of module jbd
> Using modules: ./kernel/fs/jbd/jbd.o ./kernel/fs/ext3/ext3.o
> Using /root/tmp as temporary directory.
> /sbin/nash -> /root/tmp/initrd.AH69n1/bin/nash
> /sbin/insmod-DIET -> /root/tmp/initrd.AH69n1/bin/insmod
> `/lib/modules/2.4.22-21mdkcustom/./kernel/fs/jbd/jbd.o' ->
> `/root/tmp/initrd.AH69n1/lib/jbd.o'
> `/lib/modules/2.4.22-21mdkcustom/./kernel/fs/ext3/ext3.o' ->
> `/root/tmp/initrd.AH69n1/lib/ext3.o'
> Loading module jbd.o
> Loading module ext3.o
> Contents of RCFILE:
> #!/bin/nash
>
> echo "Loading jbd.o module"
> insmod /lib/jbd.o
> echo "Loading ext3.o module"
> insmod /lib/ext3.o
> echo Mounting /proc filesystem
> mount -t proc /proc /proc
> echo Creating root device
> mkrootdev /dev/root
> echo 0x0100 > /proc/sys/kernel/real-root-dev
> echo Mounting root filesystem
> mount -o defaults --ro -t ext3 /dev/root /sysroot
> pivot_root /sysroot /sysroot/initrd
> echo Remounting devfs at correct place if necessary
> handledevfs
> umount /initrd/proc
> Creating filesystem with size 384KB and 44 inodes
> mount: ne peut trouver aucun peripherique /dev/loop#
> Can't get a loopback device
>
> O. Depoix
>
>
>
>
> >
> [ message.footer (0.1 Ko) ]
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com"
|