Pages : 1
#1 Le 26/04/2008, à 21:36
- Aoz
Grub dans les choux ?
Bonjour
Je viens d installer kubuntu 8.04 sur une machine contenant 3 disques durs physiques :
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2c41e452
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 19457 105089197+ f W95 Ext'd (LBA)
/dev/sda5 6375 19457 105089166 7 HPFS/NTFS
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x09e609e5
Device Boot Start End Blocks Id System
/dev/sdb1 2 765 6136830 5 Extended
/dev/sdb2 * 766 4865 32933250 7 HPFS/NTFS
/dev/sdb5 2 765 6136798+ 7 HPFS/NTFS
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x440cee30
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 6374 51199123+ 5 Extended
/dev/sdc2 6375 21034 117756450 7 HPFS/NTFS
/dev/sdc3 21035 46530 204796620 7 HPFS/NTFS
/dev/sdc4 46531 60801 114631807+ 7 HPFS/NTFS
/dev/sdc5 1 1912 15358077 83 Linux
/dev/sdc6 1913 2167 2048256 82 Linux swap / Solaris
/dev/sdc7 2168 6374 33792696 83 Linux
Jai un XP installe sur la partition "/dev/sda1" du disque "Disk /dev/sda: 160.0 GB"
Jai installe kubuntu sur la partition "/dev/sdc5" du disque "Disk /dev/sdc: 500.1 GB"
Lors de l installation, j ai choisi de placer grub sur hd0 (choix par defaut). L installation s est apparement bien deroule. Mais au boot de mon ordi, celui-ci demarre sur XP comme avant l installation, comme si grub ne prenait rien en charge (j ai execute le "sudo fdisk -l" via le live CD).
Que faire ? Merci !
Francois
#2 Le 26/04/2008, à 21:43
- Aoz
Re : Grub dans les choux ?
Je précise au cas où ce ne soit pas clair qu'au boot je ne vois pas grub.
XP se charge directement.
Merci !
#3 Le 26/04/2008, à 21:52
- le corsaire noir
Re : Grub dans les choux ?
Donne le retour (avec le live, si tu peux reste connecter avec le live)
sudo grub
find /boot/grub/stage1
As tu bougé l'ordre des disques dans le bios? je suppose que non
#4 Le 26/04/2008, à 22:04
- Aoz
Re : Grub dans les choux ?
sudo grub
find /boot/grub/stage1
--> (hd0,4)
As tu bougé l'ordre des disques dans le bios? je suppose que non
--> Non, je n'ai rien touché dans le bios.
#5 Le 26/04/2008, à 22:10
- le corsaire noir
Re : Grub dans les choux ?
(hd0,4) drôle cela
tape
sudo umount -a
sudo mount /dev/sdc5 /mnt
puis donne les retours de
ls /mnt/boot/
ls /mnt/boot/grub
ls /mnt/boot/grub/device.map
cat /mnt/boot/grub/menu.lst
#6 Le 26/04/2008, à 22:13
- Aoz
Re : Grub dans les choux ?
Ca n'a pas l'air très glorieux
ubuntu@ubuntu:~$ sudo umount -a
umount: /media/Data: périphérique occupé
umount: /tmp: périphérique occupé
umount: /dev: périphérique occupé
umount: /var/run: périphérique occupé
umount: tmpfs: n'a pas été trouvé
umount: /lib/modules/2.6.24-16-generic/volatile: n'est pas monté
ubuntu@ubuntu:~$ sudo mount /dev/sdc5 /mnt
ubuntu@ubuntu:~$ ls /mnt/boot/
ls: ne peut accéder /mnt/boot/: Aucun fichier ou dossier de ce type
ubuntu@ubuntu:~$ ls /mnt/boot/grub
ls: ne peut accéder /mnt/boot/grub: Aucun fichier ou dossier de ce type
ubuntu@ubuntu:~$ ls /mnt/boot/grub/device.map
ls: ne peut accéder /mnt/boot/grub/device.map: Aucun fichier ou dossier de ce type
ubuntu@ubuntu:~$ cat /mnt/boot/grub/menu.lst
cat: /mnt/boot/grub/menu.lst: Aucun fichier ou dossier de ce type
ubuntu@ubuntu:~$
#7 Le 26/04/2008, à 22:23
- le corsaire noir
Re : Grub dans les choux ?
tape
sudo umount -a
sudo mount /dev/sdc5 /mnt
puis donne les retours de
ls /mnt
que donne
sudo nautilus /mnt
#8 Le 26/04/2008, à 22:30
- aoz
Re : Grub dans les choux ?
ubuntu@ubuntu:~$ sudo umount -a
umount: /media/Data: périphérique occupé
umount: /tmp: périphérique occupé
umount: /dev: périphérique occupé
umount: /var/run: périphérique occupé
ubuntu@ubuntu:~$ sudo mount /dev/sdc5 /mnt
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ ls /mnt
2007-02-03_sauveGothic3.rar Documents System Volume Information
2007-10-17_Opera.rar Kinés de France teleir
adresses.txt Photos
desinscrireSfar.txt RECYCLER
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo nautilus /mnt
sudo: nautilus: command not found
ubuntu@ubuntu:~$
"sudo mount /dev/sdc5 /mnt" à l'air de monter la première partition de mon disque de 40Go (/dev/sdb)...
#9 Le 26/04/2008, à 22:36
- le corsaire noir
Re : Grub dans les choux ?
tape
sudo umount -a
sudo mount /dev/sda5 /mnt
puis donne les retours de
ls /mnt/boot/
ls /mnt/boot/grub
ls /mnt/boot/grub/device.map
cat /mnt/boot/grub/menu.lst
donne aussi les retours de
sudo grub
geometry (hd0)
geometry (hd1)
geometry (hd2)
quit
#10 Le 26/04/2008, à 22:42
- aoz
Re : Grub dans les choux ?
Par contre, si je fais :
ubuntu@ubuntu:~$ sudo umount -a
umount: /media/Data: périphérique occupé
umount: /tmp: périphérique occupé
umount: /dev: périphérique occupé
umount: /var/run: périphérique occupé
ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt
ubuntu@ubuntu:~$ ls /mnt
applications coktel IO.SYS RECYCLER
ATI Config.Msi moduleName.txt sound32.dll
AUTOEXEC.BAT CONFIG.SYS MSDOS.SYS System Volume Information
bios2900Pro Documents and Settings NTDETECT.COM téléchargements
Bootfont.bin emacs ntldr [b]WINDOWS[/b]
boot.ini hiberfil.sys Program Files
... je trouve bien ma partition de XP, qui semble être sur "/dev/sdb1" (contrairement à ce qu'affiche le "fdisk -l" qui la met sur "/dev/sda"). Car XP est sur le disque de 160Go...
#11 Le 26/04/2008, à 22:44
- aoz
Re : Grub dans les choux ?
grub> geometry (hd0)
drive 0x80: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sda
Partition num: 1, Filesystem type unknown, partition type 0x7
Partition num: 2, Filesystem type unknown, partition type 0x7
Partition num: 3, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type unknown, partition type 0x82
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
grub> geometry (hd1)
drive 0x81: C/H/S = 19457/255/63, The number of sectors = 312581808, /dev/sdb
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type unknown, partition type 0x7
grub> geometry (hd2)
drive 0x82: C/H/S = 4865/255/63, The number of sectors = 78165360, /dev/sdc
Partition num: 1, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type unknown, partition type 0x7
grub>
#12 Le 26/04/2008, à 22:47
- le corsaire noir
Re : Grub dans les choux ?
Après avoir donné les retours
redémarre, va dans le bios et regrade l'ordre des disques
a priori ton disque xp est premier,
change l'ordre
de façon a avoir
cdrom puis le disque contenant kubuntu
enregistre les changements et redémarre
vois-tu le menu de grub ou une erreur de grub?
#13 Le 26/04/2008, à 22:49
- aoz
Re : Grub dans les choux ?
Pour la première partie :
ubuntu@ubuntu:~$ ls /mnt/boot/
abi-2.6.24-16-generic initrd.img-2.6.24-16-generic.bak
config-2.6.24-16-generic memtest86+.bin
grub System.map-2.6.24-16-generic
initrd.img-2.6.24-16-generic vmlinuz-2.6.24-16-generic
ubuntu@ubuntu:~$ ls /mnt/boot/grub
default fat_stage1_5 menu.lst stage1
device.map installed-version minix_stage1_5 stage2
e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 xfs_stage1_5
ubuntu@ubuntu:~$ ls /mnt/boot/grub/device.map
/mnt/boot/grub/device.map
ubuntu@ubuntu:~$ cat /mnt/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 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=1813e995-ab9e-436b-b117-45096bb94200 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)
## 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 8.04, kernel 2.6.24-16-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=1813e995-ab9e-436b-b117-45096bb94200 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=1813e995-ab9e-436b-b117-45096bb94200 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04, memtest86+
root (hd0,4)
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/sdb1
title Microsoft Windows XP Professionnel
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
ubuntu@ubuntu:~$
#14 Le 26/04/2008, à 22:50
- ilcorsaronero
Re : Grub dans les choux ?
arf
cat /mnt/boot/grub/device.map
#15 Le 26/04/2008, à 22:58
- aoz
Re : Grub dans les choux ?
redémarre, va dans le bios et regrade l'ordre des disques
a priori ton disque xp est premier
en effet...
change l'ordre
de façon a avoir
cdrom puis le disque contenant kubuntu
enregistre les changements et redémarre
vois-tu le menu de grub ou une erreur de grub?
je viens de le faire. Grub apparait endin. Là, je viens de booter XP et cela fonctionne. Je vais maintenant rebooter et tenter de lancer le kubuntu installé sur mon dd.
à tout'...
#16 Le 26/04/2008, à 23:02
- aoz
Re : Grub dans les choux ?
Ca marche. Me voilà sous le kubuntu installé.
Youpi ! Merci beaucoup le corsaire noir.
Pages : 1