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 04/04/2006, à 09:09

pat

Grub ( disquette de boot)

Sous Dapper la disquette de boot ne semble pas marcher.
Cela me met erreur à la ligne 15.j'ai regardé mon fichier boot/grub/ menu.lst, je ne trouve pas d'erreur.
Au demarrage avec la disquette de boot il y a donc cette erreur.Par contre je peux redemarrer en mode recovery puis startx.
je ne pense pas que cela vient de la disquette car j'en ai utilisé 2 différentes.
Autre chose qui m'étonne :
Au démarrage j'ai sur l'écran de démarage
2.6.12-10-386
2.6.12-10-386 ( recovery)
2.6.15-19-386
2.6.15-19-386(recovery)

Normallement le kernel 2.6.15-19-386 devrait se trouver en 1er, à priori.
Eventuellement je pourrais changer la fonction défaut: le chiffre mais ce qui me gène surtout c'est de ne pouvoir faire la disquette de boot.
Merci pour l'aide

copie de 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,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=/dev/hda10 ro

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

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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

## ## End Default Options ##

title        Ubuntu, kernel 2.6.15-19-386
root        (hd0,9)
kernel        /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro quiet splash
initrd        /boot/initrd.img-2.6.15-19-386
savedefault
boot

title        Ubuntu, kernel 2.6.15-19-386 (recovery mode)
root        (hd0,9)
kernel        /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro single
initrd        /boot/initrd.img-2.6.15-19-386
boot

title        Ubuntu, memtest86+
root        (hd0,9)
kernel        /boot/memtest86+.bin
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 an existing
# linux installation on /dev/hda5.
title        Ubuntu, kernel 2.6.12-10-386 (on /dev/hda5)
root        (hd0,4)
kernel        /boot/vmlinuz-2.6.12-10-386 root=/dev/hda5 ro quiet splash
initrd        /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title        Ubuntu, kernel 2.6.12-10-386 (recovery mode) (on /dev/hda5)
root        (hd0,4)
kernel        /boot/vmlinuz-2.6.12-10-386 root=/dev/hda5 ro single
initrd        /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title        Ubuntu, kernel 2.6.12-9-386 (on /dev/hda5)
root        (hd0,4)
kernel        /boot/vmlinuz-2.6.12-9-386 root=/dev/hda5 ro quiet splash
initrd        /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title        Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda5)
root        (hd0,4)
kernel        /boot/vmlinuz-2.6.12-9-386 root=/dev/hda5 ro single
initrd        /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title        Ubuntu, memtest86+ (on /dev/hda5)
root        (hd0,4)
kernel        /boot/memtest86+.bin 
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title        Microsoft Windows XP Professionnel
root        (hd0,0)
savedefault
makeactive
chainloader    +1


pat

Hors ligne

#2 Le 04/04/2006, à 09:40

cep_

Re : Grub ( disquette de boot)

Grub sur disquette :

http://forum.ubuntu-fr.org/viewtopic.php?id=6275

Pour l'erreur, le menu.lst que tu reproduis est celui de la disquette ou de la partition ?
Après avoir monté la disquette, pourrais-tu faire un :

cat -n /ou_est_monté/boot/grub/menu.lst pour avoir le fichier avec les numéros de lignes.

C'est bien erreur sur ligne 15 ?

tu as deux distributions ? la disquette a été faite depuis le menu.lst actif depuis le mbr ? d'ou problème aussi d'emplacement des choix.

#3 Le 04/04/2006, à 11:09

pat

Re : Grub ( disquette de boot)

voila ce que j'ai fait.C'est la 1ere fois d'ou je ne sais si c'est bon
mount /media/floppy
puis
cat -n /dev/fd0
Cela m'a mis plein de taches noires illisibles à la lecture de la disquette puis ceci

patrick@192:~$ 62;9;c62;9;c


C'est bien erreur sur ligne 15 ?

oui

tu as deux distributions ? la disquette a été faite depuis le menu.lst actif depuis le mbr ? d'ou problème aussi d'emplacement des choix.

Comprend pas tres bien;tu pourrais expliquer, stp ?
J'ai fait ma disquette à partir de Dapper en me servant du wiki comme je le faisais avec Breezy
http://doc.ubuntu-fr.org/installation/disquette_de_boot_avec_grub

pour le menu.lst , c'est celui de l'ordi sous Dapper

pat
Ps: il est possible que cela se mélange les pattes entre breezy et Dapper ou c'est moi !

Hors ligne

#4 Le 04/04/2006, à 11:28

cep_

Re : Grub ( disquette de boot)

sudo umount /dev/fd0

sudo mount /dev/fd0 /media/floppy0

cat -n /media/floppy0/boot/grub/menu.lst

Ces commandes vont démonter la disquette et la remonter dans /media/floppy0 puis cat va lire dans /media/floppy0 le fichier menu.lst

Sur le menu.lst de dapper le kernel 2.6.15 est avant le kernel 2.6.12, par contre sur le menu.lst de brezzy il doit y avoir uniquement le 2.6.12.

