Boot impossible de windows

Curieux j’ai le même problème aussi. À mon avis j’ai perdu ma section windows lors de la compilation et de l’installation de mon noyau.

[code]## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.16.8amdk6
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.8amdk6 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.16.8amdk6
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16.8amdk6 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.8amdk6 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.16.8amdk6
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16
root (hd0,0)
kernel /boot/vmlinuz-2.6.16 root=/dev/hdc1 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.16 root=/dev/hdc1 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.12-1-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-1-386 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.12-1-386
savedefault
boot

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

END DEBIAN AUTOMAGIC KERNELS LIST

title Other operating systems:
root

title WinDobs 98
root (hd1,0)
savedefault
makeactive
chainloader +1
[/code]

Voici ce que me donne “fdisk -l”

[code]Disk /dev/hdc: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1216 9767488+ 83 Linux
/dev/hdc2 1217 3738 20257965 5 Extended
/dev/hdc5 1217 1283 538146 82 Linux swap / Solaris
/dev/hdc6 1284 3738 19719756 83 Linux

Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 1020 8193118+ b W95 FAT32
/dev/hdd2 1021 2434 11357955 f W95 Ext’d (LBA)
/dev/hdd5 1021 2434 11357923+ b W95 FAT32[/code]

quote="ginkgo biloba"
Pour les sources, il faut les lignes adaptées, commençant par deb-src, style # deb-src http://ftp2.fr.debian.org/debian/ testing main contrib non-free dans sources.list
-> voir “votre sources.list!” dans “trucs et astuces”[/quote]Rien à voir avec la question posée: kernel-source est disponible même sans deb-src.

[quote=“dmon”]Curieux j’ai le même problème aussi. À mon avis j’ai perdu ma section windows lors de la compilation et de l’installation de mon noyau.

## ## End Default Options ##(...)[/quote]tu n’as rien avant ? :open_mouth:
Parceque c’est quand même la partie la plus interressante, les default options.
Par ailleurs, tu devrais faire un peu de ménage dans tes noyaux.

Sinon, supprimes tout ce qu’il y a aprés “### END DEBIAN AUTOMAGIC KERNELS LIST”

title WinDobs 98 root (hd1,0) map (hd0) (hd1) map (hd1) (hd0) makeactive savedefault chainloader +1

[quote=“MattOTop”][quote=“dmon”]Curieux j’ai le même problème aussi. À mon avis j’ai perdu ma section windows lors de la compilation et de l’installation de mon noyau.

## ## End Default Options ##(...)[/quote]tu n’as rien avant ? :open_mouth:
Parceque c’est quand même la partie la plus interressante, les default options.[/quote]
Si, si il y plein de truc, j’ai seulement modifier temporairement le temps d’attente, je n’ai pas touché au boot par défaut. Mais il y a surtout des commentaires. Voici tout le fichier corrigé

[code]# menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-doc/.

default num

Set the default entry to the entry number NUM. Numbering starts from 0, and

the entry number 0 is the default if the command is not used.

You can specify ‘saved’ instead of a number. In this case, the default entry

is the entry saved with the command ‘savedefault’.

default 0

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 140

Pretty colours

color cyan/blue white/blue

password [’–md5’] passwd

If used in the first section of a menu file, disable all interactive editing

control (menu entry editor and command-line) and entries protected by the

command ‘lock’

e.g. password topsecret

password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/

password topsecret

examples

title Windows 95/98/NT/2000

root (hd0,0)

makeactive

chainloader +1

title Linux

root (hd0,1)

kernel /vmlinuz root=/dev/hda2 ro

Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

BEGIN AUTOMAGIC KERNELS LIST

lines between the AUTOMAGIC KERNELS LIST markers will be modified

by the debian update-grub script except for the default options below

DO NOT UNCOMMENT THEM, Just edit them to your needs

## Start Default Options

default kernel options

default kernel options for automagic boot options

If you want special options for specific kernels use kopt_x_y_z

where x.y.z is kernel version. Minor versions can be omitted.

