Grub ne reconnait pas windows
Yuravin
-
Julius -
Julius -
Salut,
Je viens d'installer Debian, et Grub ne reconnait pas windows xp
J'ai effectivement rajouté dans /boot/grub/menu.lst
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1
quand je reboot, ça m'affiche : error 22 no such files
à croire que windows n'existe plus
Windows et Linux sont sur deux disques durs séparément.
quelqu'un a une idée ?
voici le contenu de menu.lst
# 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'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# 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/hdb1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user 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.18-6-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro
initrd /boot/initrd.img-2.6.18-6-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-6-686 (single-user mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.18-6-686
savedefault
title Windows 95/98/NT/2000
root (hd0,0)
savedefault
makeactive
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
merci a+
Je viens d'installer Debian, et Grub ne reconnait pas windows xp
J'ai effectivement rajouté dans /boot/grub/menu.lst
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1
quand je reboot, ça m'affiche : error 22 no such files
à croire que windows n'existe plus
Windows et Linux sont sur deux disques durs séparément.
quelqu'un a une idée ?
voici le contenu de menu.lst
# 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'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# 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/hdb1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user 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.18-6-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro
initrd /boot/initrd.img-2.6.18-6-686
savedefault
title Debian GNU/Linux, kernel 2.6.18-6-686 (single-user mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.18-6-686
savedefault
title Windows 95/98/NT/2000
root (hd0,0)
savedefault
makeactive
chainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST
merci a+
A voir également:
- Grub ne reconnait pas windows
- Windows ne démarre pas - Guide
- Windows ne reconnait pas ma clé usb - Guide
- Clé windows 8 - Guide
- Montage video gratuit windows - Guide
- Windows movie maker - Télécharger - Montage & Édition
10 réponses
Bonsoir,
hd(0,0) correspond à la première partition du 1er disque (le 1er zero correspon au disque, le deuxième à la partition). Est bien là qu'est windows ? j'ai déjà vu une fois sur un PC la 1ere partition occupé par la partition de restauration...
Cordialement,
hd(0,0) correspond à la première partition du 1er disque (le 1er zero correspon au disque, le deuxième à la partition). Est bien là qu'est windows ? j'ai déjà vu une fois sur un PC la 1ere partition occupé par la partition de restauration...
Cordialement,
Bonjour,
Le Windows est-il bien installé sur la 1ère partition du premier disque dur (hd0,0) ? Si oui, il vaut mieux d'abord vérifier si la partition est toujours là, par exemple en vérifiant les partitions présentes avec gparted. Si elle y est, la monter et vérifier ce qu'elle contient.
Par contre, s'il est sensé être sur une autre partition, il faut corriger celle inscrite dans /boot/grub/menu.lst.
Le Windows est-il bien installé sur la 1ère partition du premier disque dur (hd0,0) ? Si oui, il vaut mieux d'abord vérifier si la partition est toujours là, par exemple en vérifiant les partitions présentes avec gparted. Si elle y est, la monter et vérifier ce qu'elle contient.
Par contre, s'il est sensé être sur une autre partition, il faut corriger celle inscrite dans /boot/grub/menu.lst.
Salut,
Affiches le résultat des commandes suivantes (en root pour la 1ère) :
Affiches le résultat des commandes suivantes (en root pour la 1ère) :
/sbin/fdisk -l cat /etc/fstab cat /etc/mtab mount ls -l /m*;-))
Salut,
Merci pour votre aide
avec gparted : il n'y a aucune partition, il dit que tout le disque est libre...
-------------------------------------------------------------------------------------
Résulats /sbin/fdisk -1
/sbin/fdisk: option invalide -- 1
Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
------------------------------------------------------------------------------------
Résultats /etc/fstab/
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
-----------------------------------------------------------------------------------
Résultats cat /etc/mtab
/dev/hdb1 / ext3 rw,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
---------------------------------------------------------------------------------
Résultats mount
/dev/hdb1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
----------------------------------------------------------------------------------
Résultats ls -l /m*
/media:
total 8
lrwxrwxrwx 1 root root 6 2008-03-23 23:41 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2008-03-23 23:41 cdrom0
drwxr-xr-x 2 root root 4096 2008-03-23 23:41 cdrom1
/mnt:
total 0
---------------------------------------------------------------------------------
Merci pour votre aide
avec gparted : il n'y a aucune partition, il dit que tout le disque est libre...
-------------------------------------------------------------------------------------
Résulats /sbin/fdisk -1
/sbin/fdisk: option invalide -- 1
Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
------------------------------------------------------------------------------------
Résultats /etc/fstab/
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
-----------------------------------------------------------------------------------
Résultats cat /etc/mtab
/dev/hdb1 / ext3 rw,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
---------------------------------------------------------------------------------
Résultats mount
/dev/hdb1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
----------------------------------------------------------------------------------
Résultats ls -l /m*
/media:
total 8
lrwxrwxrwx 1 root root 6 2008-03-23 23:41 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2008-03-23 23:41 cdrom0
drwxr-xr-x 2 root root 4096 2008-03-23 23:41 cdrom1
/mnt:
total 0
---------------------------------------------------------------------------------
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Re-
Pour "/sbin/fdisk -l", le paramètre "-l" c'est un "elle" minuscule et pas un "un" ;-\
Peux-tu re-poster le résultat de cette commande s'il te plaît, merci ;-)
Pour "/sbin/fdisk -l", le paramètre "-l" c'est un "elle" minuscule et pas un "un" ;-\
Peux-tu re-poster le résultat de cette commande s'il te plaît, merci ;-)
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 3039 24410736 83 Linux
/dev/hdb2 19128 19457 2650725 5 Extended
/dev/hdb5 19128 19457 2650693+ 82 Linux swap / Solaris
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 3039 24410736 83 Linux
/dev/hdb2 19128 19457 2650725 5 Extended
/dev/hdb5 19128 19457 2650693+ 82 Linux swap / Solaris
Sans vouloir être trop pessimiste, j'ai bien peur que ton Windows se soit fait la malle ;-((
Il n'y a aucune trace d'une quelconque partition sur ton disque hd0 (hda) ;-((
C'est un disque IDE ?
Lors de l'installation de GNU/Linux, comment t'y es-tu pris concernant le partitionnement ? Qu'as-tu choisi ?
Il n'y a aucune trace d'une quelconque partition sur ton disque hd0 (hda) ;-((
C'est un disque IDE ?
Lors de l'installation de GNU/Linux, comment t'y es-tu pris concernant le partitionnement ? Qu'as-tu choisi ?
oui c'est un disque IDE
j'ai installé debian et grub dans un premier temps sur le deuxième disque dur
voyant que ça prenait tout le disque j'ai formaté le disque
Mais là : nécéssité d'avoir grub
je réinstalle grub et debian sur une partition de 25 Go sur ce même disque
j'ai pourtant bien fait en sorte de ne pas toucher au premier disque
j'ai installé debian et grub dans un premier temps sur le deuxième disque dur
voyant que ça prenait tout le disque j'ai formaté le disque
Mais là : nécéssité d'avoir grub
je réinstalle grub et debian sur une partition de 25 Go sur ce même disque
j'ai pourtant bien fait en sorte de ne pas toucher au premier disque