Comment configurer grub pour lancer mon xp a partir de knoppix ?

Ah ouais…donc le lecteur CD c’est hdc :smiley:

OK. ptet que ton windows est bousillé?

non, il fonctionne correctement, j’ai désactivé le 1er disque où se trouve knoppix et windows démarre normalement

voici ce que me donne cfdisk:

cfdisk 2.12

                       Unité de disque: /dev/hdd
                    Size: 20576747520 bytes, 20.5 GB
          Heads: 255   Sectors per Track: 63   Cylinders: 2501

Nom         Fanions    Part Type  Type SF          [Étiq.]        Size (MB)

hdd1        Amorce      Primaire  W95 FAT32 (LBA)                  10487,24
                Pri/Log     Espace libre                                      10084,20










 [Amorçable] [Détruire]  [  Aide  ]  [Maximiser] [Afficher]
 [Quitter ]  [  Type  ]  [ Unités ]  [ Écrire ]

         Basculer le fanion d'amorce pour la partition courante

on avance un peu, mais windows ne démarre toujours pas!

fais voir ton lilo.conf histoire qu’on voie :smiley:

vga=791

/etc/lilo.conf - See: lilo(8)' andlilo.conf(5)’,

--------------- install-mbr(8)',/usr/share/doc/lilo/’,

and `/usr/share/doc/mbr/’.

±--------------------------------------------------------------+

| !! Reminder !! |

| |

| Don’t forget to run `lilo’ after you make changes to this |

| conffile, `/boot/bootmess.txt’, or install a new kernel. The |

| computer will most likely fail to boot if a kernel-image |

| post-install script or you don’t remember to run `lilo’. |

| |

±--------------------------------------------------------------+

Support LBA for large hard disks.

lba32

Overrides the default mapping between harddisk names and the BIOS’

harddisk order. Use with caution.

#disk=/dev/hde

bios=0x81

#disk=/dev/sda

bios=0x80

Specifies the boot device. This is where Lilo installs its boot

block. It can be either a partition, or the raw device, in which

case it installs in the MBR, and will overwrite the current MBR.

boot=/dev/hda