e.g. kopt=root=/dev/hda1 ro

kopt_2_6_8=root=/dev/hdc1 ro

kopt_2_6_8_2_686=root=/dev/hdc2 ro

kopt=root=/dev/hdc1 ro

default grub root device

e.g. groot=(hd0,0)

groot=(hd0,0)

should update-grub create alternative automagic boot options

e.g. alternative=true

alternative=false

alternative=true

should update-grub lock alternative automagic boot options

e.g. lockalternative=true

lockalternative=false

lockalternative=false

additional options to use with the default boot option, but not with the

alternatives

e.g. defoptions=vga=791 resume=/dev/hda5

defoptions=

should update-grub lock old automagic boot options

e.g. lockold=false

lockold=true

lockold=false

altoption boot targets option

multiple altoptions lines are allowed

e.g. altoptions=(extra menu suffix) extra boot options

altoptions=(single-user) single

altoptions=(recovery mode) single

controls how many kernels should be put into the menu.lst

only counts the first occurence of a kernel, not the

alternative kernel options

e.g. howmany=all

howmany=7

howmany=all

should update-grub create memtest86 boot option

e.g. memtest86=true

memtest86=false

memtest86=true

should update-grub adjust the value of the default booted system

can be true or false

updatedefaultentry=false

## End Default Options

title Debian GNU/Linux, kernel 2.6.16.8amdk6
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.8amdk6 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.16.8amdk6
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16.8amdk6 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.16.8amdk6 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.16.8amdk6
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16
root (hd0,0)
kernel /boot/vmlinuz-2.6.16 root=/dev/hdc1 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.16 root=/dev/hdc1 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc1 ro single
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.12-1-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-1-386 root=/dev/hdc1 ro
initrd /boot/initrd.img-2.6.12-1-386
savedefault
boot

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

title Other operating systems:
root

title WinDobs 98
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
savedefault
chainloader +1
boot

END DEBIAN AUTOMAGIC KERNELS LIST

[/code]

[quote=“MattOTop”]Par ailleurs, tu devrais faire un peu de ménage dans tes noyaux.[/quote]Ouais, ouais je vais faire du ménage cette semaine.

Merci, ça marche maintenant. C’était dû à cette histoire de "map ". J’ai encore quelques manipulations à faire sur windows 98 et je n’ai pas envie de mettre XP.

quote="dmon"Si, si il y plein de truc, j’ai seulement modifier temporairement le temps d’attente, je n’ai pas touché au boot par défaut. Mais il y a surtout des commentaires. (…)[/code][/quote]Ces "commentaires’ n’en sont pas vraiment. Les lignes en simple # sont analysées par ‘update-grub’ pour génèrer les entrées de menu automatiquement en fonction de ce qu’il trouve dans /boot.
Si par exemple tu veux passer un argument ‘noacpi’ à tous tes noyaux, pour booter, tu vas remplacer la ligne

par

et ensuite un petit update-grub mettra à jour toutes les entrées situées entre "## ## End Default Options ## " et "### END DEBIAN AUTOMAGIC KERNELS LIST " (c’est d’ailleurs pour ça qu’il faut que tu déplaces tout de suite ton entrée pour win98 aprés "### END DEBIAN AUTOMAGIC KERNELS LIST ", pour qu’elle ne soit pas écrasée lors du prochain “update-grub”)

[quote=“dmon”][quote=“MattOTop”]Par ailleurs, tu devrais faire un peu de ménage dans tes noyaux.[/quote]Ouais, ouais je vais faire du ménage cette semaine.[/quote]Sais tu qu’un petit >apt-get remove kernel-image-XXXXX<, ça prend pas 3 heures non plus…[quote=“dmon”]Merci, ça marche maintenant. C’était dû à cette histoire de "map ". J’ai encore quelques manipulations à faire sur windows 98 et je n’ai pas envie de mettre XP.[/quote]Quel interet de mettre XP ? Les jeux tournent mieux sous 98…