LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-08-2014, 11:44 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
grub-mkconfig sees both installed oses (deb & mint), but lists both as deb part.


I think the issue is with os-prober possibly.

Here's a rough breakdown of what happens:

Code:
~:$ grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found inityd image: /boot/initrd.img-3.2.0-4-amd64
Found Linux Mint 17 Qiana (17_ on /dev/sda8
done
But when I go to look at my grub.cfg, both entries look like this:

Code:
 menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
with the bracket opening to the boot parameters of my debian install. All four entries are of this, no mention of Linux Mint at all.

Furthermore, it doesn't pickup memtest86+ which was installed right along with linux mint. I have no idea why, nor do I know how to fix it.

I would greatly appreciate any and all input possible! Thanks in advance!
 
Old 06-09-2014, 08:36 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Check the /etc/default/grub file to make sure the line below exists so that os-prober will run:

Code:
GRUB_DISABLE_OS_PROBER=false
Then as root user run the following:

Code:
update-grub2
Check the Debian link below:

https://wiki.debian.org/Grub#FAQ
 
Old 06-09-2014, 04:03 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by yancek View Post
Check the /etc/default/grub file to make sure the line below exists so that os-prober will run:

Code:
GRUB_DISABLE_OS_PROBER=false
Then as root user run the following:

Code:
update-grub2
Check the Debian link below:

https://wiki.debian.org/Grub#FAQ
Added that line, ran update-grub2 as root, same result; both sets of entries are still shown as debian with kernel 3.2
 
Old 06-09-2014, 09:00 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You could try googling "bootinfoscript" and going to the site, read the instructions and download and run it and post the output here, a results.txt file. That may provide more information so someone can help.
 
Old 06-10-2014, 01:54 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
can you actually boot into linux mint (keep in mind that mint is debian based, so it might look like debian to os-prober)?

can you run os-prober manually, not writing to grub.cfg, and see what it outputs?

Last edited by ondoho; 06-10-2014 at 01:56 PM.
 
Old 06-11-2014, 04:06 PM   #6
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ondoho View Post
can you actually boot into linux mint (keep in mind that mint is debian based, so it might look like debian to os-prober)?

can you run os-prober manually, not writing to grub.cfg, and see what it outputs?
No, I cannot boot into mint. Ran os-prober manually and it sees "/dev/sda8:Linux Mint 17 Qiana (17):LinuxMint:linux" which seems correct.
 
Old 06-12-2014, 03:59 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
inthat case you can just copy the os-prober output to your /boot/grub/grub.cfg, at least the "menuentry"'s in question.

question is, why is this not happening automatically.
maybe it's disabled in /etc/default/grub?
 
Old 06-12-2014, 10:24 PM   #8
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ondoho View Post
inthat case you can just copy the os-prober output to your /boot/grub/grub.cfg, at least the "menuentry"'s in question.
The problem is it only shows the name of the os, it the boot-options (boot parameters?) still point at my debian install on sda2, and are set up specifically for debian, not mint (which uses ubuntu parameters I believe).
 
Old 06-13-2014, 12:48 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
if you run os-prober without giving it any output file to write to, it writes everything to STDOUT, i.e. your terminal window.
if unclear, post the output here.
 
Old 06-13-2014, 02:13 PM   #10
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
I did. Literally all it saw, or printed, was "/dev/sda8:LinuxMint 17 Qiana (17):LinuxMint:linux". No parameters, nothing other than that single line.
 
Old 06-15-2014, 03:14 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok, sorry for insisting - i wasn't sure if you understood.
that is weird.

you should make sure whether you can boot into mint at all (meaning, whether the issue is with grub and not with a borked install).

can you mount & browse the mint partition?
maybe you can copy the menuentries in question from the grub.cfg there.
or, failing that, collect relevant data and make a manual grub boot (pressing 'e' while in grub menu to edit).

fwiw, in your first post, this bit:
Code:
Found Linux Mint 17 Qiana (17_ on /dev/sda8
looks like sth a shell script might fail over.
maybe the linux mint /etc/issue (or whatever file os-prober probes to get the name of the distro) uses invalid characters?
 
Old 06-15-2014, 09:03 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I did. Literally all it saw, or printed, was "/dev/sda8:LinuxMint 17 Qiana (17):LinuxMint:linux". No parameters, nothing other than that single line.
That is exactly what would be expected from running os-prober. os-prober detects filesystems and does not make any changes to the system or update your grub.cfg file, the update-grub2 or grub-mkconfig do that. I have Mint 17 installed on a partition on my system and when I run os-prober, I get:

Code:
/dev/sda7:Linux Mint 17 Qiana (17):LinuxMint:linux
the only difference as you can see is yours is sda8 and mine sda7. One other difference, mine boots. I would boot Debian, mount the Mint partition and go to the /boot/grub directory and see if you have an entry for Mint there. If you do, copy it to the grub.cfg file on Debian and reboot. If it then boots, copy the Mint entry from /boot/grub/grub.cfg to the /etc/grub.d/40_custom file and run update-grub2 on Debian.

Either something is amiss in the grub files on Mint or your grub-updating on Debian isn't working the way it should.

Last edited by yancek; 06-15-2014 at 09:04 AM.
 
Old 06-15-2014, 04:54 PM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i'm very sorry, everything i wrote about os-prober applies to the script /etc/grub.d/30_os-prober, which is indeed a shellscript and can be executed as such and just spits out all the menuentries. it seems i confused the 2 scripts for being one and the same...

Last edited by ondoho; 06-15-2014 at 04:56 PM.
 
Old 06-16-2014, 08:51 PM   #14
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by yancek View Post
That is exactly what would be expected from running os-prober. os-prober detects filesystems and does not make any changes to the system or update your grub.cfg file, the update-grub2 or grub-mkconfig do that. I have Mint 17 installed on a partition on my system and when I run os-prober, I get:

Code:
/dev/sda7:Linux Mint 17 Qiana (17):LinuxMint:linux
the only difference as you can see is yours is sda8 and mine sda7. One other difference, mine boots. I would boot Debian, mount the Mint partition and go to the /boot/grub directory and see if you have an entry for Mint there. If you do, copy it to the grub.cfg file on Debian and reboot. If it then boots, copy the Mint entry from /boot/grub/grub.cfg to the /etc/grub.d/40_custom file and run update-grub2 on Debian.

Either something is amiss in the grub files on Mint or your grub-updating on Debian isn't working the way it should.

The only problem with that is both Mint and Debian partitions share a /boot partition. I know I could set up a chroot environment (sort of like the "Completely Reinstall" instructions here, but last time I tried that it didn't take for some reason. Edit: By didn't take I mean the grub install completed appropriately, and over-wrote the existing /boot/grub/grub.cfg (used cat to check before exiting), however when I rebooted, the grub install was the same (or maybe that is when, after rebooting from the chroot thing, I found my system unbootable, made a live usb, reconfigured grub externally for mint/deb dual boot, then booted again, and landed us here with still only debian showing.).

Any suggestion for how to go about a chroot env setup to properly reinstall?

Last edited by slacker_; 06-16-2014 at 09:18 PM.
 
Old 06-22-2014, 05:07 AM   #15
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Recently reinstalled debian 7.5 for a separate project, which came with a brand spankin' new grub install (1.99-27). The "update-grub" command sees mint, but does not add it to the menu at all. Not sure where to go here.
 
  


Reply

Tags
debian, debian stable, grub2, linux mint, mint



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deb file not installing in linux mint rng Linux - General 9 11-23-2012 06:46 PM
unpack multiple deb files with dpkg-deb? steve51184 Linux - Software 2 02-13-2011 08:48 AM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
Is "kernel-image-x_i386.deb or i586.deb the right image for P4 processor? davidas Debian 1 04-06-2004 03:50 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration