#1 Le 22/05/2007, à 19:22
- lanael
[Multiboot] bootpart "cannot load from harddisk"
Hello,
Je ne suis pas vraiment un débutant ( je ne suis pas un demi-dieu, mais je faisais déjà du multiboot en '99 ), mais là... je ne comprends pas.
Windows XP installé sur le premier disque IDE.
Je cherche a ajouter Ubuntu ( 7.04 ) au boot.ini
J'ai déjà un FreeBSD 6 qui boot parfaitement sur le deuxième disque.
J'ai donc installé grub sur la partoche qui va bien ( voir ci-dessous ), et un coup de bootpart... mais impossible de booter : Erreur "cannot load from harddisk" crachée par le bootloader de bootpart.
Pas mieux si je positionne le flag "boot" sur cette même partition.
En bootant à partir du Bios (bootmenu), ça démarre le kernel linux, mais celui-ci fait un "kernel panic" : je n'ai plus le message en tête, mais j'imagine que c'est parce que le bios renumérote les disques.
Est-ce que bootpart a un problème avec le bootloader de grub ? Je n'ai vu cette info nulle part, pourtant.
( Même lilo ne veut pas s'installer (erreur "raid config") )
Si quelqu'un a une idée géniale ...
ubuntu@ubuntu:/media$ sudo fdisk -l /dev/hdb
Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 2611 9964 59071005 7 HPFS/NTFS
/dev/hdb2 1 1305 10482381 a5 FreeBSD
/dev/hdb3 2580 2610 249007+ 82 Linux swap / Solaris
/dev/hdb4 * 1306 2579 10233405 83 Linux
Partition table entries are not in disk order
======================================================================
ubuntu@ubuntu:/media/ub$ sudo grub-install hd1,3
Could not find device for /boot: Not found or not a block device.
[note : hum... ]
======================================================================
ubuntu@ubuntu:~$ sudo grub --batch
Probing devices to guess BIOS drives. This may take a long time.
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd1,3)
grub> root (hd1,3)
grub> setup (hd1,3)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1,3)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1,3)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd1,3) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
======================================================================
C:\>bootpart 4 ubuntu.bs "Ubuntu"
Boot Partition 2.60 for WinNT/2K/XP (c)1995-2005 G. Vollant (info@winimage.com)
WEB : http://www.winimage.com and http://www.winimage.com/bootpart.htm
Add partition in the Windows NT/2000/XP Multi-boot loader
Run "bootpart /?" for more information
Physical number of disk 0 : 8f8000b1
0 : C:* type=7 (HPFS/NTFS), size= 40138371 KB, Lba Pos=63
Physical number of disk 1 : 5ce05ce
1 : D: type=7 (HPFS/NTFS), size= 59071005 KB, Lba Pos=41929650
2 : D: type=a5 (BSD/386), size= 10482381 KB, Lba Pos=63
3 : D: type=82 (Linux swap), size= 249007 KB, Lba Pos=41431635
4 : D:* type=83 (Linux native), size= 10233405 KB, Lba Pos=20964825
Physical number of disk 2 : c388dd8e
5 : E: type=7 (HPFS/NTFS), size= 195358401 KB, Lba Pos=63
Physical number of disk 3 : c3bd7fd5
6 : F: type=42 , size= 80035798 KB, Lba Pos=63
Writing a boot sector using LBA position 20964825 (0x13fe5d9)
C:\ubuntu.bs written
C:\BOOT.INI updated
#2 Le 24/05/2007, à 20:07
- lanael
Re : [Multiboot] bootpart "cannot load from harddisk"
[Résolu]
OK, ben ça l'a fait avec grub4dos !
C'était ( c'est toujours ) un problème de numérotation des disques :
Linux ( ubuntu live CD ou booté ) dit que son / est sur /dev/hdb4
mais pour grub, root = (hd2,3 ) !!
gni.
bon, c'est vrai qu'avec tous ces disques PATA et SATA, c'est pas facile pour le pauvre petit BIOS
root@Neuron:/mnt/U/tmp/grub_for_dos-0.4.2# fdisk -l
Disque /dev/sda: 81.9 Go, 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 9964 80035798+ 42 SFS
Disque /dev/sdb: 81.9 Go, 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 1 9964 80035798+ 42 SFS
Ce disque a des nombres magiques à la fois DOS et BSD.
Exécuter la commande 'b' pour passer en mode BSD.
Disque /dev/sdc: 200.0 Go, 200049647616 octets
255 têtes, 63 secteurs/piste, 24321 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 1 24321 195358401 7 HPFS/NTFS
Disque /dev/hda: 41.1 Go, 41110142976 octets
255 têtes, 63 secteurs/piste, 4998 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 4997 40138371 7 HPFS/NTFS
Disque /dev/hdb: 81.9 Go, 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdb1 2611 9964 59071005 7 HPFS/NTFS
/dev/hdb2 1 1305 10482381 a5 FreeBSD
/dev/hdb3 2580 2610 249007+ 82 Linux swap / Solaris
/dev/hdb4 1306 2579 10233405 83 Linux