Tu as bien fait ta disquette de  boot alors que tu avais démarré ta machine avec la dapper ?

#5 Le 04/04/2006, à 11:37

pat

Re : Grub ( disquette de boot)

Merci de l'aide mais je viens de recommencer avec la disquette de boot et en fait j'ai lu trop vite
cela me met error 15 file no found ce que je traduirais par erreur 15 dossier non trouvé
Désolé

patrick@192:~$ sudo umount /dev/fd0
Password:
umount: /dev/fd0: n'est pas monté
patrick@192:~$ sudo mount /dev/fd0 /media/floppy0
patrick@192:~$
patrick@192:~$ cat -n /media/floppy0/boot/grub/menu.lst
     1  # menu.lst - See: grub(8), info grub, update-grub(8)
     2  #            grub-install(8), grub-floppy(8),
     3  #            grub-md5-crypt, /usr/share/doc/grub
     4  #            and /usr/share/doc/grub-doc/.
     5
     6  ## default num
     7  # Set the default entry to the entry number NUM. Numbering starts from 0, and
     8  # the entry number 0 is the default if the command is not used.
     9  #
    10  # You can specify 'saved' instead of a number. In this case, the default entry
    11  # is the entry saved with the command 'savedefault'.
    12  # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    13  # array will desync and will not let you boot your system.
    14  default         0
    15
    16  ## timeout sec
    17  # Set a timeout, in SEC seconds, before automatically booting the default entry
    18  # (normally the first entry defined).
    19  timeout         10
    20
    21  ## hiddenmenu
    22  # Hides the menu by default (press ESC to see the menu)
    23  #hiddenmenu
    24
    25  # Pretty colours
    26  #color cyan/blue white/blue
    27
    28  ## password ['--md5'] passwd
    29  # If used in the first section of a menu file, disable all interactive editing
    30  # control (menu entry editor and command-line)  and entries protected by the
    31  # command 'lock'
    32  # e.g. password topsecret
    33  #      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    34  # password topsecret
    35
    36  #
    37  # examples
    38  #
    39  # title         Windows 95/98/NT/2000
    40  # root          (hd0,0)
    41  # makeactive
    42  # chainloader   +1
    43  #
    44  # title         Linux
    45  # root          (hd0,1)
    46  # kernel        /vmlinuz root=/dev/hda2 ro
    47  #
    48
    49  #
    50  # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    51
    52  ### BEGIN AUTOMAGIC KERNELS LIST
    53  ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    54  ## by the debian update-grub script except for the default options below    55
    56  ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    57
    58  ## ## Start Default Options ##
    59  ## default kernel options
    60  ## default kernel options for automagic boot options
    61  ## If you want special options for specific kernels use kopt_x_y_z
    62  ## where x.y.z is kernel version. Minor versions can be omitted.
    63  ## e.g. kopt=root=/dev/hda1 ro
    64  ##      kopt_2_6_8=root=/dev/hdc1 ro
    65  ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    66  # kopt=root=/dev/hda10 ro
    67
    68  ## default grub root device
    69  ## e.g. groot=(hd0,0)
    70  # groot=(hd0,9)
    71
    72  ## should update-grub create alternative automagic boot options
    73  ## e.g. alternative=true
    74  ##      alternative=false
    75  # alternative=true
    76
    77  ## should update-grub lock alternative automagic boot options
    78  ## e.g. lockalternative=true
    79  ##      lockalternative=false
    80  # lockalternative=false
    81
    82  ## additional options to use with the default boot option, but not with the
    83  ## alternatives
    84  ## e.g. defoptions=vga=791 resume=/dev/hda5
    85  # defoptions=quiet splash
    86
    87  ## altoption boot targets option
    88  ## multiple altoptions lines are allowed
    89  ## e.g. altoptions=(extra menu suffix) extra boot options
    90  ##      altoptions=(recovery mode) single
    91  # altoptions=(recovery mode) single
    92
    93  ## controls how many kernels should be put into the menu.lst
    94  ## only counts the first occurence of a kernel, not the
    95  ## alternative kernel options
    96  ## e.g. howmany=all
    97  ##      howmany=7
    98  # howmany=all
    99
   100  ## should update-grub create memtest86 boot option
   101  ## e.g. memtest86=true
   102  ##      memtest86=false
   103  # memtest86=true
   104
   105  ## ## End Default Options ##
   106
   107  title           Ubuntu, kernel 2.6.15-19-386
   108  root            (hd0,9)
   109  kernel          /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro quiet splash
   110  initrd          /boot/initrd.img-2.6.15-19-386
   111  savedefault
   112  boot
   113
   114  title           Ubuntu, kernel 2.6.15-19-386 (recovery mode)
   115  root            (hd0,9)
   116  kernel          /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro single
   117  initrd          /boot/initrd.img-2.6.15-19-386
   118  boot
   119
   120  title           Ubuntu, memtest86+
   121  root            (hd0,9)
   122  kernel          /boot/memtest86+.bin
   123  boot
   124
   125  ### END DEBIAN AUTOMAGIC KERNELS LIST
   126
   127  # This is a divider, added to separate the menu items below from the Debian
   128  # ones.
   129  title           Other operating systems:
   130  root
   131
   132
   133  # This entry automatically added by the Debian installer for an existing   134  # linux installation on /dev/hda5.
   135  title           Ubuntu, kernel 2.6.12-10-386 (on /dev/hda5)
   136  root            (hd0,4)
   137  kernel          /boot/vmlinuz-2.6.12-10-386 root=/dev/hda5 ro quiet splash
   138  initrd          /boot/initrd.img-2.6.12-10-386
   139  savedefault
   140  boot
   141
   142
   143  # This entry automatically added by the Debian installer for an existing   144  # linux installation on /dev/hda5.
   145  title           Ubuntu, kernel 2.6.12-10-386 (recovery mode) (on /dev/hda5)
   146  root            (hd0,4)
   147  kernel          /boot/vmlinuz-2.6.12-10-386 root=/dev/hda5 ro single
   148  initrd          /boot/initrd.img-2.6.12-10-386
   149  savedefault
   150  boot
   151
   152
   153  # This entry automatically added by the Debian installer for an existing   154  # linux installation on /dev/hda5.
   155  title           Ubuntu, kernel 2.6.12-9-386 (on /dev/hda5)
   156  root            (hd0,4)
   157  kernel          /boot/vmlinuz-2.6.12-9-386 root=/dev/hda5 ro quiet splash
   158  initrd          /boot/initrd.img-2.6.12-9-386
   159  savedefault
   160  boot
   161
   162
   163  # This entry automatically added by the Debian installer for an existing   164  # linux installation on /dev/hda5.
   165  title           Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda5)
   166  root            (hd0,4)
   167  kernel          /boot/vmlinuz-2.6.12-9-386 root=/dev/hda5 ro single
   168  initrd          /boot/initrd.img-2.6.12-9-386
   169  savedefault
   170  boot
   171
   172
   173  # This entry automatically added by the Debian installer for an existing   174  # linux installation on /dev/hda5.
   175  title           Ubuntu, memtest86+ (on /dev/hda5)
   176  root            (hd0,4)
   177  kernel          /boot/memtest86+.bin
   178  savedefault
   179  boot
   180
   181
   182  # This entry automatically added by the Debian installer for a non-linux OS
   183  # on /dev/hda1
   184  title           Microsoft Windows XP Professionnel
   185  root            (hd0,0)
   186  savedefault
   187  makeactive
   188  chainloader     +1
   189
