#26 Le 09/08/2007, à 23:05
- belga
Re : [résolu]probléme grub sur dd USB
dans la fenêtre qui s'ouvre tu trouves la ligne
## ## End Default Options ##
et tu rajoutes ce que j'ai donné
tu as encore ceci ?
ubuntu@ubuntu:~$ sudo mount -o rw /dev/sde1 /panne
mount: périphérique spécial /dev/sde1 n'existe pas
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#27 Le 09/08/2007, à 23:24
- belga
Re : [résolu]probléme grub sur dd USB
tu peux même essayer de faire ceci, au démarrage
dans la liste: tu te places sur la ligne ubuntu
Ubuntu, kernel 2.6.20-15-generic
tu appuies 2 fois sur e et tu changes
(hd2,0) en (hd0,0) puis tu appuies sur return
puis sur b ça devrait booter alors.
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#28 Le 10/08/2007, à 17:48
- chavrou29
Re : [résolu]probléme grub sur dd USB
salut "belga"
## ## End Default Options ###, je ne vois nul part cette ligne faut il la taper.
qd j'ai fait sudo gedit /panne/boot/grub/menu.lst une fenetre c'est ouverte faut il copier dans celle ci le "title ... etc"
je bloque !!
Hors ligne
#29 Le 10/08/2007, à 17:53
- chavrou29
Re : [résolu]probléme grub sur dd USB
j'ai relu ton post, je n'avais pas fait correctement par contre il ne veut enregistrer il me dit
Impossible d'enregistrer le fichier /panne/boot/grub/menu.lst. faites "annuler"
il me donne pas d'autres solutions.?
Hors ligne
#30 Le 10/08/2007, à 17:55
- chavrou29
Re : [résolu]probléme grub sur dd USB
est ce que le "root" n'est pas (hd2,0) ? dans la copie à faire
@+
Hors ligne
#31 Le 10/08/2007, à 19:56
- chavrou29
Re : [résolu]probléme grub sur dd USB
message à "belga"
SUPER, tes posts étaient Nickel, c'est plus moi qui ne s'avait pas bien y faire.
la mise à jour n'a pas complètement fonctionné. il m'a mis ce message
W: Échec de la récupération de http://fr.archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2007e-0ubuntu0.7.04_all.deb
404 Not Found
sinon dois je faire d'autres manips ?
Hors ligne
#32 Le 10/08/2007, à 20:03
- chavrou29
Re : [résolu]probléme grub sur dd USB
au redemarrage après la maj je dois refaire le chgt de root et il m'affiche deux version ubuntu ?
Hors ligne
#33 Le 10/08/2007, à 22:13
- belga
Re : [résolu]probléme grub sur dd USB
je ne comprends plus rien qu'as tu fait?
As tu pu modifier le menu.lst
ou as tu essayer avec le message 27
au redemarrage après la maj je dois refaire le chgt de root et il m'affiche deux version ubuntu ?
maj, je conclue que tu as réussit à lancer puis tu as fait une mise à jour
génial.
Tu aurais du attendre, pas grave,
poste le menu.lst
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#34 Le 10/08/2007, à 22:20
- chavrou29
Re : [résolu]probléme grub sur dd USB
belga est tu là ?
je n'arrive pas à fixer (hd0,0) dans le grub
j'ai bien lu un tuto mais il demande de faire "Et là normalement ça marche.
Pour régler définitivement le problème du menu de Grub (c'est quand même chiant à faire à chaque fois), éditer en tant que root (clic-droit>actions>éditer en tant que root) le fichier /boot/grub/menu.lst, et changer la ligne
Code:
# groot=(hd1,0)
(ou similaire)
en
Code:
# groot=(hd0,x)
Comme ça à chaque màj du noyau, le menu est ok automatiquement.
Bon, la première fois, il faut également changer les lignes du genre
Code:
title Ubuntu, kernel 2.6.20-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=blablabla ro splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
en remplaçant juste
Code:
root (hd1,0)
par
Code:
root (hd0,x)
je vois ce qu'il y a à faire mais je ne sai pas quelle ligne de commande je dois taper en premier
peux tu m'expliquer?
Merci
Hors ligne
#35 Le 10/08/2007, à 22:31
- belga
Re : [résolu]probléme grub sur dd USB
Bien sûr mais tu es en live ou pas, je suppose que non pour la suite
pour ouvrir le menu.lst
sudo gedit /boot/grub/menu.lst
un long fichier s'ouvre dans lequel il y a la ligne
# groot=(hdx,y)
remplace cette ligne par
# groot=(hd0,0)
enregistre puis
tape
sudo update-grub
normalement tout est ok
poste avant de démarrer
cat /boot/grub/menu.lst
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#36 Le 10/08/2007, à 22:32
- chavrou29
Re : [résolu]probléme grub sur dd USB
il faut se mettre en live ?
Hors ligne
#37 Le 10/08/2007, à 22:36
- belga
Re : [résolu]probléme grub sur dd USB
Bien sûr mais tu es en live ou pas, je suppose que non pour la suite
pour ouvrir le menu.lst
c'est pas clair,
réponse: non
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#38 Le 10/08/2007, à 22:36
- chavrou29
Re : [résolu]probléme grub sur dd USB
je poste avant de demarrer
patrick@pat-feisty-usb:~$ 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 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=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd2,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/hda2
title Microsoft Windows XP �dition familiale
root (hd0,1)
savedefault
makeactive
chainloader +1
patrick@pat-feisty-usb:~$
Hors ligne
#39 Le 10/08/2007, à 22:38
- belga
Re : [résolu]probléme grub sur dd USB
inutile de démarre, fais ce que je dis au message 35
(pas en live)
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#40 Le 10/08/2007, à 22:40
- chavrou29
Re : [résolu]probléme grub sur dd USB
Réponse de update :
patrick@pat-feisty-usb:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.20-16-generic
Found kernel: /boot/vmlinuz-2.6.20-15-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
je te poste "cat" après enregistrement
Hors ligne
#41 Le 10/08/2007, à 22:42
- chavrou29
Re : [résolu]probléme grub sur dd USB
réponse "cat"
patrick@pat-feisty-usb:~$ 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 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=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,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/hda2
title Microsoft Windows XP �dition familiale
root (hd0,1)
savedefault
makeactive
chainloader +1
je pense que le résultat est positif à la lecture !!
Hors ligne
#42 Le 10/08/2007, à 22:45
- chavrou29
Re : [résolu]probléme grub sur dd USB
ça à l'air de le faire !!
es tu d'accord ?
dois je faire d'autres manips suite à celles ci.
merci de me préciser
Hors ligne
#43 Le 10/08/2007, à 22:48
- belga
Re : [résolu]probléme grub sur dd USB
non
tu peux redémarrer
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#44 Le 10/08/2007, à 22:59
- chavrou29
Re : [résolu]probléme grub sur dd USB
suite à cette longue remise en place, je peux te confirmer que ça marche bien maintenant.
je me retrouve part contre avec deux ubuntu une version 2.6.20.15 et une 2.6.20.16
je vais regarder le forum pour voir ce qui a faire
Un grand merci,
Hors ligne
#45 Le 10/08/2007, à 23:05
- chavrou29
Re : [résolu]probléme grub sur dd USB
Salut belga, merci et @+
je posterai demain un message résolu si tout est ok au redemarrage.
Hors ligne
#46 Le 10/08/2007, à 23:07
- belga
Re : [résolu]probléme grub sur dd USB
il suffit de
sudo gedit /boot/grub/menu.lst
puis placer des dièses # devant les lignes suivantes
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro single
initrd /boot/initrd.img-2.6.20-15-generic
Ne les supprime pas pour l'instant, si tu merdes le 2.6.20,
il te suffira de retirer les # avec un live
pour retrouver ubuntu avec le noyau
2.6.15.
Si un jour tu as besoin de place, tu peux désinstaller le noyau
2.6.15 avec synaptic pour faire de la place. Dans ce cas tu peux aussi supprimer
les lignes.
Rajoute résolu en cliquant sur modifier sur le message 1.
Bravo
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne