#26 Le 22/02/2007, à 02:24
- amarock85
Re : problème de grub
ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# /sbin/grub-install /dev/hdc
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
#27 Le 22/02/2007, à 02:25
- best_friend_fr
Re : problème de grub
cd /
ls
cd boot
ls
cd grub
ls
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#28 Le 22/02/2007, à 02:27
- amarock85
Re : problème de grub
root@ubuntu:~# cd /
root@ubuntu:/# ls
bin dev initrd media proc sbin target var
boot etc initrd.img mnt rofs srv tmp vmlinuz
cdrom home lib opt root sys usr
root@ubuntu:/# cd boot
root@ubuntu:/boot# ls
abi-2.6.17-10-generic grub System.map-2.6.17-10-generic
config-2.6.17-10-generic memtest86+.bin vmlinuz-2.6.17-10-generic
root@ubuntu:/boot# cd grub
root@ubuntu:/boot/grub# ls
device.map
root@ubuntu:/boot/grub#
c mieux ?
#29 Le 22/02/2007, à 02:28
- best_friend_fr
Re : problème de grub
ben non
normalement, ca devait être la meme chose que l'autre...
Dans la meme fenêtre, fais un
chroot /mnt/work/ /bin/bash
cd /
ls
cd boot
ls
cd grub
ls
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#30 Le 22/02/2007, à 02:30
- amarock85
Re : problème de grub
root@ubuntu:/boot/grub# chroot /mnt/work/ /bin/bash
root@ubuntu:/# cd /
root@ubuntu:/# ls
bin cdrom home lib mnt root sys var
boot dev initrd lost+found opt sbin tmp vmlinuz
bootmount etc initrd.img media proc srv usr
root@ubuntu:/# cd boot
root@ubuntu:/boot# ls
abi-2.6.17-10-generic memtest86+.bin
config-2.6.17-10-generic System.map-2.6.17-10-generic
grub vmlinuz-2.6.17-10-generic
initrd.img-2.6.17-10-generic
root@ubuntu:/boot# cd grub
root@ubuntu:/boot/grub# ls
default e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2
device.map fat_stage1_5 minix_stage1_5 stage1 xfs_stage1_5
root@ubuntu:/boot/grub#
y a -t-il une solution ?
#31 Le 22/02/2007, à 02:31
- best_friend_fr
Re : problème de grub
maintenant, dans cette meme fenetre, tu fais
/sbin/grub-install /dev/hdc
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#32 Le 22/02/2007, à 02:33
- best_friend_fr
Re : problème de grub
si ca ne marche pas, il faudra télécharger le
super grub disk
http://supergrub.forjamari.linex.org/
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#33 Le 22/02/2007, à 02:34
- amarock85
Re : problème de grub
root@ubuntu:/boot/grub# /sbin/grub-install /dev/hdc
Could not find device for /boot: Not found or not a block device.
root@ubuntu:/boot/grub#
#34 Le 22/02/2007, à 02:34
- best_friend_fr
Re : problème de grub
Bon, ben je sais pas...
Télécharge le disque que je t'ai mis au dessus.
Je ne comprends pas
BOn courage.
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#35 Le 22/02/2007, à 02:36
- amarock85
Re : problème de grub
merci quand même je vais essayer...
#36 Le 22/02/2007, à 16:42
- vin_c
Re : problème de grub
Bonjour,
Même problème ce matin... (mais que s'est-il passé hier ?!?)
J'ai suivi un peu les post du forum sur cette erreur...
Je ne sais pas si toutes les manips que j'ai faites on servi à quelque chose mais ca fonctionne...
La grosse part du travail a été de modifier /boot/grub/menu.lst
et de remplacer les anciennes valeurs (hd0,6) par (hd0,5)
Ne me demandez pas pourquoi le système a changé tout ca...
Note: j'ai utilisé le livecd qui m'a servi à installer ma distro (kubuntu edgy)
1 - monter la partition qui contient linux
(voir ci dessus la commande mount)
2 - lancer grub en mode admin (sudo grub)
(l'installer s'il n'est pas sur votre livecd, voir les posts correspondants)
puis :
grub> find /boot/grub/stage1
il vous affiche la partition qui contient vos infos (chez moi hd0,5)
grub> root (hd0,5)
(remplacer hd0,5 par ce qu'il vous a afficher ^^)
grub> setup (hd0)
grub> quit
3 - vérifier le fichier menu.lst
Suivant où vous avez monté votre partition (par exemple /media)
ls /media/boot/grub/
cat menu.lst
(ca doit afficher le contenu de menu.lst)
vérifier que les valeurs suivant 'root' sont bien les mêmes que celle affichée précédemment (hd0,5)
Dans mon cas, le fichier menu.lst contenait les infos (hd0,6)
J'ai donc modifié les 6 par des 5, rebooté et c'était ok...
J'espère que ca pourra aider...
#37 Le 22/02/2007, à 23:49
- kaki
Re : problème de grub
ouahhhh merciii a vous deux best_frien_fr et vin_c grace a vous j'ai réussi a installer ubuntu sur mon pc
j'étais en galere depuis une semaine.
Par contre comme j'ai essayé plusieurs manip avant de faire la bonne, quand je redémarre mon pc je me retrouve avec 3 choix de linux ??
voici ce que j'ai dans 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=04178c76-d4f3-4926-9ed4-215dada62dff ro
# kopt_2_6=root=/dev/hda5 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)
## 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 (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda5 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 (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,4)
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/hda2
title Microsoft Windows XP dition familiale
root (hd0,1)
savedefault
makeactive
chainloader +1
Laquelle supprimer? (pour l'instant j'ai essayé la premiere et c'est parfait mais je ne sais pas a quoi correspond les 2autres)
Comment faire pour supprimer 2 des 3 linux?
Merci a vous
#38 Le 22/02/2007, à 23:51
- best_friend_fr
Re : problème de grub
Ben, tu les supprimes pas, les 3 sont utiles.
La première est le Linux normal.
La seconde est le Recovery Mode (le mode "sans échec" d'Ubuntu) que tu seras bien content de trouver en cas de problème.
Le 3e est pour tester la mémoire de ton ordinateur. Ca peut servir aussi.
Par contre, tu peux changer l'ordre si ca te gène...
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#39 Le 23/02/2007, à 00:08
- kaki
Re : problème de grub
ok merci beaucoup
je débute sur linux, j'ai trop l'habitude du F8 de windows pour choisir les modes
#40 Le 23/02/2007, à 22:13
- amarock85
Re : problème de grub
Bonsoir,
Moi je suis toujours en pleine galère...
J'ai essayé super grub et il ne veut pas me l'installer...
J'ai tenté avec GAG et là windows démarre mais toujours pas Ubuntu..."amorce corrompu...
Je ne sais plus quoi faire....:(
si quelqu'un a une idée , je suis preneur....
#41 Le 24/02/2007, à 11:50
- amarock85
Re : problème de grub
Bonjour à tous !
Je continue à mettre les mains dans le cambuis et j'ai l'impression que ça progresse.
Suite à un reformatage et une réinstallation:
Voici mon fdisk:
Disque /dev/hdc: 122.9 Go, 122942324736 octets
16 têtes, 63 secteurs/piste, 238216 cylindres
Unités = cylindres de 1008 * 512 = 516096 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdc1 1 31335 15792808+ 7 HPFS/NTFS
La partition 1 ne se termine pas sur une frontière de cylindre.
/dev/hdc2 31350 132489 50974245 83 Linux
La partition 2 ne se termine pas sur une frontière de cylindre.
/dev/hdc3 132489 238202 53279572+ b W95 FAT32
La partition 3 ne se termine pas sur une frontière de cylindre.
/dev/hdc4 31336 31350 7087+ 82 Linux swap / Solaris
La partition 4 ne se termine pas sur une frontière de cylindre.
Les entrées de la table de partitions ne sont pas dans l'ordre du disque
Je poste dès que possible mon menu.
lst
Disque /dev/hdd: 41.1 Go, 41174138880 octets
255 têtes, 63 secteurs/piste, 5005 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdd1 2 5005 40194630 c W95 FAT32 (LBA)
#42 Le 24/02/2007, à 12:28
- amarock85
Re : problème de grub
Cool !! on progresse j'ai mon 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,2)
# 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=49e96b87-e37a-492e-9b15-b08248240d87 ro
# kopt_2_6=root=/dev/hdc2 ro
## 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 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 (hd0,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc2 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 (hd0,2)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc2 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,2)
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/hdc1
title Microsoft Windows XP dition familiale
root (hd0,0)
savedefault
makeactive
chainloader +1
#43 Le 24/02/2007, à 13:15
- amarock85
Re : problème de grub
Alors maintenant quand je lance le pc j'ai çà:
Grub loading stage 1.5.
grub loading, please wait
erreur 2
Je ne sais pas si ça fait avancer le shmilblick.... j'ai modifié le menu lst suivant la méthode plus haut
Si une bonne âme pouvait me donner un coup de main, elle serait la bienvenue:)
Je sais que ubuntu se mérite mais à ce point là.....:|
je suis tetu et je ne lacherai pas l'affaire ...!!
#44 Le 24/02/2007, à 13:26
- amarock85
Re : problème de grub
En tapant le code:
root@ubuntu:/# ls -l /boot/grub
total 196
-rw-r--r-- 1 root root 197 2007-02-24 01:49 default
-rw-r--r-- 1 root root 30 2007-02-24 01:49 device.map
-rw-r--r-- 1 root root 7508 2007-02-24 01:49 e2fs_stage1_5
-rw-r--r-- 1 root root 7332 2007-02-24 01:49 fat_stage1_5
-rw-r--r-- 1 root root 16 2007-02-24 01:49 installed-version
-rw-r--r-- 1 root root 8128 2007-02-24 01:49 jfs_stage1_5
-rw-r--r-- 1 root root 4252 2007-02-24 12:57 menu.lst
-rw-r--r-- 1 root root 4252 2007-02-24 02:51 menu.lst~
-rw-r--r-- 1 root root 6804 2007-02-24 01:49 minix_stage1_5
-rw-r--r-- 1 root root 9076 2007-02-24 01:49 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 2007-02-24 01:49 stage1
-rw-r--r-- 1 root root 105652 2007-02-24 01:49 stage2
-rw-r--r-- 1 root root 8764 2007-02-24 01:49 xfs_stage1_5
#45 Le 24/02/2007, à 13:36
- best_friend_fr
Re : problème de grub
Salut
Je ne sais pas si c'est ca, mais ton menu.lst me semble incohérent.
En gros, tes root (hd0,2) correspondent à hda3
et sur la ligne d'en dessous, c'est hdc2.
Si tu es sur que tes linux sont sur hda3, tu remplace tous les hdc2 par des hda3.
So tu es sur que tous tes linux sont sur des hdc, tu remplace tes (hd0,2) par (hd2,1).
Si en plus, grub est installé sur hdc2, il faut remplacer le groot par (hd2,1)
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#46 Le 24/02/2007, à 13:36
- best_friend_fr
Re : problème de grub
Profites-en pour nous donner ton device.map (avant de modifier)
Dernière modification par best_friend_fr (Le 24/02/2007, à 13:37)
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#47 Le 24/02/2007, à 13:41
- amarock85
Re : problème de grub
Merci best_friend !!
Pour le device map je tape quel code
je débute en linux...
#48 Le 24/02/2007, à 13:44
- best_friend_fr
Re : problème de grub
gedit /boot/grub/device.map
Dernière modification par best_friend_fr (Le 24/02/2007, à 13:45)
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#49 Le 24/02/2007, à 13:51
- amarock85
Re : problème de grub
Je dois être neuneu....
Je n'arrive pas à trouver mon device map c'est vierge.....:(
#50 Le 24/02/2007, à 13:53
- best_friend_fr
Re : problème de grub
ya un point entre device et map...
Fais
cd /boot/grub
gedit device
et complète avec tab
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne