How to recover x86 Solaris 10 u10 boot record/grub menu overwritten by Debian 9?

[LEFT]I installed x86 Solaris 10 update 10 after Windows XP, later I removed xp and installed Debian 9 stretch on the same partition but, Debian couldn't find any other os so it deleted Solaris 10 grub or did something like that I couldn't got.

I thought I would be able to recover the lost record by editing Debian's grub but I failed due to its complicated grub so I reinstalled Solaris grub using installgrub and installgrub was successful but Debian still boots and I can't find Solaris on Debian grub menu neither Solaris boots with its grub though I see the Solaris partition through fdisk from Debian as Debian fdisk shows /dev/sda1 is linux partition and /dev/sda2 is solaris partition.

Now I'm planning to install Slackware with the hope that its lilo would detect Solaris but, I'm not sure.

How can I recover Solaris grub?[/LEFT]