Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#51 Le 24/02/2007, à 13:57

amarock85

Re : problème de grub

ça ne fonctionne pas...apparemment le repertoire n'existe pas:

ubuntu@ubuntu:~$ cd /boot/grub
bash: cd: /boot/grub: Aucun fichier ou répertoire de ce type
ubuntu@ubuntu:~$ gedit device

puis le device est vierge...

#52 Le 24/02/2007, à 14:00

best_friend_fr

Re : problème de grub

tout à l'heure, tu as fait un

ls -l /boot/grub

qui a marché.

Ce qu'il faut savoir, c'est qu'un certain nombre d'opérations de linux sont attachée à une console. C'est apparemment le cas du chroot. Donc quand tu fermes la console en question, tu dois refaire la procédure du (normalement, seulement le chroot)

Donc refait les étapes qui t'ont permis de faire la commande ls, et essaye de ne  pas fermer la console


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

#53 Le 24/02/2007, à 14:08

amarock85

Re : problème de grub

ok j'ai compris j'ai refait la manip de tout à l'heure mais malheureusement ça donne ça:

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
root@ubuntu:/# gedit /boot/grub/device.map
cannot open display:
Exécuter « gedit --help » pour obtenir la liste complète des options en ligne de commande.
root@ubuntu:/# cd /boot/grub
root@ubuntu:/boot/grub# gedit device
cannot open display:
Exécuter « gedit --help » pour obtenir la liste complète des options en ligne de commande.
root@ubuntu:/boot/grub#

#54 Le 24/02/2007, à 14:12

best_friend_fr

Re : problème de grub

le fichier à ouvrir est

device.map

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

#55 Le 24/02/2007, à 14:19

amarock85

Re : problème de grub

j'ai bien compris ...
Mais le code ne fonctionne pas même réponse que plus haut....:(

#56 Le 24/02/2007, à 14:40

best_friend_fr

Re : problème de grub

tu dois ouvrir le fichier device.map par la commande

gedit device.map

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

#57 Le 24/02/2007, à 14:43

amarock85

Re : problème de grub

Je dois avoir un systeme d'une autre planète....quand je tape le code toujours ds le même terminal j'ai ça:

gedit device.map
cannot open display:
Exécuter « gedit --help » pour obtenir la liste complète des options en ligne de commande.
root@ubuntu:/boot/grub#

#58 Le 24/02/2007, à 14:44

best_friend_fr

Re : problème de grub

more device.map

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

#59 Le 24/02/2007, à 14:46

amarock85

Re : problème de grub

cool !!!! chapeau bas !!

j'ai ça:

more device.map
(hd0)   /dev/hdc
(hd1)   /dev/hdd
root@ubuntu:/boot/grub#

smile:):)
Merci pour ta patience:)

#60 Le 24/02/2007, à 14:50

best_friend_fr

Re : problème de grub

Bon, essaye, dans le fichier menu.lst, de remplacer le root du premier Ubuntu pour obtenir

title        Ubuntu, kernel 2.6.17-10-generic
root        (hd0,1)
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

et essaye de redémarrer.


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

#61 Le 24/02/2007, à 15:00

amarock85

Re : problème de grub

grrrrrrrr je n'arrive plus à ouvrir mon menu.lst.....!!!!
j'y suis arrivé avec le cat menu.lst mais c pas çà qui nous interresse....

#62 Le 24/02/2007, à 15:02

best_friend_fr

Re : problème de grub

Au pire, tu tappes

vi menu.lst

tu te déplaces dans le fichier avec les flèches.
Lorsque tu es au bon endroit, tu tappes i
la, tu supprime le 2 et tu mets 1 à la place.
Ensuite, tu appuies sur echap
ensuite, tu appuies sur :
puis wq
entrée

Si tu as un doute, redemande


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

#63 Le 24/02/2007, à 15:21

amarock85

Re : problème de grub

ouf je suis arrivé à entrer dans le menu.lst je change les 2 en 1 et je sauvegarde c bien çà
et quand je vois des groot c idem que les root ?

#64 Le 24/02/2007, à 15:23

best_friend_fr

Re : problème de grub

Ton groot est apparemment déja en (hd0,1)

En tout cas, n'enlève SURTOUT pas le # au début de cette ligne


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

#65 Le 24/02/2007, à 15:30

amarock85

Re : problème de grub

ok c'est fait....
Je vais redemarrer....et je croise les doigts....
Je reviens dès que c'est fait et j'espere ne pas revenir en live cd
En tous cas merci beaucoup
a tout à l'heure !

#66 Le 24/02/2007, à 15:45

amarock85

Re : problème de grub

Me revoila....mais en live cd
J'ai toujours erreur 2
c'est à desesperer....:(:(

#67 Le 24/02/2007, à 15:49

amarock85

Re : problème de grub

Maintenant quand je tape:

  gedit /boot/grub/menu.lst

le menu.lst est de nouveau vierge...

#68 Le 24/02/2007, à 15:53

best_friend_fr

Re : problème de grub

Salut

Après avoir refait la manip de chroot etc..., ton menu.lst est vierge?


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

#69 Le 24/02/2007, à 15:58

amarock85

Re : problème de grub

oui c'est ça comme si le grub n'était pas installé.....:(

ubuntu@ubuntu:~$ gedit /boot/grub/menu.lst
ubuntu@ubuntu:~$ ls -l /boot/grub
ls: /boot/grub: Aucun fichier ou répertoire de ce type
ubuntu@ubuntu:~$ cd /
ubuntu@ubuntu:/$ ls
bin   cdrom  etc   initrd      lib    mnt  proc  root  srv  tmp  var
boot  dev    home  initrd.img  media  opt  rofs  sbin  sys  usr  vmlinuz
ubuntu@ubuntu:/$ cd boot
ubuntu@ubuntu:/boot$ ls
abi-2.6.17-10-generic     System.map-2.6.17-10-generic
config-2.6.17-10-generic  vmlinuz-2.6.17-10-generic
memtest86+.bin
ubuntu@ubuntu:/boot$ cd /
ubuntu@ubuntu:/$ ls
bin   cdrom  etc   initrd      lib    mnt  proc  root  srv  tmp  var
boot  dev    home  initrd.img  media  opt  rofs  sbin  sys  usr  vmlinuz
ubuntu@ubuntu:/$ cd boot
ubuntu@ubuntu:/boot$ ls

bizarre non?

#70 Le 24/02/2007, à 16:01

best_friend_fr

Re : problème de grub

Comme tu as redémarré, il faut que tu refasse toute la manip
des mount, des chroot, etc...

sudo -s
mkdir /mnt/work
mkdir /mnt/work/boot
mount /dev/hdc2 /mnt/work 
mount -o bind /dev /mnt/work/dev
mount -o bind /proc /mnt/work/proc
cp /proc/mounts /mnt/work/etc/mtab
chroot /mnt/work/ /bin/bash

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

#71 Le 24/02/2007, à 16:09

amarock85

Re : problème de grub

OUI j'ai refait et voilà ce que ça donne

sudo -s
root@ubuntu:/# mkdir /mnt/work
mkdir: Ne peut créer le répertoire `/mnt/work': Le fichier existe.
root@ubuntu:/# mkdir /mnt/work/boot
root@ubuntu:/# mount /dev/hdc2 /mnt/work
root@ubuntu:/# mount -o bind /dev /mnt/work/dev
root@ubuntu:/# mount -o bind /proc /mnt/work/proc
root@ubuntu:/# cp /proc/mounts /mnt/work/etc/mtab
root@ubuntu:/# chroot /mnt/work/ /bin/bash
root@ubuntu:/# gedit /boot/grub/menu.lst
cannot open display:
Exécuter « gedit --help » pour obtenir la liste complète des options en ligne de commande.

#72 Le 24/02/2007, à 16:16

best_friend_fr

Re : problème de grub

more /boot/grub/menu.lst

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

#73 Le 24/02/2007, à 16:22

amarock85

Re : problème de grub

ok voilà ce que ça donne:

more /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=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,1)
kernel          /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc2 ro quiet splash l
ocale=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,1)
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,1)
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


Apparemment il est bien en (hd0,1).....

#74 Le 24/02/2007, à 16:31

best_friend_fr

Re : problème de grub

Bon, je n'ai aucune idée de pourquoi ca ne marche pas.
Tu peux essayer de modifier le fichier
/boot/grub/device.map
en lui mettant
(hd0) /dev/hda
(hd1) /dev/hdb

et de voir si déja, grub démarre.


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

#75 Le 24/02/2007, à 16:57

amarock85

Re : problème de grub

oui c'est une idée !

le souci c'est que je ne peux plus avoir le device.map

/boot/grub/device.map
bash: /boot/grub/device.map: Permission non accordée

sad:(:(