Mkinitrd-cd : mode d'emploi ?

Bonjour,
je me dépatouille en vain depuis un bon moment avec mkinitrd-cd .
Son installation m’a occasionné un remove des discover1*, déjà … hum, et j’ai plus gnome-system-monitor qui fonctionne … :

[code]Package: mkinitrd-cd
Priority: extra
Section: admin
Installed-Size: 512
Maintainer: Rene Mayrhofer rene.mayrhofer@gibraltar.at
Architecture: i386
Source: gibraltar-bootcd
Version: 0.52
Depends: libuclibc0 (>= 0.9.17-1), dosfstools, mtools, syslinux (>= 2.00-1), makedev, gcc, make, discover-data, uclibc-toolchain (>= 0.9.26-1), libuclibc-dev (>= 0.9.26-1)
Recommends: mkisofs
Filename: pool/main/g/gibraltar-bootcd/mkinitrd-cd_0.52_i386.deb
Size: 229756
MD5sum: 7ac993567a7306dbbd985226a1058135
Description: Creates an initrd image for booting from a live CD-ROM or USB device
This is the package used by the Gibraltar project to create the initrd images
used for booting from CD-ROM or USB sticks. The bootable CD-ROMs or USB
mass storage devices are actual live CD-ROMs respective live filesystems.
That is, the root file system is the CD-ROM or an image on the USB device,
ramdisks are the only things needed for operation without a hard disk.
Although a harddisk can be used for e.g. storing log files permanently or
when the machine acts as a proxy server.
.
Given a kernel image and the corresponding modules, it creates a complete
boot image that can be written to floppy or be used as El Torito image for
a bootable CD-ROM. Additionally, it is possible to create an initrd image to
be used on a USB stick (e.g. with syslinux). Upon bootup, the initrd image
will try to locate an ATAPI CD-ROM drive or a USB mass storage device. When
this does not succeed, it auto-probes for SCSI adapters and tries to locate
SCSI drives. It also works when multiple CD-ROM drives are installed in the
system by checking if the inserted CD is the correct one for booting.
.
The package can be of use to developers and packagers who want to create
their own bootable, live Debian CD-ROM or bootable, live Debian USB stick.
It will probably not be of any use to others.

jcode@debian:/etc/xinetd.d$ sudo apt-get install mkinitrd-cd
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Les paquets supplémentaires suivants seront installés :
discover-data dosfstools libuclibc-dev libuclibc0 syslinux uclibc-toolchain
Les paquets suivants seront ENLEVÉS :
discover1 discover1-data libdiscover1
Les NOUVEAUX paquets suivants seront installés :
discover-data dosfstools libuclibc-dev libuclibc0 mkinitrd-cd syslinux uclibc-toolchain
0 mis à jour, 7 nouvellement installés, 3 à enlever et 138 non mis à jour.
Il est nécessaire de prendre 3258ko dans les archives.
Après dépaquetage, 14,3Mo d’espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ?
Réception de : 1 http://ftp.fr.debian.org sarge/main discover-data 2.2005.02.13-1 [244kB]
Réception de : 2 http://ftp.fr.debian.org sarge/main dosfstools 2.11-2 [53,3kB]
Réception de : 3 http://ftp.fr.debian.org sarge/main libuclibc0 0.9.27-1 [352kB]
Réception de : 4 http://ftp.fr.debian.org sarge/main libuclibc-dev 0.9.27-1 [2168kB]
Réception de : 5 http://ftp.fr.debian.org sarge/main syslinux 2.11-0.1 [199kB]
Réception de : 6 http://ftp.fr.debian.org sarge/main uclibc-toolchain 0.9.27-1 [12,6kB]
Réception de : 7 http://ftp.fr.debian.org sarge/main mkinitrd-cd 0.52 [230kB]
3258ko réceptionnés en 10s (312ko/s)
Lecture des champs des paquets… Fait
Lecture de l’état des paquets… Fait
Récupération des rapports de bogue… Fait
Bogues de gravité grave sur dosfstools (-> 2.11-2)
#356273 - dosfstools: [mkfs.vfat] usb format: infinite loop - drains all memory
Résumé :
dosfstools(1 bogue)
Are you sure you want to install/upgrade the above packages? [Y/n/?/…]
(Lecture de la base de données… 119218 fichiers et répertoires déjà installés.)
Suppression de discover1 …
Suppression de libdiscover1 …
Suppression de discover1-data …
Sélection du paquet discover-data précédemment désélectionné.
(Lecture de la base de données… 119150 fichiers et répertoires déjà installés.)[/code]
Je lis dans le README : [quote]I usually simply do
dpkg-deb -X kernel-image-__i386.deb /tmp
mkinitrd-cd /tmp/lib/modules/ /tmp/initrd.img
mkbootimg 1440 /tmp/boot/vmlinuz- /tmp/initrd.img /tmp/boot.img
to get a fully working boot image for the Gibraltar project CD-ROMs.
[/quote] ben bonjour, chez moi c’est pas simply done
Comme j’ai eu des messages d’erreur en utilisant /tmp du style :

