Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#51 Le 20/10/2007, à 23:56

gtraxx

Re : [Grub] Error 17

voila, belga grand merci tout fonctionne et j'ai résolu d'autre petit bug de traduction et demontage externe.
merci aussi a faustus s'il passe par la wink
Au fait belga faudra que tu me dise ou tu te documente pour savoir tout sa wink


Création site web  - Conception de site - intégrer jQuery dans php
Ubuntu 9.04 - http://doc.ubuntu-fr.org/zendstudio

Hors ligne

#52 Le 21/10/2007, à 00:03

belga

Re : [Grub] Error 17

la doc et man
sans oublier le blog de cep.


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#53 Le 21/10/2007, à 13:15

gtraxx

Re : [Grub] Error 17

tu veux dire le manuel sur le site de framasoft ?
tu n'aurai pas le lien vers le blog de cep big_smile

Dernière modification par gtraxx (Le 21/10/2007, à 13:15)


Création site web  - Conception de site - intégrer jQuery dans php
Ubuntu 9.04 - http://doc.ubuntu-fr.org/zendstudio

Hors ligne

#54 Le 21/10/2007, à 15:39

Postume

Re : [Grub] Error 17

Desole javais pas fait gaff a lerreur....

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2        2678    21503002+   f  W95 Ext'd (LBA)
/dev/sda2   *        2679        3772     8787555   83  Linux
/dev/sda3            3773        3916     1156680   82  Linux swap / Solaris
/dev/sda4            3917       30401   212740762+   7  HPFS/NTFS
/dev/sda5               2        2678    21502971    7  HPFS/NTFS

Hors ligne

#55 Le 21/10/2007, à 16:34

belga

Re : [Grub] Error 17

tape et donne le retour de chaque commande

sudo mount -o rw /dev/sda2 /mnt
sudo ls /mnt/boot
sudo ls /mnt/boot/grub
cat /mnt/boot/grub/menu.lst
cat /mnt/etc/fstab

le blog de cep
http://www.cepcasa.info/blog/


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#56 Le 21/10/2007, à 17:25

Postume

Re : [Grub] Error 17

ubuntu@ubuntu:~$ sudo mount -o rw /dev/sda2 /mnt
ubuntu@ubuntu:~$ sudo ls /mnt/boot
abi-2.6.20-15-generic             initrd.img-2.6.20-16-generic
abi-2.6.20-16-generic             memtest86+.bin
config-2.6.20-15-generic          System.map-2.6.20-15-generic
config-2.6.20-16-generic          System.map-2.6.20-16-generic
grub                              vmlinuz-2.6.20-15-generic
initrd.img-2.6.20-15-generic      vmlinuz-2.6.20-16-generic
initrd.img-2.6.20-15-generic.bak
ubuntu@ubuntu:~$ sudo ls /mnt/boot/grub
default        installed-version  minix_stage1_5     xfs_stage1_5
device.map     jfs_stage1_5       reiserfs_stage1_5
e2fs_stage1_5  menu.lst           stage1
fat_stage1_5   menu.lst~          stage2
ubuntu@ubuntu:~$ cat /mnt/boot/grub/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         10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# 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=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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=quiet splash

## 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=(recovery) 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           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,2)
kernel          /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title           Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title           Microsoft Windows XP �dition familiale
root            (hd0,1)
savedefault
makeactive
chainloader     +1
ubuntu@ubuntu:~$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#ubuntu@ubuntu:~$ sudo ls /mnt/boot
abi-2.6.20-15-generic             initrd.img-2.6.20-16-generic
abi-2.6.20-16-generic             memtest86+.bin
config-2.6.20-15-generic          System.map-2.6.20-15-generic
config-2.6.20-16-generic          System.map-2.6.20-16-generic
grub                              vmlinuz-2.6.20-15-generic
initrd.img-2.6.20-15-generic      vmlinuz-2.6.20-16-generic
initrd.img-2.6.20-15-generic.bak
ubuntu@ubuntu:~$ sudo ls /mnt/boot/grub
default        installed-version  minix_stage1_5     xfs_stage1_5
device.map     jfs_stage1_5       reiserfs_stage1_5
e2fs_stage1_5  menu.lst           stage1
fat_stage1_5   menu.lst~          stage2
ubuntu@ubuntu:~$ cat /mnt/boot/grub/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         10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# 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=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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=quiet splash

