• # Ça marche avec initrd

    Posté par . En réponse au message [Terminal] Booter sur un disque USB. Évalué à 2.

    > Mais après plusieurs tests je me suis rendu compte que ce n'etait
    > "pas possible" avec un partition root qui est sur le disque USB...

    Ah ? C'est pourtant ce que j'ai fait. Système entier sur disque dur USB (pour avoir un système de sauvetage en cas de pb), qui boote un kernel standard (package debian 2.6.8) avec initrd. Le tout est de bien configurer les fichiers de /etc/mkinitrd pour que initrd lance bien les modules USB dès le début. Ça me semble quand même moins sauvage que ce patch... et pas besoin de recompil.

    Il existe aussi le package mkinitrd-cd qui contient des scripts permettant de faire un initrd specialement dédié aux CD/disques USB:


    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.