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.

#26 Le 15/01/2008, à 23:57

sandry

Re : comment recuperer le fichier grub.bs

sudo umount -a
umount: /tmp: peripherique occupé
umount: /dev:  peripherique occupé
umount: /var/run: peripherique occupé
umount: tmpfs: n'a pas été trouvé
umount/lib/modules/2.6.22.14-generic/volatile: n'est pas monté

sudo mount /dev/sda3 /mnt
mount: selon mtab /dev/sda3 est deja monté sur /mnt
(la si je tape plusieurs fois cette commande je n'ai pas la meme reponse ???) autre exemple
mount : ne peut reperer /dev/sda3/mnt dans /etc/fstab ou etc/mtab

ls -l /dev/disk/by-uuid
04dbb6cd-2d9d-4b0e-903f-264967052c19   9A04FD4104FD2145
4787-FE96                                                    e6ded06c-d52e46fc-a075-a2ffc0dd4e24
856a2219-748e-4016-8952-6746964dfcf6    EE141489EC1489B7DB
ouf j'espere que c bon!:P

cat /mnt/etc/fstab
# /etc/fstab: static file system information
#
#<file system> <mount point>  <type> <options>   <dump>   <pass>
proc                   /proc                    proc      defaults      0                 0
# /dev/sda3
UUID=e6ded06c-d52e-46fc-a075-a2ffc0dd4e24 /          ext3    defaults,err
s=remout - ro  0     1
# /dev/sda6
UUID=04dbb6cd-2d9d-4b0e-903f-264967052c19  /home  ext3  defaults
0       2
# /dev/sda5
UUID-4787-FE96 /medi/documents vfat   defaults,utf8,umask-007,gid=46 0 1
# /dev/sda7
UUID=85a2219-748-4016-8952-6746964dfcf6  none      swap     sw
0      0
/dev/scd0       /media/cdrom0   udf,iso9660 user, noauto,exec  0     0

cat /mnt/boot/grub/device.map
(hdo)  /dev/sda

voila et dire que j'insinué dans le style......    ouais mais tu sais le Mbr trallalatrala(les 1er post) je suis confus j'espere que je ne t'est  pas offencé

j'espere que tu vas t'y retrouver en visuels, comme je saisie c'est pas top ?

Hors ligne

#27 Le 16/01/2008, à 00:03

sandry

Re : comment recuperer le fichier grub.bs

j'apprécie vraiment ton aide

et ca me gêne de te dire que demain je bosse tres tot je voudrai bien faire 1 pause mais j'ai peur de perdre le fils
et je suis tellement content meme si je capte pas grand chose

dis moi ce que tu en pense et si c'est possible de remettre ca à  demain soir
merci de ta comprehension

Hors ligne

#28 Le 16/01/2008, à 00:09

safinaz

Re : comment recuperer le fichier grub.bs

ok va dormir
je te concocte un menu.lst et je te le poste.

Ps: pourquoi dans ton poste précédent,
ls -l /dev/disk/by-uuid a engendré une erreur

Travaille avec des copiés-collés pour les commandes
et les retours que tu postes wink

#29 Le 16/01/2008, à 00:17

sandry

Re : comment recuperer le fichier grub.bs

ok
je voudrai bien les "copier- coller" mais je peux pas
c'est pas les meme becanes

et pour la suite je brancherai mon cable reseau sur le portable en question et je tournerai pour le forum et les lignes de commande en live non? c'est peut etre plus simple

merci
bonne nuit

Hors ligne

#30 Le 16/01/2008, à 00:25

safinaz

Re : comment recuperer le fichier grub.bs

Alors tape

sudo umount -a
sudo mount /dev/sda3 /mnt

puis tape

sudo gedit /mnt/boot/grub/menu.lst

un fichier vide va s'ouvrir
COPIE-COLLE ceci

# 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        5

## 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=e6ded06c-d52e-46fc-a075-a2ffc0dd4e24 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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

## 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,2)
kernel        /vmlinuz-2.6.22-14-generic root=UUID=e6ded06c-d52e-46fc-a075-a2ffc0dd4e24 ro quiet splash locale=fr_FR
initrd        /initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root        (hd0,2)
kernel        /vmlinuz-2.6.22-14-generic root=UUID=e6ded06c-d52e-46fc-a075-a2ffc0dd4e24 ro single
initrd        /initrd.img-2.6.22-14-generic

title        Ubuntu 7.10, memtest86+
root        (hd0,2)
kernel        /memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
title        Windows 1
root        (hd0,0)
chainloader    +1
boot

title        Windows 2
root        (hd0,1)
chainloader    +1
boot

enregistre

puis tape
cat /mnt/boot/grub/menu.lst
tu dois voir le contenu du fichier qui s'affiche. Si c'est le cas ok.
puis
tape

sudo grub   #attend de voir grub>
find /boot/grub/stage1    #(hd0,2) doit s'afficher, si oui continue
setup (hd0,2) (hd0,2)     #poste le retour
quit

#31 Le 16/01/2008, à 00:26

safinaz

Re : comment recuperer le fichier grub.bs

sandry a écrit :

ok
je voudrai bien les "copier- coller" mais je peux pas
c'est pas les meme becanes

et pour la suite je brancherai mon cable reseau sur le portable en question et je tournerai pour le forum et les lignes de commande en live non? c'est peut etre plus simple

merci
bonne nuit

ah oui c'est plus simple et préférable
@+

#32 Le 16/01/2008, à 22:23

sandry

Re : comment recuperer le fichier grub.bs

bonsoir

j'ai crée un nouvelle discussion( mais je sais pas si j'aurai du ,il fallait peut etre continuer là  ??)
et j'ai posté le retour
a+

Hors ligne