Specifies the device that should be mounted as root. (`/’)

root=/dev/hda2

Enable map compaction:

Tries to merge read requests for adjacent sectors into a single

read request. This drastically reduces load time and keeps the

map smaller. Using `compact’ is especially recommended when

booting from a floppy disk. It is disabled here by default

because it doesn’t always work.

compact

Installs the specified file as the new boot sector

You have the choice between: bmp, compat, menu and text

Look in /boot/ and in lilo.conf(5) manpage for details

install=/boot/boot-menu.b

Specifies the location of the map file

map=/boot/map

You can set a password here, and uncomment the `restricted’ lines

in the image definitions below to make it so that a password must

be typed to boot anything but a default configuration. If a

command line is given, other than one specified by an `append’

statement in `lilo.conf’, the password will be required, but a

standard default boot will not require one.

This will, for instance, prevent anyone with access to the

console from booting with something like `Linux init=/bin/sh’,

and thus becoming `root’ without proper authorization.

Note that if you really need this type of security, you will

likely also want to use `install-mbr’ to reconfigure the MBR

program, as well as set up your BIOS to disallow booting from

removable disk or CD-ROM, then put a password on getting into the

BIOS configuration as well. Please RTFM `install-mbr(8)’.

password=tatercounter2000

Specifies the number of deciseconds (0.1 seconds) LILO should

wait before booting the first image.

delay=20

You can put a customized boot message up if you like. If you use

`prompt’, and this computer may need to reboot unattended, you

must specify a `timeout’, or it will sit there forever waiting

for a keypress. single-key' goes with thealias’ lines in the

image' configurations below. eg: You can press1’ to boot

Linux',2’ to boot LinuxOLD', if you uncomment thealias’.

message=/boot/bootmess.txt

prompt

single-key

delay=100

timeout=100

Kernel command line options that apply to all installed images go

here. See: The boot-prompt-HOWO' andkernel-parameters.txt’ in

the Linux kernel `Documentation’ directory.

append=""

append=“hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce”

Boot up Linux by default.

default=Linux

image=/boot/vmlinuz-2.4.22-xfs
label=Linux
initrd=/boot/initrd.gz
read-only

restricted

alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional

restricted

alias=2

If you have another OS on this machine to boot, you can uncomment the

following lines, changing the device name on the `other’ line to

where your other OS’ partition is.

other=/dev/hda4

label=HURD

restricted

alias=3

other=/dev/hdd1
label=windows

Chez moi c’est:

other=/dev/hda1
label=“Windows”

euh…je sèche :stuck_out_tongue:

c’est hdd1 que tu trouve bizarre?

non, ça a l’air normal ça. C’est la raison pour laquelle windows boote pas que je pige pas.

Windows ça craint, hein? :smiley:

bon,
j’ai 2 disques:
1er disque:
port IDE1 --> knoppix
–> lecteur cdrom
2ième disque
port IDE2 --> 1ere partition XP activée

Sinon, installe grub. Ptet que c’est lilo qui arrive pas à booter sur le DD quand il est esclave (je sais pas, j’ai jamais eu ce cas :D)

grub est plus performant que lilo en plus. Et plus facile à configurer.

et pourtant il démarre si je désactive le 1er disque où se trouve knoppix dans le bios!!

bon j’ai lancé grub, mais a partir de la konsole, car je ne le trouve pas dans les menus!

t’as lancé grub? non lol faut l’installer avec “grub-install” :smiley:

Avec l’option
–root-directory=DIR ???
je mets koi pour le chemin?

non, pas de ça. en principe si tu veux l’installer dans le MBR du premier disque (hda), tu tapes grub-install /dev/hda

ok c’est fait, mais après j’ai recopié menu.lst qui était dans la doc comme exemple vers /boot/grub

bon voici l’exemple

Sample boot menu configuration file

Boot automatically after 30 secs.

timeout 30

By default, boot the first entry.

default 0

Fallback to the second entry.

fallback 1

For booting the GNU Hurd

title GNU/Hurd
root (hd0,0)
kernel /boot/gnumach.gz root=hd0s1
module /boot/serverboot.gz

For booting Linux

title GNU/Linux
root (hd1,0)
kernel /vmlinuz root=/dev/hdb1

For booting Mach (getting kernel from floppy)

title Utah Mach4 multiboot
root (hd0,2)
pause Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap

For booting FreeBSD

title FreeBSD 3.4
root (hd0,2,a)
kernel /boot/loader

For booting OS/2

title OS/2
root (hd0,1)
makeactive

chainload OS/2 bootloader from the first sector

chainloader +1

This is similar to “chainload”, but loads a specific file

#chainloader /boot/chain.os2

For booting Windows NT or Windows95

title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1

For loading DOS if Windows NT is installed

chainload /bootsect.dos

For installing GRUB into the hard disk

title Install GRUB into the hard disk
root (hd0,0)
setup (hd0)

Change the colors.

title Change the colors
color light-green/brown blink-red/blue

voici la config de base que j’ai trouvé sur un site:
http://guide.andesi.org/html/kgrub.html

GNU GRUB configuration files

Par Cédric Lignier

Paramètres globaux a GNU GRUB

default 1
timeout 10
password --md5 $1$u.jeI0$KMSOekVazlZsdYU1LH0sx/

Listes des systemes d’exploitation

Windows

title Windows XP Pro
rootnoverify (hd0,2)
chaineloader +1

GNU/Linux Debian

title GNU/Linux Debian 2.6.4
kernel (hd0,5)/vmlinuz-current root=/dev/hda5 resume=/dev/hda1 noresume splash=silent vga=791
initrd (hd0,5)/initrd.splash

GNU GRUB configuration files

Par Cédric Lignier

Paramètres globaux a GNU GRUB

default 1
timeout 10
password --md5 $1$u.jeI0$KMSOekVazlZsdYU1LH0sx/

Listes des systemes d’exploitation

Windows

title Windows XP Pro
rootnoverify (hd0,2) deviens rootnoverify (hd3,0); mon disque est sur hdd 1ere partitionchaineloader +1

GNU/Linux Debian

title GNU/Linux Debian 2.6.4
kernel (hd0,5)/vmlinuz-current root=/dev/hda5 resume=/dev/hda1 noresume splash=silent vga=791 initrd (hd0,5)/initrd.splash

[#2aff00]deviens kernel (hd0,1)/vmlinuz-current root=/dev/hda2 resume=/dev/hda1 noresume splash=silent vga=791 ;
en fait knoppix se trouve sur hda2 ,1ere partition [/#2aff00]

dites moi si c’est juste, car sur le 1er disque j’ai hda1 -->swap et hd2–>ext3