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.

#1 Le 16/01/2008, à 22:11

sandry

grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

bonsoir

merci d'avoir ecrit tout ca pour moi! big_smile
apparement ca colle voici le retour

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 (hd0,2)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,2) /boot/grub/stage2 p /boot/grub/menu
.lst "... succeeded
Done.

je suis sur le live avec copier coller  wink

Dernière modification par sandry (Le 20/01/2008, à 22:48)

Hors ligne

#2 Le 16/01/2008, à 22:44

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

tape

sudo dd if=/dev/sda3 of=~/Desktop/grub.bs bs=512 count=1

pour avoir ton fichier grub.bs. Ce qui était ton but.
Il te reste à  rajouter ceci dans la racine de win et d'éditer le boot.ini.

Pour cela,
tape
sudo umount -a
sudo mount -t ntfs /dev/sda1 /mnt

puis donne le retour de

ls /mnt
cat /mnt/boot.ini

#3 Le 16/01/2008, à 22:48

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

RECYCLER  System Volume Information
cat: /mnt/boot.ini: Aucun fichier ou répertoire de ce type

Hors ligne

#4 Le 16/01/2008, à 22:51

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

et ça

ls /mnt

#5 Le 16/01/2008, à 22:52

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

RECYCLER  System Volume Information

Hors ligne

#6 Le 16/01/2008, à 22:54

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

tape
sudo umount -a
sudo mount -t ntfs /dev/sda2 /mnt

puis donne le retour de

ls /mnt
cat /mnt/boot.ini

#7 Le 16/01/2008, à 22:56

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

50018a9941ca13a19a  DESA                            NTLDR
anumanlive.log      DESA1                           pagefile.sys
APPS                DIVTOOLS                        PNP
BOOT.BAK            Documents and Settings          Program Files
Bootfont.bin        DRIVERS                         RECYCLER
BOOT.INI            DWNLOG.TXT                      Redist
bootpa26            ee2fdb607b2a741b25061274382dd2  RHDSetup.log
bootpart.exe        file_id.diz                     SAUDIT.TXT
bootpart.txt        Games                           setup.log
bootpart.url        hiberfil.sys                    System Volume Information
Brother             INSTALL.LOG                     WINDOWS
cmdcons             IO.SYS
cmldr               MSDOS.SYS

cat: /mnt/boot.ini: Aucun fichier ou répertoire de ce type

Hors ligne

#8 Le 16/01/2008, à 23:01

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

sandry a écrit :

50018a9941ca13a19a  DESA                            NTLDR
anumanlive.log      DESA1                           pagefile.sys
APPS                DIVTOOLS                        PNP
BOOT.BAK            Documents and Settings          Program Files
Bootfont.bin        DRIVERS                         RECYCLER
BOOT.INI            DWNLOG.TXT                      Redist
bootpa26            ee2fdb607b2a741b25061274382dd2  RHDSetup.log
bootpart.exe        file_id.diz                     SAUDIT.TXT
bootpart.txt        Games                           setup.log
bootpart.url        hiberfil.sys                    System Volume Information
Brother             INSTALL.LOG                     WINDOWS
cmdcons             IO.SYS
cmldr               MSDOS.SYS

cat: /mnt/boot.ini: Aucun fichier ou répertoire de ce type

Ok,
Le fichier grub.bs est sur le bureau??

Donne les retours de

ls ~/Desktop
cat /mnt/BOOT.INI

#9 Le 16/01/2008, à 23:03

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

oui il est sur le bureau wink

Examples  grub.bs  ubiquity-gtkui.desktop

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons

Hors ligne

#10 Le 16/01/2008, à 23:04

sirius10

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

Salut

J'ai le pignon de ma 404 qui marche pas , je me demandais si safinaz ne pouvait pas me taper un truc  lol:lol:

Je vois que tu es toujours de bon conseil, ca c 'est cooll!!

bonne continuation

Dernière modification par sirius10 (Le 16/01/2008, à 23:16)


"Pour ce qui est de l'Avenir, il ne s’agit pas de le prévoir, mais de le rendre possible."     
Antoine de Saint-Exupéry

Hors ligne

#11 Le 16/01/2008, à 23:11

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

sandry a écrit :

oui il est sur le bureau wink

Examples  grub.bs  ubiquity-gtkui.desktop

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons

@sirus10 big_smile

Alors,
tape

sudo cp ~/Desktop/grub.bs /mnt/grub.bs
sudo gedit /mnt/BOOT.INI

le fichier boot.ini doit s'ouvrir: rajoute A LA FIN ce qui est en gras

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

enregistre, ferme
et reposte

ls /mnt
cat /mnt/BOOT.INI

#12 Le 16/01/2008, à 23:15

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

