Pages : 1
#1 Le 16/09/2007, à 15:55
- mihades
demarrage d'ubuntu via NTDLR
Bonjour
Débutant dans le domaine linux, J'ai insatallé Ubuntu via un live cd sur le 3eme disque dur de mon pc .
L'installation s'est bien passée et je peux lancer Ubuntu sans problème avec super grub disk,
J'ai utilisé la procédure décrite sur ce site pour demarrer via NTDLR .
Lorque je clique sur GRUB LINUX (c'est ainsi que je l'ai appelé dans le boot.ini) le mot GRUB s"affiche à l'écran , mais rien d'autre ne se passe et je doit rebooter .
Si quelqu'un à une idée, j'ai parcouru ce forum depuis quelque temps et je n'ai pas trouvé la solution .
Merci d'avance
Je joint le meunu.lst qui se trouve dans GRUB
""# 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=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd2,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 Microsoft Windows XP Edition familiale
root (hd0,0)
savedefault
chainloader +1
Hors ligne
#2 Le 16/09/2007, à 17:09
- belga
Re : demarrage d'ubuntu via NTDLR
poste le retour de
sudo fdisk -l
sudo grub
find /boot/grub/stage1
quit
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#3 Le 16/09/2007, à 17:20
- mihades
Re : demarrage d'ubuntu via NTDLR
Voila les infos demandées
Merci de m'aider
sudo fdisk -l
Disque /dev/sda: 163.9 Go, 163928604672 octets
255 têtes, 63 secteurs/piste, 19929 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 19929 119121975 7 HPFS/NTFS
Disque /dev/sdb: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 2569 20635461 7 HPFS/NTFS
/dev/sdb2 2570 9729 57512700 7 HPFS/NTFS
Disque /dev/sdc: 40.0 Go, 40020664320 octets
255 têtes, 63 secteurs/piste, 4865 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 * 1 4677 37567971 83 Linux
/dev/sdc2 4678 4865 1510110 5 Extended
/dev/sdc5 4678 4865 1510078+ 82 Linux swap / Solaris
Disque /dev/sdd: 163.9 Go, 163928604672 octets
255 têtes, 63 secteurs/piste, 19929 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdd1 * 1 19929 160079661 7 HPFS/NTFS
grub> find /boot/grub/stage1
(hd2,0)
je reposte le menu.lst le premier n'était pas le bon
# 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=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd2,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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd2,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 Microsoft Windows XP Edition familiale
root (hd0,0)
savedefault
chainloader +1
Hors ligne
#4 Le 16/09/2007, à 17:30
- belga
Re : demarrage d'ubuntu via NTDLR
Plusieurs questions
1- Lors de l'installation d'ubuntu, as tu demandé d'installer grub sur (hd2,0)
ou tu n'as rien fait?
2- Pourquoi veux tu amorcer ubuntu depuis 20doze puisque'ubuntu
est sur un disque différent?
Tu peux demander au bios de démarrer sur le disque 2 et lancer 20doze
depuis grub.
Bref, si tu veux absolument lancer ubuntu depuis 20doze
sudo grub
setup (hd2,0) (hd2,0)
quit
puis
sudo dd if=/dev/sdc1 of=~/Desktop/grub.bin bs=512 count=1
puis place ce fichier grub.bin dans le C:\ de 20doze etc....
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#5 Le 16/09/2007, à 17:57
- mihades
Re : demarrage d'ubuntu via NTDLR
J"ai fait ta manip mais rien ne change, quand je lance ubuntu, GRUB s'affiche à l'écran le curseur clignote mais rien d'autre ne se passe
Pour répondre à tes questions :
je crois !!! que je lui ai demandé d'installer grub sur (hd2,0)
Amorcer depuis 20doze c'est pour se desintoxiquer en douceur !! sans mettre le souk dans le mbr ( cette manip me semblait pas mal surtout en cas de reinstallation de 20doze)
Hors ligne
#6 Le 16/09/2007, à 18:04
- belga
Re : demarrage d'ubuntu via NTDLR
C'est inutile, on utilise NTDLR lorsqu'on veut installer
ubuntu sur un disque qui contient déjà 20doze!!!!
sans mettre le souk dans le mbr ( cette manip me semblait pas mal surtout en cas de reinstallation de 20doze)
le mbr en question est le mbr du disque1
et non le mbr du disque 3.
Si dans le bios tu peux demander de démarrer sur le disque3: installe grub
sur le mbr du disque 3
sudo grub
setup (hd2) (hd2,0)
quit
Dernière modification par belga (Le 16/09/2007, à 18:04)
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#7 Le 16/09/2007, à 18:33
- mihades
Re : demarrage d'ubuntu via NTDLR
Je progresse
Lorsque je demarre sur le disque 3,
GRUB se lance bien, mais quelque soit le choix , l'erreur 17 est renvoyée
Hors ligne
#8 Le 16/09/2007, à 18:38
- belga
Re : demarrage d'ubuntu via NTDLR
ok,
tape ceci
sudo mount -o rw /dev/sdc1 /mnt
puis poste les retours de
ls -l /dev/disk/by-uuid
cat /mnt/etc/fstab
cat /mnt/boot/grub/device.map
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#9 Le 16/09/2007, à 18:44
- mihades
Re : demarrage d'ubuntu via NTDLR
voila les retours demandés
ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 44348dc7-538c-4b56-824e-30bb46ac055b -> ../../sdc5
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 48d565e4-4d61-41f1-9fdd-1801674c1faa -> ../../sdc1
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 86349D80349D7441 -> ../../sda1
lrwxrwxrwx 1 root root 10 2007-09-16 18:29 C0FA43B4FA43A58E -> ../../sdd1
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 DAEC724BEC7221C5 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 DE504522504502AF -> ../../sda2
lrwxrwxrwx 1 root root 10 2007-09-16 20:28 FE18367D1836354D -> ../../sdb1
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/sdc1
UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa / ext3 defaults,errors=remount-ro 0 1
# /dev/sdc5
UUID=44348dc7-538c-4b56-824e-30bb46ac055b none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
cat /mnt/boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
Hors ligne
#10 Le 16/09/2007, à 18:44
- Compte anonymisé
Re : demarrage d'ubuntu via NTDLR
Salut
Si tu démarres sur le disque 3, il faut modifier ton fichier menu.lst (depuis le livecd et monter en écriture ta partition /):
tu remplaces :
# groot=(hd2,0) par
# groot=(hd0,0)
et dans le paragraphe :
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=48d565e4-4d61-41f1-9fdd-1801674c1faa ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
root (hd2,0) par
root (hd0,0)
Tu rebootes (ça doit marcher) puis tu tapes :
sudo update-grub
Pour pouvoir démarrer Xp depuis ton boot sous ubuntu, il faudrat maintenant lister le résultat de :
sudo fdisk -l
@+
Dernière modification par Compte anonymisé (Le 16/09/2007, à 18:45)
#11 Le 16/09/2007, à 19:04
- mihades
Re : demarrage d'ubuntu via NTDLR
Super et merci pour votre compétence et votre rapidité j'arrive a demarrer ubuntu
pour XP résultat de :sudo fdisk -l
Disque /dev/sda: 163.9 Go, 163928604672 octets
255 têtes, 63 secteurs/piste, 19929 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 19929 119121975 7 HPFS/NTFS
Disque /dev/sdb: 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 1 2569 20635461 7 HPFS/NTFS
/dev/sdb2 2570 9729 57512700 7 HPFS/NTFS
Disque /dev/sdc: 40.0 Go, 40020664320 octets
255 têtes, 63 secteurs/piste, 4865 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 * 1 4677 37567971 83 Linux
/dev/sdc2 4678 4865 1510110 5 Extended
/dev/sdc5 4678 4865 1510078+ 82 Linux swap / Solaris
Disque /dev/sdd: 163.9 Go, 163928604672 octets
255 têtes, 63 secteurs/piste, 19929 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdd1 * 1 19929 160079661 7 HPFS/NTFS
Hors ligne
#12 Le 16/09/2007, à 19:08
- belga
Re : demarrage d'ubuntu via NTDLR
tu en as combien des xp
transforme la section 20doze comme ceci
title Microsoft Windows XP Home Edition
map (hd0) (hd2)
map (hd2) (hd0)
root (hd2,0)
savedefault
makeactive
chainloader +1
Dernière modification par belga (Le 16/09/2007, à 19:09)
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#13 Le 16/09/2007, à 19:09
- mihades
Re : demarrage d'ubuntu via NTDLR
2 mais c'est celui qui est sur le 1 er disque qui m'interresse
Hors ligne
#14 Le 16/09/2007, à 19:10
- belga
Re : demarrage d'ubuntu via NTDLR
message 12
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#15 Le 16/09/2007, à 19:13
- Compte anonymisé
Re : demarrage d'ubuntu via NTDLR
Salut
Le résultat de sudo fdisk -l est-il obtenu depuis le livecd ou en bootant sur le disque n°3 ?
C'est bien depuis ton ubuntu qu'il faut donner le résultat.
De toutes façons tu peux démarrer Xp directement en choisissant de booter depuis le sata n°1 (enfin je suppose).
Si tu veux booter Xp depuis le menu Ubuntu il faudra modifier le paragraphe suivant
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Edition familiale
root (hd0,0)
savedefault
chainloader +1
en qq chose comme :
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Edition familiale
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
savedefault
chainloader +1
attention (hd1) peut être (hd2)
@+
#16 Le 16/09/2007, à 19:24
- mihades
Re : demarrage d'ubuntu via NTDLR
Bravo et merci pour votre rapidité et votre aide précieuse
La réputation de solidarité et d'entraide du monde linux n'est pas surfaite
Optionnel :Juste pour titiller vos neurones, pourquoi je n'ai jamais pu lancer GRUB via NTDLR
Hors ligne
#17 Le 16/09/2007, à 19:39
- belga
Re : demarrage d'ubuntu via NTDLR
tiens, ce n'est pas map (hd) (hd2)
???????????
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
#18 Le 16/09/2007, à 20:12
- mihades
Re : demarrage d'ubuntu via NTDLR
si c'est caa en effet
Hors ligne
#19 Le 16/09/2007, à 21:36
- belga
Re : demarrage d'ubuntu via NTDLR
ah ok
je pensais plus rien ne comprendre
Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.
900s entre deux postes: mododoze
Hors ligne
Pages : 1