Creer CD de demarrage lilo ou grub

bonjour,

j’ai dans l’idée de creer deux CDs de demarrage,un pour debian wheezy et un pour backtrack

l’idée et de ne pas pouvoir(directement) booter sur l’un ou l’autre de mes deux systemes,je voudrais que le demarrage se fasse seulement par un cd ,donc un cd pour “debian” et un cd pour “backtrack”

donc ,un grub(ou lilo) “debian” sur un cd et un grub(ou lilo) “backtrack” sur un autre

si quelqu’un peut me dicter toute l’install…ou bien carrement venir chez moi,un petit café sera offert et peut-etr si c’est reussi quelques petits gateaux :unamused:

merci d’avance!!

ma version de grub:

resultat de fdisk:

[code]root@bt:~# fdisk -l /dev/sda

Disque /dev/sda: 160.0 Go, 160040803840 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0x0000f2fb

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 9957 79973895+ 83 Linux
/dev/sda2 9957 19458 76313601 5 Etendue
/dev/sda5 18665 19458 6369280 82 Linux swap / Solaris
/dev/sda6 9957 18304 67047424 83 Linux
/dev/sda7 18304 18665 2894848 82 Linux swap / Solaris

Les entrées de la table de partitions ne sont pas dans l’ordre du disque
[/code]

resultat de fstab:

[code]root@bt:~# cat /etc/fstab

/etc/fstab: static file system information.

Use ‘blkid -o value -s UUID’ to print the universally unique identifier

for a device; this may be used with UUID= as a more robust way to name

devices that works even if disks are added and removed. See fstab(5).

proc /proc proc nodev,noexec,nosuid 0 0

/ was on /dev/sda6 during installation

UUID=d41ee014-03c0-41cb-9c78-33ab1a2c103b / ext4 errors=remount-ro 0 1

swap was on /dev/sda5 during installation

UUID=6e9b0e3d-8c05-423a-b79f-a317999028f0 none swap sw 0 0

swap was on /dev/sda7 during installation

UUID=db40b018-e400-454e-a33f-e8b98f00b8a4 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
[/code]

info:la version de grub est celle de “backtrack”

Tu récupères une image iso minimaliste de grub.

packages.debian.org/squeeze/grub-rescue-pc

Tu extrais

  • grub-rescue-cdrom.iso: El Torito CDROM image.
    Tu édites son grub.cfg en supprimant les entrées génériques et en inscrivant les entrées référençant explicitement les noyaux et UUIDS propres à l’installation debian.
    Ce grub.cfg sera dès lors lié à cette seule installation.

Tu inséres ce grub.cfg modifié sur l’image iso, soit lignes de commande à base de genisoimage, soit graphique isomaster.

packages.debian.org/squeeze/isomaster

Enfin, tu graves l’image iso modifiée.

bon alors avant de faire une betise je te colle le “grub.cfg” de “backtrack”,celui utilisé en ce moment par le pc

[code] set timeout=10
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

menuentry ‘Ubuntu, with Linux 3.2.6’ --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=’(hd0,6)‘
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux /boot/vmlinuz-3.2.6 root=UUID=d41ee014-03c0-41cb-9c78-33ab1a2c103b ro text splash vga=791
initrd /boot/initrd.img-3.2.6
}
menuentry ‘Ubuntu, with Linux 3.2.6 (recovery mode)’ --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=’(hd0,6)'
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
echo 'Loading Linux 3.2.6 …'
linux /boot/vmlinuz-3.2.6 root=UUID=d41ee014-03c0-41cb-9c78-33ab1a2c103b ro single
echo 'Loading initial ramdisk …'
initrd /boot/initrd.img-3.2.6
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_memtest86+

menuentry “Memory test (memtest86+)” {
insmod ext2
set root=’(hd0,6)‘
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root=’(hd0,6)'
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_os-prober

menuentry “Debian GNU/Linux, avec Linux 3.2.0-3-686-pae (on /dev/sda1)” {
insmod ext2
set root=’(hd0,1)‘
search --no-floppy --fs-uuid --set 147ef358-e0dc-4ca4-85f0-cd241d8b3528
linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=147ef358-e0dc-4ca4-85f0-cd241d8b3528 ro quiet nomodeset nouveau.modeset=0
initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry “Debian GNU/Linux, avec Linux 3.2.0-3-686-pae (mode de dépannage) (on /dev/sda1)” {
insmod ext2
set root=’(hd0,1)'
search --no-floppy --fs-uuid --set 147ef358-e0dc-4ca4-85f0-cd241d8b3528
linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=147ef358-e0dc-4ca4-85f0-cd241d8b3528 ro single nomodeset nouveau.modeset=0
initrd /boot/initrd.img-3.2.0-3-686-pae
}

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom ###[/code]

j’ai donc extrait le grub.cfg du paquet “grub-rescue” que j’ai telecharger
le voici vierge

[code]#

Sample GRUB configuration file

Boot automatically after 30 secs.

set timeout=30

By default, boot the first entry.

set default=0

Fallback to the second entry.

set fallback=1

For booting GNU/Hurd

menuentry “GNU (aka GNU/Hurd)” {
set root=(hd0,1)
multiboot /boot/gnumach.gz root=device:hd0s1
module /hurd/ext2fs.static ext2fs --readonly
–multiboot-command-line=’${kernel-command-line}’
–host-priv-port=’${host-port}’
–device-master-port=’${device-port}’
–exec-server-task=’${exec-task}’ -T typed ‘${root}’
‘$(task-create)’ '$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec ‘$(exec-task=task-create)’
}

For booting GNU/Linux

menuentry “GNU/Linux” {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1
initrd /initrd.img
}

For booting FreeBSD

menuentry “FreeBSD (or GNU/kFreeBSD), direct boot” {
set root=(hd0,1,a)
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
kfreebsd_module /boot/splash.bmp type=splash_image_data
set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
}
menuentry “FreeBSD (or GNU/kFreeBSD), via /boot/loader” {
set root=(hd0,1,a)
kfreebsd /boot/loader
}

For booting NetBSD

menuentry “NetBSD” {
set root=(hd0,1,a)
knetbsd /netbsd
}

For booting OpenBSD

menuentry “OpenBSD” {
set root=(hd0,1,a)
kopenbsd /bsd
}

For booting Microsoft Windows

menuentry “Microsoft Windows” {
set root=(hd0,1)
chainloader +1
}

For booting Memtest86+

menuentry “Memtest86+” {
set root=(hd0,1)
linux16 /memtest86+.bin
}

Change the colors.

menuentry “Change the colors” {
set menu_color_normal=light-green/brown
set menu_color_highlight=red/blue
}[/code]

si tu pouvais me preparer les deux “grub.cfg” …

Salut,

En permettant de ne pas démarrer depuis une disquette ou un cd les développeurs ont voulu boucher une énorme trou de sécurité qui permettait d’introduire un virus de boot par ces intermédiaires sans même avoir besoin de posséder un droit quelconque.
A moins que l’endroit où se trouve l’ordinateur soit “fort knox” et à l’abri des petites mains revenant de l’école tu es en train de rétablir ce gouffre de sécurité :slightly_smiling:

oula!!

est ce qu’il y a des risques si je le fais juste moi perso??

je te poste quand meme les deux grub.conf,tu me dis si il sont juste.

voila pour backtrack

[code]#

Sample GRUB configuration file

Boot automatically after 30 secs.

set timeout=30

By default, boot the first entry.

set default=0

Fallback to the second entry.

set fallback=1

For booting GNU/Hurd

menuentry “GNU (aka GNU/Hurd)” {
set root=(hd0,1)
multiboot /boot/gnumach.gz root=device:hd0s1
module /hurd/ext2fs.static ext2fs --readonly
–multiboot-command-line=’${kernel-command-line}’
–host-priv-port=’${host-port}’
–device-master-port=’${device-port}’
–exec-server-task=’${exec-task}’ -T typed ‘${root}’
‘$(task-create)’ '$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec ‘$(exec-task=task-create)’
}

For booting GNU/Linux

menuentry ‘Ubuntu, with Linux 3.2.6’ --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=’(hd0,6)‘
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux /boot/vmlinuz-3.2.6 root=UUID=d41ee014-03c0-41cb-9c78-33ab1a2c103b ro text splash vga=791
initrd /boot/initrd.img-3.2.6
}
menuentry ‘Ubuntu, with Linux 3.2.6 (recovery mode)’ --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root=’(hd0,6)'
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
echo 'Loading Linux 3.2.6 …'
linux /boot/vmlinuz-3.2.6 root=UUID=d41ee014-03c0-41cb-9c78-33ab1a2c103b ro single
echo 'Loading initial ramdisk …'
initrd /boot/initrd.img-3.2.6
}

