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 28/11/2007, à 01:57

miky972

[RESOLU]Besoin d'aide sur GRUB

Bonjour ami lunixiens

Je fais mes premiers pas sur Linux via Ubuntu et j'avoue que c'est assez plaisant bien que prise de tête pour le Windowsiens que je suis.... En attendant de passé complètement sous Linux je souhaiterais partagé mon ordi entre Windows et Linux histoire de bien fignolé mon passage a Linux et c'est bien la qu'est mon problème malgré toute la lecture que j'ai fait sur Grub via votre excellent site et mon ami google je n'arrive toujours pas a le paramétré pour que windows apparaissent dans le menu. Windows et Linux sont sur deux disque dur différent et je pense que mon problème vient peut être de la, mais j'en suis pas sur j'ai essayé de suivre le tuto sur le site mais rien n'y fait je n'arrive même pas a entré dans le menu pour augmenté le timeout et pour le moment je suis obligé de passé par le bios pour que l'ordi démarre sur l'un ou l'autre disque dur. Dès que je met le dd ou windows est installé en premier celui ne cherche même pas à  comprendre il démarre windows sans demandé quoi que ce soit.. Quel impoli celui la alors... Enfin bref je ne sais pas quoi faire? Donc c'est pour cela que je sollicite votre aide que je puisse finir de préparé mon passage et viré définitivement ce windows impoli de la surface de ma planète.

Merci:)

Dernière modification par miky972 (Le 28/11/2007, à 22:20)


Que la force soi avec toi!!!!

Hors ligne

#2 Le 28/11/2007, à 03:08

slasher_fun

Re : [RESOLU]Besoin d'aide sur GRUB

Peux tu poster le résultat de ces commandes :

sudo fdisk -l
cat /boot/grub/menu.lst

Merci smile

Hors ligne

#3 Le 28/11/2007, à 09:40

miky972

Re : [RESOLU]Besoin d'aide sur GRUB

Salut slasher-fun

J'ai essayé les commandes que tu m'a donné et sa me donne comme résultat
ERROR 27 : Unrecognized command

Merci pour ton aide big_smile


Que la force soi avec toi!!!!

Hors ligne

#4 Le 28/11/2007, à 19:27

slasher_fun

Re : [RESOLU]Besoin d'aide sur GRUB

Ah oui, il faudrait le faire depuis ton Ubuntu smile

Hors ligne

#5 Le 28/11/2007, à 19:51

miky972

Re : [RESOLU]Besoin d'aide sur GRUB

Hi hi hi pas doué mwouaaaa desolé

Donc la pour sudo fdisk -l sa donne :
Disque /dev/hda: 163.9 Go, 163928604672 octets
255 heads, 63 sectors/track, 19929 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c4c3c4b

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hda1   *           1        3824    30716248+   7  HPFS/NTFS
/dev/hda2            3825       16708   103490730    f  W95 Etendu (LBA)
/dev/hda3           16709       19929    25872682+   7  HPFS/NTFS
/dev/hda5            3825       10198    51199123+   7  HPFS/NTFS
/dev/hda6           10199       16708    52291543+   7  HPFS/NTFS

Disque /dev/hdb: 20.4 Go, 20416757760 octets
255 heads, 63 sectors/track, 2482 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe20be20b

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hdb1   *           1        2373    19061091   83  Linux
/dev/hdb2            2374        2482      875542+   5  Extended
/dev/hdb5            2374        2482      875511   82  Linux swap / Solaris

Disque /dev/sda: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x29338491

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1               1       60801   488384001    7  HPFS/NTFS

et pour cat /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 use 'savedefault' 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         3

## 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=d57b5db6-d7b7-44ff-9c9c-995e4c10a3ea ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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

## 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,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=d57b5db6-d7b7-44ff-9c9c-995e4c10a3ea ro quiet splash locale=fr_FR
initrd          /boot/initrd.img-2.6.22-14-generic
quiet

title           Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=d57b5db6-d7b7-44ff-9c9c-995e4c10a3ea ro single
initrd          /boot/initrd.img-2.6.22-14-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

Voila en faite je crois que j'ai compris ou était mon erreur ce que je m'obstinais a faire ces manip directement dans Grub donc forcement sa marche pas. la je vais réessayé de suivre le tuto pour voir si sa marche, je tiens au courant.

Merci


Que la force soi avec toi!!!!

Hors ligne

#6 Le 28/11/2007, à 20:12

slasher_fun

Re : [RESOLU]Besoin d'aide sur GRUB

Le problème est bêtement que Windows n'a pas été détecté par GRUB smile
Rajoute donc après "### END DEBIAN AUTOMAGIC KERNELS LIST" :

title           Windows XP
root            (hd1,0)
rootnoverify    (hd1,0)
makeactive
map             (hd0) (hd1)    # hd0 devient hd1
map             (hd1) (hd0)    # hd1 devient hd0 virtuellement
chainloader +1

Hors ligne

#7 Le 28/11/2007, à 21:00

miky972

Re : [RESOLU]Besoin d'aide sur GRUB

Excuse tu vas me trouvé un peu bête mais sa fait que 4 jours que je suis sur Ubuntu et je sais pas du tout comment rajouté ce que tu m'as donné il y a  une commande a rentré ??? j'ai essayé tout bêtement de le tapé dans le terminal a la suite et sa passe pas ya surment un truc que je fait mal.... C'est dur de tout réapprendre snif en tout cas merci pour ton aide:D


Que la force soi avec toi!!!!

Hors ligne

#8 Le 28/11/2007, à 21:50

slasher_fun

Re : [RESOLU]Besoin d'aide sur GRUB

Oops big_smile

Alors tu fais Alt F2 (depuis Ubuntu), tu tapes "gksudo gedit /boot/grub/menu.lst" (sans les ") (ce qui veut dire "en_administrateur éditer_le_fichier /boot/grub/menu.lst"), tu ajoutes à  la fin les lignes en question, tu enregistres et voilà  smile

PS : Si tu as Kubuntu (et non ubuntu), remplace "gedit" par "kate" smile

Hors ligne

#9 Le 28/11/2007, à 22:20

miky972

Re : [RESOLU]Besoin d'aide sur GRUB

Sa y'est sa marche Franchement un grand énorme MERCI slasher-fun. Je commence a comprendre certaines chose sur Linux et j'apprends petit a petit et la tu viens de m'enlevé une grosse épine du pied encore Merci et a bientà´t

big_smile:):P

Dernière modification par miky972 (Le 29/11/2007, à 01:13)


Que la force soi avec toi!!!!

Hors ligne