PenguinPenguinValid XHTML 1.0 Strict Valid CSS! étiqueté grâce à l'ICRALinux

La liberté.

Pour gérer 3 distributions, Mandrake 10.1, Mandrake 10.0 et debian sur un seul disque dur, voici ma configuration sous Mandrake 10.0 .


Mon fstab sous Mandrake 10.0 :

/dev/hda9 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda5 /home ext3 noatime 1 2
/dev/hda6 /mnt/debian ext3 noatime 1 2
/dev/hda1 /mnt/hda1 ext3 noatime 1 2
/dev/hda8 /mnt/mdk10.1 ext3 noatime 1 2
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0

Comme j'ai pris une dénommination compréhensible, on voit que mandrake 10.0 est sur /dev/hda9, mdk 10.1 sur /dev/hda8 et debian sur /dev/hda6


lilo

Mon /etc/lilo.conf, le fichier de configuration de lilo :

boot=/dev/hda
map=/boot/map
default="mdk_10.0"
keytable=/boot/fr-latin1.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz_10.0
  label="mdk_10.0"
  root=/dev/hda9
  initrd=/boot/initrd_10.0.img
  append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
  vga=788
  read-only
image=/mnt/mdk10.1/boot/vmlinuz_10.1
  label="mdk10.1"
  root=/dev/hda8
  initrd=/boot/initrd_10.1.img
  append="devfs=nomount acpi=ht resume=/dev/hda7 splash=silent"
  vga=788
  read-only
image=/mnt/debian/boot/vmlinuz_deb
  label="debian"
  root=/dev/hda6
  initrd=/boot/initrd_deb.img
  append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
  vga=788
  read-only
image=/boot/vmlinuz_10.0
  label="linux-nonfb"
  root=/dev/hda9
  initrd=/boot/initrd_10.0.img
  append="devfs=mount acpi=ht resume=/dev/hda7"
  read-only
image=/boot/vmlinuz_10.0
  label="failsafe"
  root=/dev/hda9
  initrd=/boot/initrd_10.0.img
  append="failsafe acpi=ht resume=/dev/hda7 devfs=nomount"
  read-only
#other=/dev/fd0
#       label="floppy"
#       unsafe

Je dois me référer aux fichiers avec leurs emplacements exact sous Mandrake 10.0.


Mon répertoire /boot :

boot.0300
config -> config-2.6.3-19mdk
config-2.6.3-19mdk
config-2.6.3-7mdk
diag1.img
diag2.img
fr-latin1.klt
initrd-2.6.3-19mdk.img
initrd_10.1.img -> /mnt/mdk10.1/boot/initrd_10.1.img
initrd-2.6.3-19mdk.img
initrd-2.6.3-7mdk.img
initrd_deb.img -> /mnt/debian/boot/initrd_deb.img
kernel.h -> /boot/kernel.h-2.6.3-19mdk
kernel.h-2.6.3-19mdk
kernel.h-2.6.3-7mdk
map
message -> message-graphic
message-graphic
message-text
System.map -> System.map-2.6.3-19mdk
System.map-2.6.3-19mdk
System.map-2.6.3-7mdk
vmlinuz_10.0 -> vmlinuz-2.6.3-19mdk
vmlinuz_10.1 -> /mnt/mdk10.1/boot/vmlinuz_10.1
vmlinuz-2.6.3-19mdk
vmlinuz-2.6.3-7mdk
vmlinuz_deb -> /mnt/debian/boot/vmlinuz_deb

J'ai été obligé d'avoir dans mon répertoire /boot les entrées utilisées par lilo pour toutes mes distributions aux mêmes emplacements que pour les autres distributions. J'ai donc créé des liens symboliques comme par exemple : "ln -s /mnt/debian/boot/initrd_deb.img ."

A chanque modification du fichier de configuration de lilo, on doit relancer lilo afin de prendre en compte les modifications.


Grub

Maintenant grub, le principal intérêt de grub, c'est que lorsqu'on modifie sa configuration, on a juste besoin de modifier son fichier de configuration, alors que lilo necessite l'exécution du programe lilo.

Son fichier de configuration est /boot/grub/menu.lst, en voici un avec Linux et windows :

# menu.lstd /usr/share/doc/grub-doc/.
default		0
timeout		5
# Pretty colours
color cyan/blue white/blue

title		Debian GNU/Linux, kernel 2.6.8-1-k7 
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.8-1-k7 root=/dev/hda6 ro 
initrd		/boot/initrd.img-2.6.8-1-k7
savedefault
boot

title		Debian GNU/Linux, kernel 2.6.8-1-k7 (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.8-1-k7 root=/dev/hda6 ro single
initrd		/boot/initrd.img-2.6.8-1-k7
savedefault
boot

title		Debian GNU/Linux, kernel 2.4.27-1-386 
root		(hd0,5)
kernel		/boot/vmlinuz-2.4.27-1-386 root=/dev/hda6 ro 
initrd		/boot/initrd.img-2.4.27-1-386
savedefault
boot

title		Debian GNU/Linux, kernel 2.4.27-1-386 (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.4.27-1-386 root=/dev/hda6 ro single
initrd		/boot/initrd.img-2.4.27-1-386
savedefault
boot

title           Debian GNU/Linux
root            (hd0,5)
kernel          /boot/vmlinuz_deb.img root=/dev/hda6 ro
initrd          /boot/initrd_deb.img
savedefault
boot

title           Mandrake 10.0
root            (hd0,8)
kernel          /boot/vmlinuz_10.0 root=/dev/hda9 ro
initrd          /boot/initrd_10.0.img
savedefault
boot

title           Mandrake 10.1
root            (hd0,7)
kernel          /boot/vmlinuz_10.1 root=/dev/hda8 ro
initrd          /boot/initrd_10.1.img
savedefault
boot

### meme s'il n'y en a pas sur mon PC###

title           Micro$oft Window$ sur 1er DD
root            (hd0,0)
savedefault # pas toujours utile
makeactive  # pas toujours utile
chainloader     +1

title           Micro$oft Window$ sur 2nd DD
map (hd0) (hd1)
map (hd1) (hd0)
root            (hd0,0)
savedefault
makeactive
chainloader     +1

Attention debian le modifie à chaque réinstallation de noyau...

Installation de Grub :

# grub
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.95  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (+ tabulation donne
grub> root (hd0, + tabutation
 Possible partitions are:
   Partition num: 0,  Filesystem type is fat, partition type 0xb
   Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 5,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 6,  Filesystem type unknown, partition type 0x82
   Partition num: 7,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,4) // j'ai grub sur ma debian : hda5

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,4)/boot/grub/stage2
                                             /boot/grub/menu.lst"... succeeded
Done.

grub> quit
#

Depuis que j'ai testé grub, j'ai laissé tomber lilo qui est bien quand on a un seul système.

A Troumad, Web-Master, Jeux de Rôle, sectes, mathématiques, religion Mes pages php que vous avez vues.

La UNE

COOonjugaison
Un fichier Calc (LibreOffice) pour les verbes français

Mon cours
installation de serveurs sous Linux (format OOo2).

NO iPATENTS
ne laissons Microsoft faire le monde