BOOT USB

De TwisterWiki
Aller à : navigation, rechercher

Installer grub

  • Grub 1
  • Grub 2
grub-install --force --no-floppy --root-directory=${mountpoint} /dev/sdb
cp /boot/grub/grub.cfg ${mountpoint}/boot/grub/grub.cfg

Ou trouver les fichiers nécessaires

Pour l'installation de debian

http://archive.debian.org/debian-archive/debian/dists/Debian-5.0/main/installer-amd64/current/images/hd-media/
http://archive.debian.org/debian-archive/debian/dists/Debian-5.0/main/installer-i386/current/images/hd-media

http://ftp.fr.debian.org/debian/dists/squeeze/main/installer-i386/current/images/hd-media
http://ftp.fr.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/hd-media

Pour sysrescuecd

http://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/
  • Il faut monter l'iso téléchargée puis copier sur la clé les fichiers suivants :
isolinux/rescue64
isolinux/rescuecd
isolinux/initram.igz
sysrcd.dat
sysrcd.md5

Arborescence

/debian-5010-amd64-netinst.iso
/debian-5010-i386-netinst.iso
/debian-6.0.5-amd64-netinst.iso
/debian-6.0.5-i386-netinst.iso
/sysrcd.dat
/sysrcd.md5
/boot
-----/grub
-----/lenny
-----------/installer-amd64
---------------------------/initrd.gz
---------------------------/vmlinuz
--------------------------/boot.img.gz
-----------/installer-x86
--------------------------/initrd.gz
--------------------------/vmlinuz
--------------------------/boot.img.gz
-----/squeeze
-----------/installer-amd64
--------------------------/initrd.gz
--------------------------/vmlinuz
--------------------------/boot.img.gz
-----------/installer-x86
--------------------------/initrd.gz
--------------------------/vmlinuz
--------------------------/boot.img.gz
/images
-------/freedos.img
-------/memdisk
-------/memtest
/sysrescuecd
------------/initram.igz
------------/rescue64
------------/rescuecd

Configuration de grub

Grub 2

  • contenu de grub.cfg
menuentry "Squeeze 64 bits" {
  insmod loopback
  insmod iso9660
  insmod ext2
  set root=(hd0,2)
  loopback loop /debian-6.0.5-amd64-netinst.iso
  echo 'Chargement du noyau linux ...'
  linux /squeeze/installer-amd64/vmlinuz boot=/squeeze/installer-amd64 iso-scan/filename=/debian-6.0.5-amd64-netinst.iso noeject noprompt
  echo 'Chargement initrd'
  initrd /squeeze/installer-amd64/initrd.gz
}
menuentry "Squeeze 32 bits" {
  insmod loopback
  insmod iso9660
  insmod ext2
  set root=(hd0,2)
  loopback loop /debian-6.0.5-i386-netinst.iso
  echo 'Chargement du noyau linux ...'
  linux /squeeze/installer-i386/vmlinuz boot=/squeeze/installer-i386/ iso-scan/filename=/debian-6.0.5-i386-netinst.iso noeject noprompt
  echo 'Chargement initrd'
  initrd /squeeze/installer-i386/initrd.gz
}
menuentry "Lenny 64 bits" {
  insmod loopback
  insmod iso9660
  insmod ext2
  set root=(hd0,2)
  loopback loop /debian-5010-amd64-netinst.iso
  echo 'Chargement du noyau linux ...'
  linux /lenny/installer-amd64/vmlinuz boot=lennny/installer-amd64 iso-scan/filename=/debian-5010-amd64-netinst.iso noeject noprompt
  echo 'Chargement initrd'
  initrd /lenny/installer-amd64/initrd.gz
}
menuentry "Lenny 32 bits" {
  insmod loopback
  insmod iso9660
  insmod ext2
  set root=(hd0,2)
  loopback loop /debian-5010-i386-netinst.iso
  echo 'Chargement du noyau linux ...'
  linux /lenny/installer-i386/vmlinuz boot=/lenny/installer-i386 iso-scan/filename=/debian-5010-i386-netinst.iso noeject noprompt
  echo 'Chargement initrd'
  initrd /lenny/installer-i386/initrd.gz
}

Grub 1

  • contenu de menu.lst
title install-lenny-amd64 initrd=/boot/lenny_amd64/initrd.gz ramdisk_size=10242 root=/dev/rd/0 devfs=mount,dall rw priority=low quiet
kernel /boot/lenny_amd64/vmlinuz
initrd /boot/lenny_amd64/initrd.gz

title install-lenny-x86 initrd=/boot/lenny_x86/initrd.gz ramdisk_size=10242 root=/dev/rd/0 devfs=mount,dall rw priority=low quiet
kernel /boot/lenny_x86/vmlinuz
initrd /boot/lenny_x86/initrd.gz

title install-squeezy-amd64 initrd=/boot/squeezy_amd64/initrd.gz ramdisk_size=10242 root=/dev/rd/0 devfs=mount,dall rw priority=low quiet
kernel /boot/squeezy_amd64/vmlinuz
initrd /boot/squeezy_amd64/initrd.gz

title install-squeezy-x86 initrd=/boot/squeezy_x86/initrd.gz ramdisk_size=10242 root=/dev/rd/0 devfs=mount,dall rw priority=low quiet
kernel /boot/squeezy_x86/vmlinuz
initrd /boot/squeezy_x86/initrd.gz

title SysRescueCD i386
kernel /sysrescuecd/rescuecd setkmap=fr
initrd=/sysrescuecd/initram.igz

title SysRescueCD amd64
kernel /sysrescuecd/rescue64 setkmap=fr
initrd=/sysrescuecd/initram.igz

title FreeDOS
kernel /images/memdisk
initrd=/images/freedos.img

title Memtest86+
kernel /images/memtest