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/05/2008, à 08:23

Silvering

Problème grub dd externe..

Bonjour j'ai installer ubuntu sur mon dd externe, configurer le bios et mis USB Flash en première position mais je n'arrive pas à configurer mon grub pour qu'il boot le premier. Le voici: (j'ai changer les (h0;0) en (sdb,0) car mon dd externe se nomme sdb)

# 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		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=3f2cb916-6785-4330-bcb4-254fcb247094 ro

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

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

## 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		(sdb,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=3f2cb916-6785-4330-bcb4-254fcb247094 ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(sdb,0)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=3f2cb916-6785-4330-bcb4-254fcb247094 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

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

### 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/sda1
title		Windows Vista/Longhorn (loader)
root		(hd0,1)
savedefault
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Windows Vista/Longhorn (loader)
root		(hd0,1)
savedefault
chainloader	+1

Hors ligne

#2 Le 16/05/2008, à 08:55

Silvering

Re : Problème grub dd externe..

Et voici mon sudo fdisk -l

Disque /dev/sda: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe99bea3a

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1               1        1216     9764864   37  Inconnu
/dev/sda2   *        1216       17368   129742572    7  HPFS/NTFS

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

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1   *           1        1824    14651248+  83  Linux
/dev/sdb2            1825       12766    87891615   83  Linux
/dev/sdb3           12767       13009     1951897+  82  Linux swap / Solaris
/dev/sdb4           13010       37324   195310237+   5  Extended
/dev/sdb5           13010       37324   195310206   83  Linux

Hors ligne

#3 Le 16/05/2008, à 11:09

michel2652

Re : Problème grub dd externe..

Re,

Silvering a écrit :

Bonjour j'ai installer ubuntu sur mon dd externe, configurer le bios et mis USB Flash en première position mais je n'arrive pas à configurer mon grub pour qu'il boot le premier. Le voici: (j'ai changer les (h0;0) en (sdb,0) car mon dd externe se nomme sdb)

# 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        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=3f2cb916-6785-4330-bcb4-254fcb247094 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

## 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=3f2cb916-6785-4330-bcb4-254fcb247094 ro quiet splash
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=3f2cb916-6785-4330-bcb4-254fcb247094 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

# 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/sda1
title        Windows Vista/Longhorn (loader)
root        (hd1,1)
savedefault
chainloader    +1

En mettant Grub sur le HDD USB, dans l'ordre pour Grub, ton HDD USB devient hd0 et ton HDD interne hd1.
Si vista est sur la 2ème partition du HDD interne c'est (hd1,1) si sur la 1ère (hd1,0)

Vérifie les UUID de tes partitions et met en concordance le menu.lst et le fstab (s'il y a lieu).

A+

#4 Le 16/05/2008, à 11:15

fgnhfdhfg

Re : Problème grub dd externe..

tu devras mapper les disques pour 20taupe

#5 Le 16/05/2008, à 11:26

michel2652

Re : Problème grub dd externe..

Re,

Comme je te le disais dans ce post http://forum.ubuntu-fr.org/viewtopic.ph … 5#p1770915 :

Il faut que tu installes grub sur le disque USB, et mettre ton USB en first boot dans le Bios.
HDD USB connecté tu bootes sur celui ci, HDD non connecté tu bootes sur le HDD interne.

Inutile donc de mettre une entrée pour ton Win.
Sinon :

Edit : Tout dépend de ta config, si le HDD USB est connecté à demeure on peut mettre Grub sur le mbr du HDD interne pour un dual boot.

Pour exemple, j'ai un PC (ultra-mini) sans HDD avec Ubuntu installé sur une carte SD dans un adaptateur USB.
Le principe est le même pour un HDD USB (avec ou sans HDD interne).

A+

#6 Le 16/05/2008, à 11:37

michel2652

Re : Problème grub dd externe..

Re,

fgnhfdhfg a écrit :

tu devras mapper les disques pour 20taupe

J'avais zappé le mappage pour Vista, le seul MS XP Pro que j'ai est en VMWare wink

A+

#7 Le 16/05/2008, à 11:38

Silvering

Re : Problème grub dd externe..

Je vais faire les modif du menu.ls qui à fait plus haut michel merci!!

ps: j'ai rentré ton msn donc si tu te connectes accepte moi!!^^

Hors ligne

#8 Le 16/05/2008, à 12:01

Silvering

Re : Problème grub dd externe..

J'ai vérifier le UUID de sdb1 qui est la partition qui boot Linux et elle concorde bien avec celle du menu.lst.. je vois pas d'où viens le problème. J'ai rechanger le menu.lst comme tu m'a indiqué plus haut.

Hors ligne

#9 Le 16/05/2008, à 13:03

Silvering

Re : Problème grub dd externe..

Je sens ne pouvoir jamais me sortir de ce problème personne ne saurait quoi faire ????

Hors ligne

#10 Le 16/05/2008, à 13:15

michel2652

Re : Problème grub dd externe..

Re,

Je ne comprends pas le problème.
As tu bien activer le flag /boot sur la partition / du HDD USB ?

A+

#11 Le 16/05/2008, à 13:17

Silvering

Re : Problème grub dd externe..

Si cela ne te déranges pas on peut continuer la conversion sur msn..
python_gamer@hotmail.fr

Merci d'avance!!!

Hors ligne