Pages : 1
#1 Le 12/09/2008, à 23:58
- utodeb
[Résolu] Grub sur DD externe
Bonjour,
J'essaie d'installer ubuntu sur un vieux pc qui n'a de lecteur de cd-rom.
J'ai donc utiliser mon portable pour installer (installation minimale) ubuntu sur le disque du fixe.
Mais je me retrouve avec une erreur grub 18
Voilà quelques retour de commande :
utodeb@utodeb-laptop:~$ 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: 0x43334332
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 7837 62950671 83 Linux
/dev/sda2 7838 9940 16892347+ 5 Extended
/dev/sda3 9941 13765 30724312+ 83 Linux
/dev/sda4 13766 19457 45720990 83 Linux
/dev/sda5 7838 7971 1076323+ 82 Linux swap / Solaris
/dev/sda6 7972 9940 15815961 83 Linux
Disque /dev/mmcblk0: 2040 Mo, 2040528896 octets
29 heads, 28 sectors/track, 4908 cylinders
Units = cylindres of 812 * 512 = 415744 bytes
Identifiant disque: 0x00000000
Périphérique Amorce Début Fin Blocs Id Système
/dev/mmcblk0p1 * 1 4909 1992580+ 6 FAT16
Disque /dev/sdb: 250.0 Go, 250059350016 octets
255 heads, 63 sectors/track, 30401 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x0ac7c2bd
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 1 20246 162625963+ 5 Extended
/dev/sdb5 1 18849 151404529+ 83 Linux
/dev/sdb6 * 18850 20124 10241406 83 Linux
/dev/sdb7 20125 20246 979933+ 82 Linux swap / Solaris
utodeb@utodeb-laptop:~$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 2297896f-ba2e-47e9-853e-91b3c06a88b0 -> ../../sda4
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 3a4aed54-7579-4840-b92e-c389f4321734 -> ../../sda3
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 726eb38a-f970-4e5c-a299-04554d230279 -> ../../sdb6
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 79f0426e-f3c3-419f-9b05-a2cc2bef88bc -> ../../sdb7
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 ac0c7540-a9c7-44df-9249-068d4b658d9f -> ../../sda6
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 bf4ff307-9152-42de-94e0-c7cd31db67b5 -> ../../sda1
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 c012c27d-13e0-4961-af10-cec93f105f94 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-09-12 23:42 caa7aa03-84e8-4c1a-b71a-dc5a078dcdf5 -> ../../sdb5
Le nouvel ubuntu est installé sur sdb6 ce qui correspond en grub à hd(1,5)
Aprés quelques recherches voila ce que j'ai fait
sudo grub
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/menu.lst
(hd0,5)
(hd1,5)
grub> root (hd1,5)
grub> setup (hd1,5)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1,5)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1,5)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd1,5) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub>
J'ai ensuite éditer le menu.lst du nouveau système
# 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=726eb38a-f970-4e5c-a299-04554d230279 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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
## 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 (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=726eb38a-f970-4e5c-a299-04554d230279 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=726eb38a-f970-4e5c-a299-04554d230279 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd0,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/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode) (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro single
initrd /boot/initrd.img-2.6.24-21-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-20-generic (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-20-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro quiet splash
initrd /boot/initrd.img-2.6.24-20-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-20-generic (recovery mode) (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-20-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro single
initrd /boot/initrd.img-2.6.24-20-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda6)
root
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=ac0c7540-a9c7-44df-9249-068d4b658d9f ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda6.
title Ubuntu 8.04.1, memtest86+ (on /dev/sda6)
root
kernel /boot/memtest86+.bin
savedefault
boot
Enfin les UUID correspondent bien à sdb6 et j'ai modifié les (hd1,5) en hd(0,5)
Voila je veux bien un coup de main parce que là je vois pas trop où est le problème
merci
++
Dernière modification par utodeb (Le 13/09/2008, à 14:37)
Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS
Hors ligne
#2 Le 13/09/2008, à 10:39
- denis_aec
Re : [Résolu] Grub sur DD externe
18 : Selected cylinder exceeds maximum supported by BIOS
Cette erreur est retournée quand une tentative de lecture est réalisée sur un bloc au-delà de ceux gérés par de BIOS. Elle se produit généralement si votre disque est plus grand que les limites du BIOS (512MO pour les disques (E)IDE sur les anciennes machines, ou plus de 8GO en général).
Ton repertoire /boot est sur sda6, bien trop "loin" pour que ton bios puisse y accéder ... Il faudrait peut-être recopier le contenu de /boot sur sda1 et modifier les paramètres du menu.lst et réinitialiser grub (root et setup). A essayer, sans garantie, je n'ai jamais pratiqué cela !
Hors ligne
#3 Le 13/09/2008, à 10:48
- utodeb
Re : [Résolu] Grub sur DD externe
OK
En fait j'ai remplacé le dd interne de l'ordinausore par mon dd externe (200 gb) parce qu'il était vraiment petit (5 gb).
Donc il faudrait que je recommence mon installation mais en installant l'os sur la 1ère partition ?
merci
Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS
Hors ligne
#4 Le 13/09/2008, à 11:07
- denis_aec
Re : [Résolu] Grub sur DD externe
Ca devrait aller mieux
Hors ligne
#5 Le 13/09/2008, à 12:31
- utodeb
Re : [Résolu] Grub sur DD externe
Re,
Super ça marche, merci
Peut-etre pourras-tu m'aider pour la suite
J'ai un autre problème qui est que ma carte réseau ethernet n'est reconnu
En fait elle est reconnu par
lspci
00:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139c/8139c+ (rev10)
mais pas par ifconfig qui me retourne que la boucle lo
Le système est 7.10 mais c'est une installation minimal donc je sais pas si il y a les outils pour arranger ça dessus et je n'ai accès qu'à la ligne de commande.
Si tu veux d'autre retour de commande hésite pas.
Merci encore
Ps :si tu pense/préfère que j'ouvre un nouveau post pas de problème
++
Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS
Hors ligne
#6 Le 13/09/2008, à 14:19
- denis_aec
Re : [Résolu] Grub sur DD externe
Pas d'idée là-dessus, fais un nouveau post, tu auras plus de chance de trouver qq1 de compétent.
Hors ligne
#7 Le 13/09/2008, à 14:37
- utodeb
Re : [Résolu] Grub sur DD externe
Merci
En fait je crois que j'ai réussi
++
Smile today tomorrow will be worse
Simple comme Ubuntu n°2 10.04 LTS
Hors ligne
Pages : 1