#1 Le 08/08/2007, à 22:10
- chavrou29
[résolu]probléme grub sur dd USB
bonsoir,
je boot en dd usb mais un message me donne "erreur 22: no such partition.
en "c" j'ai fait grub> find /boot/grub/stage1 et déja j'ai un souci je suis en qwerty
il me répond ( hd0,0) et ( hd0,2) donc est ce que j'ai deux grub.
il faut savoir que j'ai fait deux fois l'install en pensant avoir effacer la première.
et enfin je vois deux ubuntu kernel ....avec recovery puis deux ubuntu kernel (on /dev/sda1 )... de meême avec recovery là ??? je comprends pas
merci de me repondre " un novice"
Dernière modification par chavrou29 (Le 11/08/2007, à 21:31)
Hors ligne
#2 Le 08/08/2007, à 22:59
- belga
Re : [résolu]probléme grub sur dd USB
poste le retout de sudo fdisk -l
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#3 Le 09/08/2007, à 21:08
- chavrou29
Re : [résolu]probléme grub sur dd USB
je te joins le post
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 383 3076416 12 Compaq diagnostics
/dev/hda2 * 384 5031 37335060 c W95 FAT32 (LBA)
/dev/hda3 5032 7346 18595237+ f W95 Etendu (LBA)
/dev/hda4 7347 9729 19141447+ c W95 FAT32 (LBA)
/dev/hda5 5032 7236 17711631 b W95 FAT32
Disque /dev/hdb: 8455 Mo, 8455200768 octets
255 têtes, 63 secteurs/piste, 1027 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 1 978 7855753+ b W95 FAT32
/dev/hdb2 979 1027 393592+ 5 Extended
Disque /dev/sde: 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/sde1 1 5954 47825473+ 83 Linux
/dev/sde2 9298 9729 3470040 5 Extended
/dev/sde3 * 5955 9297 26852647+ 83 Linux
/dev/sde5 9448 9729 2265133+ 82 Linux swap / Solaris
/dev/sde6 9298 9447 1204812 82 Linux swap / Solaris
Les entrées de la table de partitions ne sont pas dans l'ordre du disque
Disque /dev/sdf: 256 Mo, 256901120 octets
16 têtes, 32 secteurs/piste, 980 cylindres
Unités = cylindres de 512 * 512 = 262144 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdf1 * 1 980 250864 e W95 FAT16 (LBA)
J'ai deux swap !! pas bon ?
Hors ligne
#4 Le 09/08/2007, à 21:14
- chavrou29
Re : [résolu]probléme grub sur dd USB
je te post le find/boot/grub..
ubuntu@ubuntu:~$ sudo grub --batch
Probing devices to guess BIOS drives. This may take a long time.
[ 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/stage1
find /boot/grub/stage1
(hd2,0)
(hd2,2)
j'ai deux infos hd !! hum!!
"help" @+
Hors ligne
#5 Le 09/08/2007, à 21:19
- chavrou29
Re : [résolu]probléme grub sur dd USB
Belga si tu vois mes messages merci de m'expliquer ou est la racine/ et le /home sur le post @+
Hors ligne
#6 Le 09/08/2007, à 21:35
- belga
Re : [résolu]probléme grub sur dd USB
Tu as fait deux installations et tu as deux /
tu as deux /home qui se trouvent dans les racines respectivent.
Deux swap n'a perturbent pas le fonctionnement.
On va monter sde1
sudo mkdir /panne
sudo mount -o rw /dev/sde1 /panne
Poste les retours de
cat /panne/boot/grub/menu.lst
cat /panne/boot/grub/device.map
ls -l /dev/disk/by-uuid/
cat /panne/etc/fstab
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#7 Le 09/08/2007, à 21:57
- chavrou29
Re : [résolu]probléme grub sur dd USB
il y en a des infos
ubuntu@ubuntu:~$ cat /panne/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-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
2sd post/
ubuntu@ubuntu:~$ cat /panne/boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/sde
3eme post/
ubuntu@ubuntu:~$ ls -l /dev/disk/by -uuid/
ls: option invalide -- /
Pour en savoir davantage, faites: « ls --help ».
4eme post/
ubuntu@ubuntu:~$ cat /panneetc/fstab
cat: /panneetc/fstab: Aucun fichier ou répertoire de ce type
voila
Hors ligne
#8 Le 09/08/2007, à 22:00
- belga
Re : [résolu]probléme grub sur dd USB
Recommence
ls -l /dev/disk/by-uuid/
cat /panne/etc/fstab
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#9 Le 09/08/2007, à 22:02
- chavrou29
Re : [résolu]probléme grub sur dd USB
ok
ubuntu@ubuntu:~$ ls -l /dev/disk/by -uuid/
ls: option invalide -- /
Pour en savoir davantage, faites: « ls --help ».
ubuntu@ubuntu:~$ cat /panneetc/fstab
cat: /panneetc/fstab: Aucun fichier ou répertoire de ce type
ubuntu@ubuntu:~$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2007-08-09 21:41 2887-67C3 -> ../../hda5
lrwxrwxrwx 1 root root 10 2007-08-09 21:41 3007-17F2 -> ../../hda1
lrwxrwxrwx 1 root root 10 2007-08-09 21:58 300ddacf-1ab0-4d5d-9aa4-be250ad67cf2 -> ../../sde3
lrwxrwxrwx 1 root root 10 2007-08-09 21:41 320D-180E -> ../../hda2
lrwxrwxrwx 1 root root 10 2007-08-09 21:58 460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 -> ../../sde1
lrwxrwxrwx 1 root root 10 2007-08-09 21:58 58ae1883-5a45-4597-ac0c-6741568695ed -> ../../sde6
lrwxrwxrwx 1 root root 10 2007-08-09 21:58 88E9-344E -> ../../sdf1
lrwxrwxrwx 1 root root 10 2007-08-09 21:41 D071-09D1 -> ../../hda4
lrwxrwxrwx 1 root root 10 2007-08-09 21:41 E41D-16A3 -> ../../hdb1
lrwxrwxrwx 1 root root 10 2007-08-09 21:58 f8a9ce65-9b9f-4c71-9b08-4a93c8c159fe -> ../../sde5
ubuntu@ubuntu:~$ cat /panne/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sde1
UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 / ext3 defaults,errors=remount-ro 0 1
# /dev/sde5
UUID=f8a9ce65-9b9f-4c71-9b08-4a93c8c159fe none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
ci joint merci
Hors ligne
#10 Le 09/08/2007, à 22:10
- chavrou29
Re : [résolu]probléme grub sur dd USB
faut il refaire l'install ?
merci de passer du temps pour mon problème .
Hors ligne
#11 Le 09/08/2007, à 22:18
- belga
Re : [résolu]probléme grub sur dd USB
non pas réinstaller.
tape
sudo grub
grub> root (hd2,0)
grub> setup (hd2) (hd2,0)
grub> quit
Si tu n'as pas de message d'erreur,
redémarre, va dans le bios et demande de démarrer
sur le disque usb
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#12 Le 09/08/2007, à 22:24
- chavrou29
Re : [résolu]probléme grub sur dd USB
ok je teste je te poste la reponse demain , dodo après ça !! salut @+
Hors ligne
#13 Le 09/08/2007, à 22:26
- chavrou29
Re : [résolu]probléme grub sur dd USB
tu éteins le pc pour aller dans bios ? question à la con car je connais que la solution éteindre et rallumer !!!
Hors ligne
#14 Le 09/08/2007, à 22:28
- chavrou29
Re : [résolu]probléme grub sur dd USB
le post avant de faire "quit"
[ 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> root (hd2,0)
grub> setup (hd2) (hd2,0)
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 (hd2)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd2) (hd2)1+17 p (hd2,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
Hors ligne
#15 Le 09/08/2007, à 22:29
- belga
Re : [résolu]probléme grub sur dd USB
ok
attends avant de redémarrer
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#16 Le 09/08/2007, à 22:34
- belga
Re : [résolu]probléme grub sur dd USB
tap
sudo gedit /panne/boot/grub/menu.lst
rajoute ceci (copie et colle) après ## ## End Default Options ##
## ## End Default Options ##
title test
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
Enregistre et redémarre, tu devrais voir
une liste comme ceci
test
Ubuntu, kernel 2.6.20-15-generic
.
.
.
tu testes les deus premières
Dernière modification par belga (Le 09/08/2007, à 22:35)
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#17 Le 09/08/2007, à 22:46
- chavrou29
Re : [résolu]probléme grub sur dd USB
je reviens j'ai testé avant ton post et au redemarrage il m'a mis "erreur 17 cannot mount selected partition "
je vais de suite faire ton dernier post
Hors ligne
#18 Le 09/08/2007, à 22:49
- chavrou29
Re : [résolu]probléme grub sur dd USB
le collage tu le fais dans la fenetre gedit ?
ou sur terminal ?
Hors ligne
#19 Le 09/08/2007, à 22:50
- belga
Re : [résolu]probléme grub sur dd USB
remonte ta partition dans panne comme avant
dans la fenêtre gedit
Dernière modification par belga (Le 09/08/2007, à 22:50)
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#20 Le 09/08/2007, à 22:52
- belga
Re : [résolu]probléme grub sur dd USB
en résumé, après chaque démarrage en live tu fais
sudo mkdir /panne
sudo mount -o rw /dev/sde1 /panne
puis tu continues avec le poste 16
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#21 Le 09/08/2007, à 22:55
- chavrou29
Re : [résolu]probléme grub sur dd USB
je ne comprends ton post 19 !! et le but du 20 !! je suis un peu perdu
Hors ligne
#22 Le 09/08/2007, à 22:57
- belga
Re : [résolu]probléme grub sur dd USB
oui je sais je suis compliqué
le 20 est l'explication du 19.
Comme tu as redémarré, sde1 n'est plus monté sur /panne
Donc, tu commence par le message 20 puis tu continues
avec le message 16.
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#23 Le 09/08/2007, à 22:57
- chavrou29
Re : [résolu]probléme grub sur dd USB
ubuntu@ubuntu:~$ sudo mkdir /panne
ubuntu@ubuntu:~$ sudo mount -o rw /dev/sde1 /panne
mount: périphérique spécial /dev/sde1 n'existe pas
tu comprends quelques choses !!
je vais me coucher " la nuit porte conseil" @+
Hors ligne
#24 Le 09/08/2007, à 23:00
- chavrou29
Re : [résolu]probléme grub sur dd USB
ton copier coller tu le post dans la fenetre qui s'ouvre ou sur le terminal ?
j'ai pas envie de faire des "humm"..
Hors ligne
#25 Le 09/08/2007, à 23:05
- chavrou29
Re : [résolu]probléme grub sur dd USB
post du terminal !!
ubuntu@ubuntu:~$ sudo gedit /panne/boot/grub/menu.lst
** (gedit:10047): WARNING **: Hit unhandled case 1 (Fichier non trouvé) in gedit_unrecoverable_saving_error_message_area_new.
** (gedit:10047): WARNING **: Hit unhandled case 1 (Fichier non trouvé) in gedit_unrecoverable_saving_error_message_area_new.
ubuntu@ubuntu:~$ title test
bash: title : commande introuvable
ubuntu@ubuntu:~$ root (hd0,0)
bash: erreur de syntaxe près du jeton `hd0,0' inattendu
ubuntu@ubuntu:~$ kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=460f2bdd-d5d8-4e6d-a412-bdbf9b0e1769 ro quiet splash locale=fr_FR
bash: kernel : commande introuvable
ubuntu@ubuntu:~$ initrd /boot/initrd.img-2.6.20-15-generic
bash: initrd : commande introuvable
ubuntu@ubuntu:~$ quiet
bash: quiet : commande introuvable
ubuntu@ubuntu:~$ savedefault
bash: savedefault : commande introuvable
Hors ligne