Peppermint OS Community Forum

Support => Advanced Topics => Topic started by: murraymint on May 06, 2016, 07:21:37 pm

Title: [SOLVED]manually edit GRUB menu
Post by: murraymint on May 06, 2016, 07:21:37 pm
Hi, I'm trying to dual-boot P6 32-bit with a mini-OS called Daphile that can't be detected by the GRUB OS prober.

First I installed Daphile to the whole 64GB SSD. Then I made room for Peppermint and a swap partition and installed it.

Daphile apparently installed its own GRUB to its boot partition, sda1, at least if I'm reading the manual right.

Peppermint's GRUB is installed to the MBR but it can only boot Peppermint.

The Daphile instructions say to manually add a menu entry to GRUB to chain-load Daphile. The example given is:

Quote
menuentry "Daphile" {
insmod chain
set root=(hd1,3) # 2nd HDD, 3rd partition
chainloader +1
}
on page 9 of https://www.daphile.com/download/DaphileInstallation.pdf

But which file would I edit to include something like that so it appears in the GRUB menu?
Title: Re: manually edit GRUB menu
Post by: AndyInMokum on May 06, 2016, 07:49:27 pm
Hi, I'm trying to dual-boot P6 32-bit with a mini-OS called Daphile that can't be detected by the GRUB OS prober.

First I installed Daphile to the whole 64GB SSD. Then I made room for Peppermint and a swap partition and installed it.

Daphile apparently installed its own GRUB to its boot partition, sda1, at least if I'm reading the manual right.

Peppermint's GRUB is installed to the MBR but it can only boot Peppermint.

The Daphile instructions say to manually add a menu entry to GRUB to chain-load Daphile. The example given is:

Quote
menuentry "Daphile" {
insmod chain
set root=(hd1,3) # 2nd HDD, 3rd partition
chainloader +1
}
on page 9 of https://www.daphile.com/download/DaphileInstallation.pdf

But which file would I edit to include something like that so it appears in the GRUB menu?That sss


Have you tried launching Peppermint and running the following command:
Code: [Select]
sudo update-grub
That should pick up any other GRUB2 installed to partitions, rather than the MBRDaphile should appear in the Peppermint GRUB menu  ;).
Title: Re: manually edit GRUB menu
Post by: Slim.Fatz on May 07, 2016, 01:21:25 am
Hi murraymint,

If AndyInMokum's suggestion does not work then in a terminal do this:

Code: [Select]
gedit /etc/grub.d/40_custom

and add your info at the end of the file. Save it and then in the terminal window run:

Code: [Select]
sudo update-grub

This should give you the entry in your GRUB menu at the next boot.

Regards,

-- Slim
Title: Re: [SOLVED]manually edit GRUB menu
Post by: murraymint on May 07, 2016, 03:47:23 am
Hello, thank you for the suggestions, Andy and Slim. Grub-update on its own couldn't get it and the Peppermint installer hadn't noticed that any OS was already installed. I think it uses legacy GRUB rather than GRUB2.

Slim, your method worked.  ;D Of course I used (hd0,1) as the partition. Now if I hold down Shift at boot I get the grub menu with Daphile at the bottom, and it boots fine. This is a great thing to know for dual-booting those tricky OSes.

Daphile, by the way, is a great little music player OS for DACs (Digital to Analogue Converters). It normally runs headless and very cool.  8) You can control it through the local network either via a web interface or an Android app like Squeezer.