## 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=(recovery) 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           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,2)
kernel          /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title           Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title           Microsoft Windows XP �dition familiale
root            (hd0,1)
savedefault
makeactive
chainloader     +1

ubuntu@ubuntu:~$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda2
UUID=68CC96CDCC9694C2 /media/sda2     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/sda5
UUID=3640459640455E2D /media/sda5     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/sda4
UUID=52240964-41b9-44a4-8577-926acbc81068 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda2
UUID=68CC96CDCC9694C2 /media/sda2     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/sda5
UUID=3640459640455E2D /media/sda5     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
# /dev/sda4
UUID=52240964-41b9-44a4-8577-926acbc81068 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

Hors ligne

#57 Le 21/10/2007, à 17:59

belga

Re : [Grub] Error 17

Salut, il a à faire
tape

sudo mount -o rw /dev/sda2 /mnt

puis

le menu.lst
---------------

sudo gedit /mnt/boot/grub/menu.lst

dans le fichier qui s'ouvre, fais les changements en gras

##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)   ===> (hd0,1)
.
.
.   
## ## End Default Options ##

title           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,2)    ===>  (hd0,1)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,2)   ===>  (hd0,1)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,2)   ===>  (hd0,1)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,2)     ===>  (hd0,1)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,2)    ===>  (hd0,1)
kernel          /boot/memtest86+.bin
quiet

#SUPPRIME LA SUITE  ET COLLE CECI
### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2   ===>  sda4
title           XP test 1
root            (hd0,3)
savedefault
makeactive
chainloader     +1

# on /dev/sda2   ===>  sda5
title           XP test 2
root            (hd0,4)
savedefault
makeactive
chainloader     +1

enregistre puis

pour le fichier fstab
--------------------

sudo mkdir /mnt/media/sda4
sudo gedit /mnt/etc/fstab

supprime le contenu du fichier qui s'ouvre et colle ceci

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda2
UUID=9b07e47c-2af1-4b17-8936-83f8bfdde9f8 /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda4
UUID=68CC96CDCC9694C2 /media/sda4     ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# /dev/sda5
UUID=CAC02D37C02D2AE1 /media/sda5     ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# /dev/sda3
UUID=52240964-41b9-44a4-8577-926acbc81068 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

enregistre et redémarre


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#58 Le 21/10/2007, à 20:05

Postume

Re : [Grub] Error 17

Pour linux c'est ok .... sa fonctionne maintenant j'essay windaube et je vous tiens au jus (merci belga)

Edit: Tout fonctionne nikel!!! merci pour tout à tous et plus particulièrement à belga !
thx!

Dernière modification par Postume (Le 21/10/2007, à 20:08)

Hors ligne

#59 Le 22/10/2007, à 12:57

gtraxx

Re : [Grub] Error 17

salut belga sais tu expliquer en quelque mots quel étais l'erreur que postume et moi avons eu pour que je puisse comprendre ce que tu ma fais changé.
lje pense qu'il confondais mes disques c'est bien sa ?
ps: merci pour le lien wink


Création site web  - Conception de site - intégrer jQuery dans php
Ubuntu 9.04 - http://doc.ubuntu-fr.org/zendstudio

Hors ligne

#60 Le 22/10/2007, à 23:45

belga

Re : [Grub] Error 17

la partition racine était pointé sur hd1,0 alors
qu'elle est sur (hd0,0) puis que ton disque 2 est le disque sur lequel
ça démarre.

dans l'autre cas, la partition racine était aussi mal
renseigné puisque c'est (hd0,1) et non (hd0,2).
En plus une des partitions ntfs était mal renseigné dans le fstab.


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#61 Le 25/04/2008, à 20:48

sff9

Re : [Grub] Error 17

