Multiboot avec un os pas reconnu par grub2

Bonjour tout le monde.

Je viens d’installer Daphile (http://www.daphile.com/) qui est un serveur audio en multiboot sur ma machine. Je l’utilisais en live usb auparavant mais j’avais quelques problèmes de reconnaissance de périphériques.
L’installation s’est bien déroulée mais maintenant il faut que je puisse booter dessus au démarrage parce que grub2 ne me donne pas le choix et je démarre toujours sur Debian.
J’ai tenté un update-grub mais ça ne change rien.
[Edit] J’ai fait un essai avec os-prober aussi mais sans résultat.

J’ai contacté le développeur qui m’a donné des indications, je le cite :
"Then you have to manually configure external boot loader with “chainload” configuration to DaphileBoot partition. DaphileBoot partition has legacy grub installed (probably works only with MSDOS partition tables, GPT might be a problem). "

Je crois comprendre qu’il faut “chainloader” grub2 et Grub Legacy de la partition DaphileBoot. Dans ce cas ne faut-il pas que la partition DaphileBoot soir bootable ?

Quelques indications si ça peut servir :

[code]# parted -l
Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 1075MB 1074MB primary ext4
2 1075MB 3222MB 2147MB primary ext4
3 3222MB 13,6GB 10,4GB primary ext4 boot
4 13,6GB 500GB 487GB extended
7 13,6GB 440GB 426GB logical ntfs
5 440GB 442GB 2303MB logical linux-swap(v1)
6 442GB 500GB 58,3GB logical ext4
[/code]
et

[code]# fdisk -l

Disque /dev/sda : 500.1 Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres, total 976773168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d’E/S (minimale / optimale) : 4096 octets / 4096 octets
Identifiant de disque : 0x0000cf31

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 6293503 2097152 83 Linux
/dev/sda3 * 6293504 26521599 10114048 83 Linux
/dev/sda4 26521600 976773119 475125760 5 Étendue
/dev/sda5 858443776 862941183 2248704 82 partition d’échange Linux / Solaris
/dev/sda6 862943232 976773119 56914944 83 Linux
/dev/sda7 26523648 858441727 415959040 7 HPFS/NTFS/exFAT

Les entrées de la table de partitions ne sont pas dans l’ordre du disque
[/code]

La partittion sda1 c’est DaphileBoot et sda2 c’est DaphileData.

Si quelqu’un peut me dire comment je m’en sors…

A+

bonjour,
c’est sans garantie, je n’ai pas manipulé grub2 depuis…

root@alpha30:/etc/grub.d# ls -l
total 76
-rwxr-xr-x 1 root root  9424 mars  10 17:07 00_header
-rwxr-xr-x 1 root root  6058 mars  31 16:35 05_debian_theme
-rwxr-xr-x 1 root root 11611 juil. 24 13:06 10_linux
-rwxr-xr-x 1 root root 10418 juil. 24 13:06 20_linux_xen
-rwxr-xr-x 1 root root  1570 nov.  13  2011 20_memtest86+
-rwxr-xr-x 1 root root 11692 avril 11 00:48 30_os-prober
-rwxr-xr-x 1 root root  1416 mars  10 17:07 30_uefi-firmware
-rwxr-xr-x 1 root root   214 sept.  5  2011 40_custom
-rwxr-xr-x 1 root root   216 mai    9  2013 41_custom
-rw-r--r-- 1 root root   483 sept.  5  2011 README
root@alpha30:/etc/grub.d# 

je sauvegarde 40_custom
je crée mon point d’entrée dans 40_custom
j’exécute grub-mkconfig
update-grub2

vérifier dans le défilement des os trouvés
A+
JB1
:violin:

Bonjour et merci de ton attention.

Etant donné que c’est “sans garantie” et que je n’ai pas l’habitude de manipuler grub je vais attendre d’avoir d’autres réponses avec “davantage de garantie” :wink:

En attendant j’aimerais savoir ce que c’est que 40_custom et comment on fait un point d’entrée dedans.

Pour ce qui me concerne j’ai ça :

$ ls -l /etc/grub.d/ total 52 -rwxr-xr-x 1 root root 6728 juil. 3 2013 00_header -rwxr-xr-x 1 root root 5407 juil. 3 2013 05_debian_theme -rwxr-xr-x 1 root root 5977 juil. 3 2013 10_linux -rwxr-xr-x 1 root root 6335 juil. 3 2013 20_linux_xen -rwxr-xr-x 1 root root 6522 juil. 3 2013 30_os-prober -rwxr-xr-x 1 root root 214 juil. 3 2013 40_custom -rwxr-xr-x 1 root root 95 juil. 3 2013 41_custom -rw-r--r-- 1 root root 483 juil. 3 2013 README

En dernier recours je demanderai au développeur de Daphile mais à mon avis il a assez de boulot avec son serveur audio pour que je l’ennuie avec ce genre de questions qui relèvent plutôt de l’administration d’un système.

A+

démarre sur debian puis monte la partition de daphile puis os-prober puis update-grub

Après montage de la partition DaphileBoot puis os-prober et update-grub ça ne change rien au redémarrage.

# update-grub Création de grub.cfg… Found background image: /usr/share/images/desktop-base/desktop-grub.png Image Linux trouvée : /boot/vmlinuz-3.14-2-amd64 Image mémoire initiale trouvée : /boot/initrd.img-3.14-2-amd64 Image Linux trouvée : /boot/vmlinuz-3.14-1-amd64 Image mémoire initiale trouvée : /boot/initrd.img-3.14-1-amd64 Image Linux trouvée : /boot/vmlinuz-3.13-1-amd64 Image mémoire initiale trouvée : /boot/initrd.img-3.13-1-amd64 fait

Par contre en montant la partition DaphileBoot dans Debian je peux accéder à son contenu.

# ls -l /media/laguespa/DaphileBoot/ total 32 lrwxrwxrwx 1 root root 1 sept. 4 15:51 boot -> . -rw-r--r-- 1 root root 94 sept. 4 15:51 disk.uuid drwxr-xr-x 2 root root 4096 sept. 4 15:51 fw1407040908 drwxr-xr-x 2 root root 4096 sept. 4 15:51 grub -rw-r--r-- 1 root root 13 sept. 4 15:51 latest drwx------ 2 root root 16384 sept. 4 15:43 lost+found

  • Je précise que la machine sur laquelle je veux faire le multiboot avec Daphile est sous Jessie.

gnu.org/software/grub/manual … 02dloading

[quote] 4.1.2 Chain-loading an OS

Operating systems that do not support Multiboot and do not have specific support in GRUB (specific support is available for Linux, FreeBSD, NetBSD and OpenBSD) must be chain-loaded, which involves loading another boot loader and jumping to it in real mode.

The chainloader command (see chainloader) is used to set this up. It is normally also necessary to load some GRUB modules and set the appropriate root device. Putting this together, we get something like this, for a Windows system on the first partition of the first hard disk:

menuentry "Windows" { insmod chain insmod ntfs set root=(hd0,1) chainloader +1 }

On systems with multiple hard disks, an additional workaround may be required. See DOS/Windows.

Chain-loading is only supported on PC BIOS and EFI platforms. [/quote]

Tu places une nouvelle entrée à la suite* de /etc/grub.d/40_custom puis tu mets grub à jour (# update-grub). Tu t’inspires du modèle en l’adaptant à tes besoins.
Remplacer [mono]menuentry “Windows”[/mono] par [mono]menuentry “Daphile”[/mono],[mono]insmod ntfs[/mono] par[mono]insmod ext2[/mono] .
[mono]set root=(hd0,1)[/mono] : rien à changer, comme le modèle,
(hd0,1=/dev/sda1) premier disque (hd0=/dev/sda), première partition (1).

À la SUITE de l’original , IMPORTANT ne pas effacer ||écraser||remplacer le contenu du fichier.
Modèle original :

[code]
#!/bin/sh
exec tail -n +3 $0

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.[/code]

Ok, merci beaucoup pour votre aide, ça fonctionne mais j’étais pas très rassuré d’aller faire ce genre de modifs.

J’ai donc modifié le fichier /etc/grub.d/40_custom de cette manière après en avoir fait une sauvegarde par précaution bien sûr.

[code]# cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

menuentry “Daphile” {
insmod chain
insmod ext2
set root=(hd0,1)
chainloader +1
}
[/code]

A+