Pages : 1
#1 Le 07/05/2008, à 15:18
- Lovipa
Ubuntu 8.04 sur DD externe : error 17 grub
Bonjour à tous.
J'ai installer Ubuntu 8.04 sur mon disque dur externe de 160 go tout en souhaitant un dual boot avec Vista, installé sur le disque dur interne de mon pc, naturellement.
Mais je ne souhaite pas écraser le MBR de windows, et j'ai donc choisi, lors de l'installation d'ubuntu, d'installer grub sur la MBR du mon DD externe, j'ai donc choisi "sdb", mon disque interne étant désigné par "sda".
Mais après l'installation, lors du redémarrage, j'arrive au menu de grub, et quand je choisi ubuntu, il me dit qu'il y a une erreur 17. Et quand je débranche le DD externe et que je redémarre, Windows se lance normalement, comme avant l'installation de Ubuntu.
Petite précision : dans le bios, l'ordre de boot que j'ai mis est :
- lecteur cd
- disque USB
- disque interne
J'ai donc décidé de ma lancer en quête d'information et d'aide, armé de patience, et accompagné de mon plus fidèle compagnon, Google. Et j'ai bien naturellement trouvé des gens qui était dans le même cas que moi.
J'ai donc épluché plusieurs forum en essayant les différentes manipulations proposées, mais rien à y faire, je n'arrive pas à résoudre le problème.
Je me vais donc quérir votre aide, vous les chevaliers prêt à tout pour vaincre les problèmes informatique (oula, je m'enflamme).
Voilà les différents résultats des différentes commandes qui je crois vous seront nécéssaires pour m'aider :
find /boot/grub/stage1
(hd1,0)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
Error 16: Inconsistent filesystem structure
sudo fdisk -l
Disque /dev/sda: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0xd2061287
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 1045 8388608 27 Inconnu
/dev/sda2 * 1045 19458 147899392 7 HPFS/NTFS
Disque /dev/sdb: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x80d1a79c
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 729 5855661 83 Linux
/dev/sdb2 730 851 979965 82 Linux swap / Solaris
/dev/sdb3 852 1459 4883760 83 Linux
/dev/sdb4 1460 19457 144568935 83 Linux
sudo parted /dev/sdb unit chs print
Disque /dev/sdb : 19457,80,62
Taille des secteurs (logique/physique) : 512o/512o
Géométrie BIOS (cylindre, tête, secteur) : 19457,255,63. Chaque cylindre est 8225kB.
Table de partitions : msdos
Numéro Début Fin Type Système de fichiers Fanions
1 0,1,0 728,254,62 primaire ext3 amorce
2 729,0,0 850,254,62 primaire linux-swap
3 851,0,0 1458,254,62 primaire ext3
4 1459,0,0 19456,254,62 primaire
# 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=f5c917c1-d66a-4e0d-a37d-24b5be9895c0 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## 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=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 (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=f5c917c1-d66a-4e0d-a37d-24b5be9895c0 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 (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=f5c917c1-d66a-4e0d-a37d-24b5be9895c0 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04, memtest86+
root (hd1,0)
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/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
chainloader +1
Voilà, si vous avez besoin d'autres informations, n'hésitez surtout pas.
Merci beaucoup d'avance pour l'aide apportée.
#2 Le 07/05/2008, à 16:21
- denis_aec
Re : Ubuntu 8.04 sur DD externe : error 17 grub
Peux-tu essayer en modifiant ça :
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=f5c917c1-d66a-4e0d-a37d-24b5be9895c0 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
A priori, quand tu bootes sur DD externe, il est devenu hd0 ...
Si c'est bien ça, il faudra aussi modifier les autres entrées, et aussi la ligne
groot=(hd1,0) => hd0,0
Hors ligne
#3 Le 07/05/2008, à 17:42
- Lovipa
Re : Ubuntu 8.04 sur DD externe : error 17 grub
Merci tout d'abord de ton aide.
Je peux pas faire les changements dans menu.lst, il me dit que j'ai pas les permissions nécéssaires.
Comment puis-je faire pour effectuer les changements ??
Hors ligne
#4 Le 07/05/2008, à 17:56
- Lovipa
Re : Ubuntu 8.04 sur DD externe : error 17 grub
C'est bon, j'ai trouver la commande pour pouvoir changer la menu.lst, j'ai fait les changements que tu m'a dis, je redémarre, et nikel, menu grub, je choisi Ubuntu, et il démarre, plus d'erreur.
Merci beaucoup.
Par contre j'aimerais comprendre pourquoi avec la commande "find", grub est considéré dans hd1, comme le système d'ailleur, et puis au boot, ca y'est, il change en hd0, pas trop trop compris, donc si on pouvais m'éclaircir, merci.
Hors ligne
#5 Le 07/05/2008, à 18:37
- denis_aec
Re : Ubuntu 8.04 sur DD externe : error 17 grub
Quand tu as lancé le find, tu avais booté sur le cd, et le bios a reconnu les disques dans un certain ordre. Quand tu bootes sur un certain disque, il devient le "0", et les autres sont reconnus ensuite, d'où le plat de nouilles ...
Dernière modification par denis_aec (Le 07/05/2008, à 18:38)
Hors ligne