For booting Memtest86+

menuentry “Memory test (memtest86+)” {
insmod ext2
set root=’(hd0,6)‘
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root=’(hd0,6)'
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

[/code]

voila pour debian

[code]#

Sample GRUB configuration file

Boot automatically after 30 secs.

set timeout=30

By default, boot the first entry.

set default=0

Fallback to the second entry.

set fallback=1

For booting GNU/Hurd

menuentry “GNU (aka GNU/Hurd)” {
set root=(hd0,1)
multiboot /boot/gnumach.gz root=device:hd0s1
module /hurd/ext2fs.static ext2fs --readonly
–multiboot-command-line=’${kernel-command-line}’
–host-priv-port=’${host-port}’
–device-master-port=’${device-port}’
–exec-server-task=’${exec-task}’ -T typed ‘${root}’
‘$(task-create)’ '$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec ‘$(exec-task=task-create)’
}

For booting GNU/Linux

menuentry “Debian GNU/Linux, avec Linux 3.2.0-3-686-pae (on /dev/sda1)” {
insmod ext2
set root=’(hd0,1)‘
search --no-floppy --fs-uuid --set 147ef358-e0dc-4ca4-85f0-cd241d8b3528
linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=147ef358-e0dc-4ca4-85f0-cd241d8b3528 ro quiet nomodeset nouveau.modeset=0
initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry “Debian GNU/Linux, avec Linux 3.2.0-3-686-pae (mode de dépannage) (on /dev/sda1)” {
insmod ext2
set root=’(hd0,1)'
search --no-floppy --fs-uuid --set 147ef358-e0dc-4ca4-85f0-cd241d8b3528
linux /boot/vmlinuz-3.2.0-3-686-pae root=UUID=147ef358-e0dc-4ca4-85f0-cd241d8b3528 ro single nomodeset nouveau.modeset=0
initrd /boot/initrd.img-3.2.0-3-686-pae
}

For booting Memtest86+

menuentry “Memory test (memtest86+)” {
insmod ext2
set root=’(hd0,6)‘
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root=’(hd0,6)'
search --no-floppy --fs-uuid --set d41ee014-03c0-41cb-9c78-33ab1a2c103b
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

[/code]

[quote=“burty”]oula!!

est ce qu’il y a des risques si je le fais juste moi perso??[/quote]

Personne ne peut approcher de ton ordinateur, je dis bien personne, pas simplement des méchants mais tout enfant fréquentant l’école, toute personne capable de mettre un cd dans son logement et d’appuyer sur “on” ?
Si la réponse est oui ou peut-être tu ne devrais pas faire çà :slightly_smiling:

non non!!

je n’ai pas d’enfants ni de grand mechants sur mes traces,je suis un simple utilisateur perso chez moi…

sinon est ce que les deux “grub.cfg” sont corrects?

bon,le cd ne boote pas…j’aurais due m’en douter…il semble que l’iso creer n’est pas amorcable…normal…securité d’abord

tant pis!!!

je laisse tomber!!!

salut!! :023