Table des matières

La façon classique

CHROOT

Pour réparer Lilo, notre gestionnaire de boot, ce n'est pas très compliqué.

# mkdir /mnt/linux
# cd /mnt/linux
# mount -w /dev/sdXY(sda6 chez moi) /mnt/linux
# chroot /mnt/linux /bin/bash
# lilo

Pour le cas où une réinstallation de Windows a écrasé votre MBR, c'est encore plus simple : Bootez avec le CD de Zenwalk. Au prompt :

# boot:ata root=/dev/sdxX(vous adaptez bien-sûr) noinitrd ro

Vous pourrez ainsi booter sur votre partition Linux. Une fois dans votre environnement :

# lilo 

ou

# liloconfig

/etc/lilo.conf

Voici un exemple de fichier /etc/lilo.conf avec un dual boot “Zenwalk-Windows”, démarrant sur Zenwalk par défaut.

# LILO configuration file # generated by 'liloconfig' # # Start LILO global section append="resume2=swap:/dev/sda5 splash=silent " boot = /dev/sda bitmap=/boot/splash.bmp bmp-table=234p,348p,1,4 bmp-colors=220,0,,255,220, bmp-timer=539p,396p,220,0, prompt timeout = 50 default = Zenwalk # Override dangerous defaults that rewrite the partition table: change-rules reset # VESA framebuffer console @ 1024x768x64k vga = 791 # Normal VGA console # vga = normal # VESA framebuffer console @ 1024x768x64k # vga=791 # VESA framebuffer console @ 1024x768x32k # vga=790 # VESA framebuffer console @ 1024x768x256 # vga=773 # VESA framebuffer console @ 800x600x64k # vga=788 # VESA framebuffer console @ 800x600x32k # vga=787 # VESA framebuffer console @ 800x600x256 # vga=771 # VESA framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769 # End LILO global section # Windows bootable partition config begins other = /dev/sda1 label = Windows table = /dev/sda # Windows bootable partition config ends # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/sda6 label = Zenwalk initrd = /boot/initrd.splash read-only # Linux bootable partition config ends

La façon Zenwalk

LiloFix

Une manière beaucoup plus simple de réparer le gestionnaire de démarrage Lilo, est d'utiliser LiloFix, l'outil graphique dédié que vous trouverez dans le Zenpanel de Zenwalk Live et qui vous facilitera la vie.