Pages : 1
#1 Le 04/12/2007, à 20:08
- buchs
[Résolu][Grub] Error 17
Bonjour tout le monde,
j'ai souhaité installer Ubuntu via la miniISO. Ce que j'ai fais et fort (presque) bien d'ailleurs
Seulement, lors du reboot, j'ai grub qui me renvoie l'erreur 17, du coup, j'ai booté sur un liveCD (pour ne pas le nommer) et je me suis loggué sur ma partition Ubuntu (via chroot).
Ci-dessous les commandes que j'ai tapées :
fdisk -l /dev/hda
Disque /dev/hda: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 9729 78148161 83 Linux
/usr/sbin/grub-install /dev/hda
Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdc
update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz
Found kernel: /boot/vmlinuz-2.6.22-3-686
Updating /boot/grub/menu.lst ... done
Je m'assures que tout est ok ensuite :
ls -l /boot/grub/
total 184
-rw-r--r-- 1 root root 197 Dec 4 17:16 default
-rw-r--r-- 1 root root 45 Dec 4 17:01 device.map
-rw-r--r-- 1 root root 7552 Dec 4 17:16 e2fs_stage1_5
-rw-r--r-- 1 root root 7456 Dec 4 17:16 fat_stage1_5
-rw-r--r-- 1 root root 8160 Dec 4 17:16 jfs_stage1_5
-rw-r--r-- 1 root root 4143 Dec 4 17:17 menu.lst
-rw-r--r-- 1 root root 6880 Dec 4 17:16 minix_stage1_5
-rw-r--r-- 1 root root 9248 Dec 4 17:16 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Dec 4 17:16 stage1
-rw-r--r-- 1 root root 108296 Dec 4 17:16 stage2
-rw-r--r-- 1 root root 8872 Dec 4 17:16 xfs_stage1_5
Puis sous "grub":
grub> root (hd0,0)
Filesystem type is reiserfs, partition type 0x83
grub> setup (hd0, 0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"... 19 sectors are embedded
.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+19 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
Tout semble OK et bien configuré, et pourtant... j'ai cette fichue erreur
Merci pour toute aide
Dernière modification par buchs (Le 05/12/2007, à 01:26)
Hors ligne
#2 Le 04/12/2007, à 20:55
- safinaz
Re : [Résolu][Grub] Error 17
Salut
Tu tapes setup (hd0,0), pour l'installer sur le mbr
sudo grub
setup (hd0)
quit
#3 Le 04/12/2007, à 21:12
- buchs
Re : [Résolu][Grub] Error 17
Salut
Tu tapes setup (hd0,0), pour l'installer sur le mbr
sudo grub
setup (hd0)
quit
Ben je l'ai déjà fais... (cf le premier post).
Puis Grub était déjà installé avant, j'ai jamais installé Windows, c'est une réinstallation que je fais...
Hors ligne
#4 Le 04/12/2007, à 21:19
- safinaz
Re : [Résolu][Grub] Error 17
Moi j'ai vu ceci dans ton message
grub> root (hd0,0)
Filesystem type is reiserfs, partition type 0x83
grub> setup (hd0, 0) c'est (hd0) qu'il faut
Tape
sudo mount /dev/hda1 /mnt
Poste les retours de
sudo fdisk -l
ls -l /dev/disk/by-uuid
cat /mnt/etc/fstab
#5 Le 04/12/2007, à 21:31
- buchs
Re : [Résolu][Grub] Error 17
Au passage, je tiens à signaler qu'à partir de Knoppix, je "dois" faire un :
mount -o bind /dev /media/hda1/dev
mount -o bind /proc /media/hda1/proc
...
Ensuite une fois "chrooté" :
fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000aeb21
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9729 78148161 83 Linux
Disk /dev/hdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000da45d
Device Boot Start End Blocks Id System
/dev/hdc1 1 19457 156288321 83 Linux
ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Dec 5 22:45 b126a354-eeb2-4c9e-a555-c09f1fd1c290 -> ../../hdc1
lrwxrwxrwx 1 root root 10 Dec 5 22:45 fd74f5c8-4d41-4953-adc1-ac97ea7c9cee -> ../../hda1
cat /etc/fstab
dev/hda1 / reiserfs defaults,errors=remount-ro 0 0
/proc /proc proc rw,nosuid,nodev,noexec 0 0
/sys /sys sysfs rw,nosuid,nodev,noexec 0 0
/dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/cdrom /media/cdrom auto user,noauto,exec,ro 0 0
#/dev/hdc1 /media/hdc1 reiserfs noauto,users,exec 0 0
Pour setup (hd0), je rebootes de suite et vous tiens au courant
Merci
Hors ligne
#6 Le 04/12/2007, à 21:37
- safinaz
Re : [Résolu][Grub] Error 17
Le fstab donné n'est pas celui d'ubuntu, c'est celui du live.
Avec knoppix
sudo mount /dev/hda1 /mnt
cat /mnt/etc/fstab
ou alors navigue via konqueror pour retrouver le fichier
fstab d'ubuntu
#7 Le 04/12/2007, à 21:56
- buchs
Re : [Résolu][Grub] Error 17
Le fstab donné n'est pas celui d'ubuntu, c'est celui du live.
Avec knoppixsudo mount /dev/hda1 /mnt
cat /mnt/etc/fstabou alors navigue via konqueror pour retrouver le fichier
fstab d'ubuntu
Le souci, c'est que je l'ai plus
Au passage, j'ai fait le setup (hd0) et cela n'a rien changé, toujours erreur 17
Hors ligne
#8 Le 04/12/2007, à 22:14
- safinaz
Re : [Résolu][Grub] Error 17
safinaz a écrit :Le fstab donné n'est pas celui d'ubuntu, c'est celui du live.
Avec knoppixsudo mount /dev/hda1 /mnt
cat /mnt/etc/fstabou alors navigue via konqueror pour retrouver le fichier
fstab d'ubuntuLe souci, c'est que je l'ai plus
Au passage, j'ai fait le setup (hd0) et cela n'a rien changé, toujours erreur 17
Si tu n'as plus de fstab, c'est normal.
tape
sudo umount -a
sudo mount -t ext3 -o rw /dev/hda1 /mnt
ls /mnt #poste le retour
#9 Le 04/12/2007, à 22:25
- Neuro
Re : [Résolu][Grub] Error 17
Je m' abonne à ce sujet car j' ai aussi rencontré ce message. Avec le recul, j' ai préféré réinstaller Ubuntu sant formater ma partition /home car cela a été plus vite pour régler le probléme. Soit 30 minutes plutà´t que de chercher et essayer les différentes commandes indiqué pour grub.
Le gros avantage c' est qu' en ne touchant pas le /home on garde toutes ses configurations logiciels (quand on réinstalle thunderbirtd par exemple, pas besoin de le re paramétrer).
Dernière modification par Neuro (Le 04/12/2007, à 22:27)
Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.
Hors ligne
#10 Le 04/12/2007, à 22:50
- buchs
Re : [Résolu][Grub] Error 17
Comme l'a spécifié Neuro, j'ai préféré réinstaller mon système vu que mes données sont sur un disque dur séparé
J'ai donc réinstallé, je reboot, j'ai toujours l'erreur 17. Je bootes donc sous KNOPPIX, et là c'est le drame si je puis dire.
Voici le fstab :
cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=fd588088-7158-4caf-9dbb-5b46fb95eaf3 / reiserfs notail 0 1
# /dev/sdb1
UUID=b126a354-eeb2-4c9e-a555-c09f1fd1c290 /media/sdb1 reiserfs defaults 0 2
# /dev/sdc1
UUID=d68bf4ba-0188-4a76-9984-5c18644ba1c8 /media/sdc1 reiserfs defaults 0 2
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
Par contre :
fdisk -l
Ne me renvoi rien, (j'ai juste chrooté sur ma partition Ubuntu, sans faire les liens comme avant (de /dev et /proc)...
Si je tapes :
# grub-install /dev/hda
You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!
/dev/hda does not have any corresponding BIOS drive.
du coup (oui mes disques sont en S-ATA), je tapes :
grub-install /dev/sda
You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!
rm: ne peut enlever `/boot/grub/stage1': Système de fichiers accessible en lecture seulement
Et quand je vérifie dans /boot/grub, c'est vrai tous les fichiers ont les droits -rw-r--r--
Que faire?
Merci pour votre patience
[edit]
mount
/dev/sda2 on / type reiserfs (rw)
Dernière modification par buchs (Le 04/12/2007, à 22:53)
Hors ligne
#11 Le 04/12/2007, à 23:23
- safinaz
Re : [Résolu][Grub] Error 17
Il est inutile de chrooter et de faire des grub-install et blablabla sans
savoir ce qui se passe. Laq preuve que la mentalité windowsienne est
à mettre de coté avec linux. réinstalle et bug
Il faut répondre à ces questions
1- Tu as deux disques, sur quel disque démarre
le pc (voir dans le bios)
2- donne les retours de
sudo fdisk -l
ls /dev/disk/by-uuid
mount
et le contenu du menu.lst
#12 Le 04/12/2007, à 23:37
- buchs
Re : [Résolu][Grub] Error 17
Il est inutile de chrooter et de faire des grub-install et blablabla sans
savoir ce qui se passe. Laq preuve que la mentalité windowsienne est
à mettre de coté avec linux. réinstalle et bugIl faut répondre à ces questions
1- Tu as deux disques, sur quel disque démarre
le pc (voir dans le bios)2- donne les retours de
sudo fdisk -l
ls /dev/disk/by-uuid
mount
et le contenu du menu.lst
à‡a fait 3 ans que je suis sous Linux (juste ma seconde réinstallation)
Mon pc démarre bien sur le premier disque (celui de 80Go)
Pour te donner les retours de ces commandes, faut bien que je chroote non?
Mais bon, comme dis, sous Knoppix (j'ai créé une seconde partition en réinstallant, mais elle n'a rien à voir avec Ubuntu) :
fdisk -l
Disque /dev/hda: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 4863 39062016 83 Linux
/dev/hda2 4864 6079 9767520 83 Linux
Disque /dev/hdc: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdc1 1 19457 156288321 83 Linux
Sous "Ubuntu":
sudo fdisk -l
Bref, ne renvoi rien
Sous Knoppix:
ls /dev/disk/by-uuid
b126a354-eeb2-4c9e-a555-c09f1fd1c290 fd588088-7158-4caf-9dbb-5b46fb95eaf3
b7833672-9fc9-425b-a514-24059933fdcd
Sous "Ubuntu":
sudo ls /dev/disk/by-uuid
ls: /dev/disk/by-uuid: Aucun fichier ou répertoire de ce type
Sous Ubuntu toujours :
mount
/dev/sda2 on / type reiserfs (rw)
Bon, même si le menu.lst n'entre pas en compte dans cette partie, je le mets ici :
cat /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 3
## 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=fd588088-7158-4caf-9dbb-5b46fb95eaf3 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=fd588088-7158-4caf-9dbb-5b46fb95eaf3 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,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=fd588088-7158-4caf-9dbb-5b46fb95eaf3 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
Hors ligne
#13 Le 05/12/2007, à 00:05
- safinaz
Re : [Résolu][Grub] Error 17
Avec le live d'ubuntu
donne le retour de
ls -l /dev/disk/by-uuid
sudo fdisk -l #tu dis que ça ne renvoi rien !!!! drà´le ça, vérifie la connectique des disques
Est ce que tu vois le menu d'entrée au démarrage ou directement erreur 17?
#14 Le 05/12/2007, à 00:12
- willy78
Re : [Résolu][Grub] Error 17
il manque le dièse là
hiddenmenu
Quelques tutos pour le wifi sous Ubuntu:
http://wlety.free.fr/forum
Hors ligne
#15 Le 05/12/2007, à 01:25
- buchs
Re : [Résolu][Grub] Error 17
Résolu, en fait le BIOS a changé de lui même l'ordre de démarrage des disques, en gros en premier il bootait sur le disque ou il y a /home au lieu de /, du coup ça marche moins bien. Une fois le bon oridre remis en place, tout va comme sur des roulettes.
@+
Hors ligne
#16 Le 05/12/2007, à 01:41
- safinaz
Re : [Résolu][Grub] Error 17
Il est inutile de chrooter et de faire des grub-install et blablabla sans
savoir ce qui se passe. Laq preuve que la mentalité windowsienne est
à mettre de coté avec linux. réinstalle et bugIl faut répondre à ces questions
1- Tu as deux disques, sur quel disque démarre
le pc (voir dans le bios)2- donne les retours de
sudo fdisk -l
ls /dev/disk/by-uuid
mount
et le contenu du menu.lst
C'était la question 1 pour laquelle tu avais dit que ça démarre bien sur celui de 80giga
mad, mad
Bref , te revoila avec ubuntu + une installation pour les c..... du p....
#17 Le 06/12/2007, à 03:17
- Neuro
Re : [Résolu][Grub] Error 17
Bon ben me revoilà avec ce message d' errur de grub.
Je me suis aperçu que mon multi boot ne fonctionnait qu' a moitié !
Car j' ai 3 OS sur ma machine : Ubuntu, windows xp, et OpenSuse. Ce dernier refusant de démarrer, j' ai modifié mon fstab et mon menu.lst sans succés car maintenant je ne peut plus rien démarrer !
Je poste depuis le live cd.
sudo fdisk -l :
Disque /dev/sda: 40.0 Go, 40020664320 octets
255 heads, 63 sectors/track, 4865 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006d2a5
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 1946 15631213+ 83 Linux
/dev/sda2 1947 4865 23446867+ 83 Linux
Disque /dev/sdb: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdcb0dcb0
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sdb2 6375 19457 105089197+ f W95 Etendu (LBA)
/dev/sdb5 6375 8924 20482843+ b W95 FAT32
/dev/sdb6 * 8925 8960 289138+ 83 Linux
/dev/sdb7 8961 9358 3196903+ 82 Linux swap / Solaris
/dev/sdb8 9359 14233 39158406 83 Linux
/dev/sdb9 14234 19457 41961748+ 83 Linux
Disque /dev/sdc: 81.9 Go, 81964302336 octets
255 heads, 63 sectors/track, 9964 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f170f16
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 2 9964 80027797+ f W95 Etendu (LBA)
/dev/sdc5 * 2 9964 80027766 7 HPFS/NTFS
Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.
Hors ligne
#18 Le 06/12/2007, à 03:19
- Neuro
Re : [Résolu][Grub] Error 17
ls /dev/disk/by-uuid :
0a272966-5548-4ddf-9257-521509ea6402 65c4b3d2-df57-4099-83a4-3610a69d4a0d
121ee236-91aa-456f-a8ec-89dbc269aa45 8648BDF748BDE659
385F-6EE1 d7f47dba-22c3-43a1-9814-97047d5cc6ca
50974a93-9ffe-4981-a3c6-f1226e2e88aa e344ba8a-887c-4e59-b72d-d6bfc7f4573e
5A24A09324A07423
mount :
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw,mode=0755)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sdb5 on /media/DATA type vfat (rw,nosuid,nodev,shortname=mixed,uid=999,utf8,umask=077,usefree)
/dev/sda1 on /media/disk type ext3 (rw,nosuid,nodev)
/dev/sda2 on /media/disk-1 type ext3 (rw,nosuid,nodev)
/dev/sdb6 on /media/ubuntu type ext3 (rw)
/dev/sdb8 on /media/disk-2 type ext3 (rw,nosuid,nodev)
Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.
Hors ligne
#19 Le 06/12/2007, à 03:22
- Neuro
Re : [Résolu][Grub] Error 17
Le contenu du menu.lst, n' est pas le bon.
# 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=a77c588f-5ae8-4bc8-9c42-3da2f011b330 ro
# kopt_2_6=root=/dev/sda6 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,5)
## 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 locale=fr_FR
## 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=(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.17-10-generic
root (hd1,5)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda6 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd1,5)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda6 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd1,5)
kernel /boot/memtest86+.bin
quiet
boot
### 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/sda1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.
Hors ligne
#20 Le 06/12/2007, à 08:11
- Compte anonymisé
Re : [Résolu][Grub] Error 17
Salut
Quel est ton disque de boot (au niveau du bios)? sda, sdb ou sdc
@+
#21 Le 06/12/2007, à 09:51
- @(°↓°)@
Re : [Résolu][Grub] Error 17
Essaye ceci
Au démarrage ace toi sur la première entrée ubuntu
appui 2 fois sur la touche e
remplace (hd1,5) par (hd0,5)
puis valides, puis appui sur la touche b
#22 Le 06/12/2007, à 16:20
- Neuro
Re : [Résolu][Grub] Error 17
J' ai résolu mon problème ! Merci pour le coup de main. J' ai préféré la réinstallation de la partie racine du système / .
Tout est rentré dans l' ordre. J' ai supprimé au passage ma partition /boot de 128 mo.
Voici donc mon menu.lst actuel et fonctionnel :
# 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=9d58980e-1b00-48c6-b88d-110fe230c816 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,5)
## 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 locale=fr_FR
## 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 7.10, kernel 2.6.22-14-generic
root (hd1,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=9d58980e-1b00-48c6-b88d-110fe230c816 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=9d58980e-1b00-48c6-b88d-110fe230c816 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd1,5)
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 an existing
# linux installation on /dev/sda1.
title openSUSE 10.3 - 2.6.22.12-0.1 (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22.12-0.1-bigsmp root=/dev/disk/by-id/scsi-SATA_WDC_WD400BB-00DWD-WCAD13906707-part1 vga=0x31a resume=/dev/sdb7 splash=silent showopts
initrd /boot/initrd-2.6.22.12-0.1-bigsmp
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Failsafe -- openSUSE 10.3 - 2.6.22.12-0.1 (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22.12-0.1-bigsmp root=/dev/disk/by-id/scsi-SATA_WDC_WD400BB-00DWD-WCAD13906707-part1 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.22.12-0.1-bigsmp
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title openSUSE 10.3 - 2.6.22.12-0.1 (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22.12-0.1-default root=/dev/disk/by-id/scsi-SATA_WDC_WD400BB-00DWD-WCAD13906707-part1 vga=0x31a resume=/dev/sdb7 splash=silent showopts
initrd /boot/initrd-2.6.22.12-0.1-default
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Failsafe -- openSUSE 10.3 - 2.6.22.12-0.1 (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22.12-0.1-default root=/dev/disk/by-id/scsi-SATA_WDC_WD400BB-00DWD-WCAD13906707-part1 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.22.12-0.1-default
savedefault
boot
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
je poste aussi le fichier fstab :
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb6
UUID=9d58980e-1b00-48c6-b88d-110fe230c816 / ext3 defaults,errors=remount-ro 0 1
# /dev/sdb7
UUID=50974a93-9ffe-4981-a3c6-f1226e2e88aa /home ext3 defaults 0 2
# /dev/sda1
UUID=d7f47dba-22c3-43a1-9814-97047d5cc6ca /media/sda1 ext3 defaults 0 2
# /dev/sda2
UUID=0a272966-5548-4ddf-9257-521509ea6402 /media/sda2 ext3 defaults 0 2
# /dev/sdb1
UUID=5A24A09324A07423 /media/sdb1 ntfs defaults,umask=007,gid=46 0 1
# /dev/sdb5
UUID=385F-6EE1 /media/sdb5 vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/sdc5
UUID=8648BDF748BDE659 /media/sdc5 ntfs defaults,umask=007,gid=46 0 1
# /dev/sdb8
UUID=2445bc24-ea6a-4ca0-87f0-1540ed777af7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
Pour demander a devenir membre actif du Parti Pirate, rendez-vous sur la page d'adhésions et suivez les instructions.
Hors ligne
Pages : 1