[quote]Copying structure to image file … cp: ne peut créer le lien symbolique `/tmp/tmp.TIsOTc7798/usr/i386-uclibc-linux/lib/libc.so’: Aucun espace disponible sur le périphérique[/quote] je me suis dit que j’allais faire le ménage dans /tmp, là, surprise, aprés avoir réussi à suprimer le repertoire /tmp/boot :

debian:/tmp# ls -l /tmp total 3679 drwx------ 3 jcode jcode 1024 2006-08-14 11:57 gconfd-jcode drwx------ 3 root root 1024 2006-08-14 11:57 gconfd-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 keyring-d8gKtb drwxr-xr-x 3 root root 1024 2006-05-27 12:22 lib drwxr-xr-x 2 root root 12288 2006-05-11 01:28 lost+found srwxr-xr-x 1 jcode jcode 0 2006-08-14 11:57 mapping-jcode drwx------ 2 jcode jcode 2048 2006-08-14 17:36 orbit-jcode drwx------ 2 root root 1024 2006-08-14 11:57 orbit-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-eybMRA2441 drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-mPSvrx2441 drwx------ 12 root root 1024 2006-08-14 17:14 tmp.AUueUd7097 drwx------ 12 root root 1024 2006-08-14 17:27 tmp.aYRZMq7420 drwxr-xr-x 13 root root 1024 2006-08-14 17:30 tmp.DfVUkz7696 drwxr-xr-x 13 root root 1024 2006-08-14 17:27 tmp.EYGZcU7419 -rw------- 1 root root 924672 2006-08-14 17:27 tmp.HIkNEt7418 drwx------ 12 root root 1024 2006-08-14 17:34 tmp.iYhIDc7799 -rw------- 1 root root 924672 2006-08-14 17:30 tmp.MVghud7695 -rw------- 1 root root 924672 2006-08-14 17:14 tmp.Nvglmg7095 drwxr-xr-x 2 root root 7168 2006-08-14 15:29 tmp.PetsUn4673 -rw------- 1 root root 924672 2006-08-14 17:34 tmp.rdPTjH7797 drwx------ 12 root root 1024 2006-08-14 17:30 tmp.soRhRt7697 drwxr-xr-x 13 root root 1024 2006-08-14 17:34 tmp.TIsOTc7798 drwxr-xr-x 13 root root 1024 2006-08-14 17:14 tmp.UvbSeS7096 drwxr-xr-x 3 root root 1024 2006-05-27 12:22 usr drwx------ 2 jcode jcode 1024 2006-08-14 11:57 virtual-jcode.nHaGsL -rw------- 1 jcode jcode 8686 2006-08-14 13:07 zmanX229Rp debian:/tmp# rm -rf lib debian:/tmp# rm -rf tmp.* rm: ne peut détruire le répertoire `tmp.DfVUkz7696': Périphérique ou ressource occupé rm: ne peut détruire le répertoire `tmp.EYGZcU7419': Périphérique ou ressource occupé rm: ne peut détruire le répertoire `tmp.PetsUn4673': Périphérique ou ressource occupé rm: ne peut détruire le répertoire `tmp.TIsOTc7798': Périphérique ou ressource occupé rm: ne peut détruire le répertoire `tmp.UvbSeS7096': Périphérique ou ressource occupé debian:/tmp# ls -l total 41 drwx------ 3 jcode jcode 1024 2006-08-14 11:57 gconfd-jcode drwx------ 3 root root 1024 2006-08-14 11:57 gconfd-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 keyring-d8gKtb drwxr-xr-x 2 root root 12288 2006-05-11 01:28 lost+found srwxr-xr-x 1 jcode jcode 0 2006-08-14 11:57 mapping-jcode drwx------ 2 jcode jcode 2048 2006-08-14 17:36 orbit-jcode drwx------ 2 root root 1024 2006-08-14 11:57 orbit-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-eybMRA2441 drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-mPSvrx2441 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.DfVUkz7696 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.EYGZcU7419 drwxr-xr-x 2 root root 7168 2006-08-14 15:29 tmp.PetsUn4673 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.TIsOTc7798 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.UvbSeS7096 drwx------ 2 jcode jcode 1024 2006-08-14 11:57 virtual-jcode.nHaGsL -rw------- 1 jcode jcode 8686 2006-08-14 13:07 zmanX229Rp
Qu’est ce donc que ce périphérique … ?
Aprés différent essais infructueux, je me dis que je vais tout faire dans /home/tmp, là, je suis sur qu’il y a de la place :