Bonjour !
un grand merci à Belga, j'ai résolu un problème du même genre grâce à ce topic !
Encore merci et bonne soirée !

#62 Le 26/04/2008, à 01:01

gtraxx

Re : [Grub] Error 17

wink faut surtout dire merci a belga pour sa patience avec mon pc assez difficile lol


Création site web  - Conception de site - intégrer jQuery dans php
Ubuntu 9.04 - http://doc.ubuntu-fr.org/zendstudio

Hors ligne

#63 Le 30/05/2008, à 21:16

orkerone

Re : [Grub] Error 17

Re-bonsoir à tous, six mois plus tard, je réessaie avec Hardy, et toujours cette même erreur 17.

D'après la très claire explication de carroues:

Le BIOS ne voyant que les partitions primaires, tout ce qui se trouve à l'intérieur d'une partition étendue (qui est une forme spéciale de partition primaire) est invisible lors du démarrage du PC.

Ainsi, la limite étant de 4 partitions principales par disque, ce sont celles-ci qui récupèrent d'office les chiffres sda / hda 1 à 4. Les partitions logiques, stockées à l'intérieur d'une partition (principale) étendue (Ext'd dans fdisk -l) ne sont vues que par le système d'exploitation et héritent du la numérotation à partir de sda / hda 5, même si le total des 4 partitions principales n'est pas atteint.

Dans ton cas, orkerone, ton sda5 est une partition logique imbriquée dans la partition étendue sda2.

Comment remédier au problème dans ce cas ? (et au passage, ce n'est pas moi qui ai choisi l'organisation des partitions smile)

Donc pour rappel :
fdisk -l

ubuntu@ubuntu:~$ sudo fdisk -l

Disque /dev/sda: 164.6 Go, 164696555520 octets
255 heads, 63 sectors/track, 20023 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x44464445

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1        3824    30716248+   7  HPFS/NTFS
/dev/sda2            3825       18748   119877030    f  W95 Etendu (LBA)
/dev/sda3           18749       19721     7815622+  83  Linux
/dev/sda4           19722       20023     2425815   82  Linux swap / Solaris
/dev/sda5            3825       18748   119876998+   7  HPFS/NTFS

ls -l /dev/disk/by-uuid

ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2008-05-30 23:36 4ae88e13-fae7-4fbd-8bdc-458ef6e00164 -> ../../sda3
lrwxrwxrwx 1 root root 10 2008-05-30 23:36 5CFCEE9BFCEE6EA8 -> ../../sda1
lrwxrwxrwx 1 root root 10 2008-05-30 23:36 8AE4082AE4081AD9 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-05-30 23:36 d4a127e5-8dd0-43cb-a0b5-1cc33a04efec -> ../../sda4

menu.lst (modifié comme Belga l'a dit dans les derniers posts, mais apparemment ce n'est pas mon cas puisque ça marche toujours pas)

# 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 use 'savedefault' 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		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# 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=UUID=4ae88e13-fae7-4fbd-8bdc-458ef6e00164 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## 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=quiet splash

## 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=(recovery) 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.04, kernel 2.6.24-16-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=4ae88e13-fae7-4fbd-8bdc-458ef6e00164 ro quiet splash
initrd		/boot/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=4ae88e13-fae7-4fbd-8bdc-458ef6e00164 ro single
initrd		/boot/initrd.img-2.6.24-16-generic

title		Ubuntu 8.04, memtest86+
root		(hd0,1)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2   ===>  sda4
title           XP test 1
root            (hd0,3)
savedefault
makeactive
chainloader     +1

# on /dev/sda2   ===>  sda5
title           XP test 2
root            (hd0,4)
savedefault
makeactive
chainloader     +1

fstab (intouché)

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=4ae88e13-fae7-4fbd-8bdc-458ef6e00164 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda4
UUID=d4a127e5-8dd0-43cb-a0b5-1cc33a04efec none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

Merci de votre aide ! smile

Dernière modification par orkerone (Le 30/05/2008, à 21:51)

Hors ligne