50018a9941ca13a19a  Config.Msi                      MSDOS.SYS
anumanlive.log      DESA                            NTDETECT.COM
APPS                DESA1                           NTLDR
BOOT.BAK            DIVTOOLS                        pagefile.sys
Bootfont.bin        Documents and Settings          PNP
BOOT.INI            DRIVERS                         Program Files
BOOT.INI~           DWNLOG.TXT                      RECYCLER
bootpa26            ee2fdb607b2a741b25061274382dd2  Redist
bootpart.exe        file_id.diz                     RHDSetup.log
bootpart.txt        Games                           SAUDIT.TXT
bootpart.url        grub.bs                         setup.log
Brother             hiberfil.sys                    System Volume Information
cmdcons             INSTALL.LOG                     WINDOWS

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\grub.bs="Ubuntu".DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons

Hors ligne

#13 Le 16/01/2008, à 23:21

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

arffffffffffffffffffff
tu effaces cette ligne (tu as fusillé la dernière ligne du boot.ini original lol)
C:\grub.bs="Ubuntu".DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons

Et tu rajoutes à  la fin ceci
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

tu dois avoir ceci pour le boot.ini au final (7 lignes)

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

enregistre, ferme
et reposte

ls /mnt
cat /mnt/BOOT.INI

#14 Le 16/01/2008, à 23:26

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

j 'ai ouvert  le boot.ini
est c afficher tel que tu ma demander de le saisir??

mais je reprend quand meme

Hors ligne

#15 Le 16/01/2008, à 23:28

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

32bits              cmldr                           IO.SYS
50018a9941ca13a19a  Config.Msi                      MSDOS.SYS
anumanlive.log      DESA                            NTDETECT.COM
APPS                DESA1                           NTLDR
BOOT.BAK            DIVTOOLS                        pagefile.sys
Bootfont.bin        Documents and Settings          PNP
BOOT.INI            DRIVERS                         Program Files
BOOT.INI~           DWNLOG.TXT                      RECYCLER
bootpa26            ee2fdb607b2a741b25061274382dd2  Redist
bootpart.exe        file_id.diz                     RHDSetup.log
bootpart.txt        Games                           SAUDIT.TXT
bootpart.url        grub.bs                         setup.log
Brother             hiberfil.sys                    System Volume Information
cmdcons             INSTALL.LOG                     WINDOWS

I
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

Hors ligne

#16 Le 16/01/2008, à 23:29

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

maintenant j'ai compris pourquoi wink
desolé
mais tu ne laisse rien au hasard?!!!!!!!!

Hors ligne

#17 Le 16/01/2008, à 23:31

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

c'est bien, MAIS
c'est quoi ce I qu'on voie avant boot loader

sandry a écrit :

I
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

s'il est dans le fichier, il faut le retirer

#18 Le 16/01/2008, à 23:33

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

non mauvaise manip (encore)
pardon
je reposte

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Console de r�cup�ration Microsoft Windows XP" /cmdcons
C:\grub.bs="Ubuntu"

Hors ligne

#19 Le 16/01/2008, à 23:39

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

juste pour vérifier,
donne les retours de
sudo umount -a
sudo mount /dev/sda3 /mnt
cat /mnt/boot/grub/menu.lst
ls -l /dev/disk/by-uuid
cat /mnt/etc/fstab

#20 Le 16/01/2008, à 23:43

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

umount: /tmp: périphérique occupé
umount: /dev: périphérique occupé
umount: /var/run: périphérique occupé

# 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

total 0
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 04dbb6cd-2d9d-4b0e-903f-264967052c19 -> ../../sda6
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 4787-FE96 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 856a2219-748e-4016-8952-6746964dfcf6 -> ../../sda7
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 9A04FD4104FD2145 -> ../../sda2
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 e6ded06c-d52e-46fc-a075-a2ffc0dd4e24 -> ../../sda3
lrwxrwxrwx 1 root root 10 2008-01-16 21:55 EE1489EC1489B7DB -> ../../sda1


# /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,errors=remount-ro 0       1
# /dev/sda6
UUID=04dbb6cd-2d9d-4b0e-903f-264967052c19 /home           ext3    defaults        0       2
# /dev/sda5
UUID=4787-FE96  /media/Documents vfat    defaults,utf8,umask=007,gid=46 0       1
# /dev/sda7
UUID=856a2219-748e-4016-8952-6746964dfcf6 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0

Hors ligne

#21 Le 16/01/2008, à 23:50

safinaz

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

salut,

ouf, dernière et puis tu peux rebooter

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

change 5 par 0 dans la ligne
default        5
enregistre et redémarre


Pourquoi:
=======
0 pour que le choix se mette par défaut sur la première entrée
1 pour que le choix se mette par défaut sur la deuxième entrée
.

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

sandry

Re : grub est arrivé sur hd0.2 hourra!![sujet déplacé et résolu]

c'etait dans le debut du fichier ok?

bon je redemarre

a+

wink

Hors ligne