debian:/tmp# mkinitrd-cd /home/tmp/lib/modules/2.6.16camiptables /home/tmp/initrd.img full Creating file structure ... done Creating device files ... done Copying modules ... ide-floppy ... skipped loop ... copied paride ... skipped sx8 ... skipped binfmt_aout ... skipped binfmt_misc ... skipped fat ... copied msdos ... skipped ntfs ... skipped reiserfs ... copied vfat ... copied usblp ... skipped usbcore ... copied ehci-hcd ... copied uhci-hcd ... skipped usbhid ... skipped usbkbd ... skipped usbmouse ... skipped ov511 ... skipped pwc ... skipped usb-storage ... copied done The largest module will need 244916 bytes to be unzipped. Creating / copying binaries and libraries ... Installing binaries in temporary file structure ... done Creating config files in temporary file structure ... done Copying uClibc ... done Copying bootup files ... done The image will take 3047 kb (including 339 kb of free space for temp files). Creating image file ... done Copying structure to image file ... done Compressing image file ... done Cleaning up ... done debian:/tmp# ls -l total 951 drwx------ 3 jcode jcode 1024 2006-08-14 11:57 gconfd-jcode drwx------ 3 root root 1024 2006-08-14 11:57 gconfd-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 keyring-d8gKtb drwxr-xr-x 2 root root 12288 2006-05-11 01:28 lost+found srwxr-xr-x 1 jcode jcode 0 2006-08-14 11:57 mapping-jcode drwx------ 2 jcode jcode 2048 2006-08-14 17:36 orbit-jcode drwx------ 2 root root 1024 2006-08-14 11:57 orbit-root drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-eybMRA2441 drwx------ 2 jcode jcode 1024 2006-08-14 11:57 ssh-mPSvrx2441 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.DfVUkz7696 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.EYGZcU7419 drwxr-xr-x 13 root root 1024 2006-08-14 17:42 tmp.oanwLR8111 drwxr-xr-x 2 root root 7168 2006-08-14 15:29 tmp.PetsUn4673 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.TIsOTc7798 drwx------ 12 root root 1024 2006-08-14 17:42 tmp.tTupkI8112 drwxr-xr-x 2 root root 1024 2006-08-14 17:36 tmp.UvbSeS7096 -rw------- 1 root root 924672 2006-08-14 17:42 tmp.ZvpeWR8110 drwx------ 2 jcode jcode 1024 2006-08-14 11:57 virtual-jcode.nHaGsL -rw------- 1 jcode jcode 8686 2006-08-14 13:07 zmanX229Rp debian:/tmp# ls -l /home/tmp total 900 drwxr-xr-x 2 root root 4096 2006-05-27 12:22 boot -rw------- 1 root root 902104 2006-08-14 17:43 initrd.img drwxr-xr-x 3 root root 4096 2006-05-27 12:22 lib drwxr-xr-x 3 root root 4096 2006-05-27 12:22 usr debian:/tmp# mkbootimg 2880 /home/tmp/boot/vmlinuz-2.6.16camiptables /home/tmp/initrd.img /home/tmp/boot.img Creating image file with FAT file system (2880 kB)... done Mounting ... done Copying linux kernel ... done Copying initrd image ... done Copying configuration ... done debian:/tmp# ls -l /home/tmp total 3784 drwxr-xr-x 2 root root 4096 2006-05-27 12:22 boot -rw------- 1 root root 2949120 2006-08-14 17:49 boot.img -rw------- 1 root root 902104 2006-08-14 17:43 initrd.img drwxr-xr-x 3 root root 4096 2006-05-27 12:22 lib drwxr-xr-x 3 root root 4096 2006-05-27 12:22 usr
Bon et maintenant je sais plus quoi faire avec ça … je fais quoi ? si tant est que c’est exploitable … :confused:
Quelqu’un a déjà utilisé mkinitrd-cd et pourrait me dire où le bas blaisse ?
Pourquoi des modules sont skipped ?
ça manque singulièrement de doc ce truc ? aucun how-to sur le net … nada …

hello,

Et bien apres tu grave, tiens un script qui utilise les commandes mkinitrd-cd puis la gravure etc…j’espere que ca va te guider lists.alioth.debian.org/pipermai … 00253.html

Merci stonfi, je vais regarder ça …
Est ce qu’il est possible de booter à partir d’une clé usb … en utilisant l’image que j’ai faite ?
Je me suis lancé la-dedans car je voulais installer debian sur mon vieux pc W 2000 nt, un PII 255 Mhz … et oh surprise, le bios ne reconnait pas une image iso linux soit disant, impossible de lancer l’installe … Bien que je pense que ce que j’ai fait est kifkif, je vais quand même graver l’img biensur …

Solutions connues pour installer debian sur une bécane dont le bios ne sait pas lire une image de boot linux ?
J’ajoute que j’ai eu un pti souci hier soir, que je suppose lié à mes malaxations de /tmp.