patrick@192:~$

Hors ligne

#6 Le 04/04/2006, à 12:01

cep_

Re : Grub ( disquette de boot)

Si dapper est bien sur hda10 et démarre normalement lorsque le boot se fait depuis le mbr ça devrait fonctionner.

Le fichier device.map est bien présent sur la disquette ?

#7 Le 04/04/2006, à 12:11

pat

Re : Grub ( disquette de boot)

cela demarre avec la disquette en mode recovery sous Dapper et idem sous breezy mais pas en mode normal.
Dapper est bien sous hda10
Ne te prends pas le choux , ce n'est pas bien grave.Le principal est que je puisse demarrer en mode recovery puis startx au cas ou il y aurait un pb

pat

Hors ligne

#8 Le 04/04/2006, à 12:47

cep_

Re : Grub ( disquette de boot)

Ah bon ?

Et en changeant sur la disquette juste cette partie :

   107  title           Ubuntu, kernel 2.6.15-19-386
   108  root            (hd0,9)
   109  kernel          /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro quiet splash

pour avoir :

   107  title           Ubuntu, kernel 2.6.15-19-386
   108  root            (hd0,9)
   109  kernel          /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro nosplash

ça fonctionne ?

#9 Le 04/04/2006, à 13:24

cep_

Re : Grub ( disquette de boot)

pat a écrit :

....Le principal est que je puisse demarrer en mode recovery puis startx au cas ou il y aurait un pb...

startx n'est pas la bonne méthode. En single tu es root.

Dans ce cas, si tu veux continuer le processus et lancer l'interface praphique pour te loguer en user il est préférable de passer la commande :

init 2

Bien sûr le mode single s'utilise surtout lorsqu'il y a un problème et que l'user ne peut se loguer ou démarrer l'interface.

Bonne continuation.
cep

#10 Le 04/04/2006, à 15:28

pat

Re : Grub ( disquette de boot)

Merci pour init 2 et
107  title           Ubuntu, kernel 2.6.15-19-386
   108  root            (hd0,9)
   109  kernel          /boot/vmlinuz-2.6.15-19-386 root=/dev/hda10 ro nosplash
J'essaierai + tard car on rentre d'un déjeuner Couscous bien arrosé et je pourrais faire des erreurs:)
De tte façon je te tiens au courrant:cool:

pat

Hors ligne