Bug 15209 - grub2 not see other os
Summary: grub2 not see other os
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: High major
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 22:36 CET by Mészáros Csaba
Modified: 2015-09-22 13:33 CEST (History)
2 users (show)

See Also:
Source RPM: os-prober
CVE:
Status comment:


Attachments
Grub2 not detecting other os (1.66 KB, text/plain)
2015-04-06 03:00 CEST, Jude Ashvin Lobo Shenoy
Details
Grub2 not detecting other os (804.01 KB, image/jpeg)
2015-04-06 15:33 CEST, Jude Ashvin Lobo Shenoy
Details
kcm-grub2 message window (39.91 KB, image/jpeg)
2015-09-21 19:52 CEST, Mészáros Csaba
Details

Description Mészáros Csaba 2015-02-05 22:36:43 CET
Description of problem:


Version-Release number of selected component (if applicable):
os-prober-1.63-2.mga4

How reproducible:

Subsequently installed the grub2 but did not see the other os.
The problem resolved if i wrote the file path to the blkid.
edit os-prober
line 79 
/usr/sbin/blkid | grep btrfs | cut -d ':' -f 1

and 160
type=$(/usr/sbin/blkid -o value -s TYPE $mapped)

maybe the 162 line is, you may want to supplement
uuid=$(blkid -o value -s UUID $mapped)

Reproducible: 

Steps to Reproduce:
Barry Jackson 2015-03-25 01:06:16 CET

CC: (none) => zen25000
Assignee: bugsquad => zen25000

Comment 1 Barry Jackson 2015-03-25 14:36:26 CET
Please test using os-prober-1.65-3.mga5 from Cauldron core/updates_testing.
Thanks.
Comment 2 Jude Ashvin Lobo Shenoy 2015-04-05 18:45:34 CEST
I have the same issue but i have os-prober-1.65-3.mga5 installed. Tried update-grub2. reboot did not yield results. This problem started after i updated Mageia 15 minutes ago. till then i could see my opensuse install on another 500GB drive.

CC: (none) => ashvinlobo

Comment 3 Barry Jackson 2015-04-05 21:08:06 CEST
(In reply to Jude Ashvin  Lobo Shenoy from comment #2)
> I have the same issue but i have os-prober-1.65-3.mga5 installed. Tried
> update-grub2. reboot did not yield results. This problem started after i
> updated Mageia 15 minutes ago. till then i could see my opensuse install on
> another 500GB drive.

Are you using Mga4 or Cauldron?
Could you please _attach_ the output of:
su
fdisk -l
os-prober
 ...and indicate which partition is the root of opensuse.

Thanks
Comment 4 Barry Jackson 2015-04-05 22:13:21 CEST
...and also the output of blkid
Comment 5 Jude Ashvin Lobo Shenoy 2015-04-06 03:00:13 CEST
Created attachment 6190 [details]
Grub2 not detecting other os
Comment 6 Jude Ashvin Lobo Shenoy 2015-04-06 03:01:58 CEST
Have attached the results in the text file. os-prober does not give any output.
my suse installation is on sdb which is a 500gb hdd with btrfs file system.
Comment 7 Barry Jackson 2015-04-06 14:20:51 CEST
Hi - I have managed to reproduce this and now understand where the regression happened.

Could you please install:
http://mtf.no-ip.co.uk/pub/linux/barjac/distrib/cauldron/x86_64/media/extra/release/os-prober-1.65-4.5.mga5.x86_64.rpm

This is a work in progress, as it currently produces an over-long entry for Mageia on btrfs, but let me know if it fixes the missing suse entry.
Please give the output of os-prober as well,
Thanks
Barry Jackson 2015-04-06 14:59:47 CEST

Attachment 6190 mime type: application/octet-stream => text/plain

Comment 8 Jude Ashvin Lobo Shenoy 2015-04-06 15:30:23 CEST
Hi Barry,

Thanks for your link. i nstalled os prober from it and all is well now. Attaching a pic of the grub2 menu and below is what os-prober spits out.....

[ashvin@wolf ~]$ su -
Password: 
[root@wolf ~]# os-prober
/dev/sdb1:openSUSE 13.2 (x86_64):SUSE:linux
[root@wolf ~]# 

Thanks a lot once again and i feel this issue now stands resolved at my end.
Comment 9 Jude Ashvin Lobo Shenoy 2015-04-06 15:33:26 CEST
Created attachment 6200 [details]
Grub2 not detecting other os
Comment 10 Jude Ashvin Lobo Shenoy 2015-04-06 15:38:34 CEST
Hi Barry,

Thanks a lot ofr your assistance by providing me the link to download os prober once again. Installed it and all is well once again. Yes it does produce a over-long entry but not an issue over here at my end.

The results below are from os-prober....
[ashvin@wolf ~]$ su -
Password: 
[root@wolf ~]# os-prober
/dev/sdb1:openSUSE 13.2 (x86_64):SUSE:linux
[root@wolf ~]# 

Seems like this issue stands resolved at my end.
Comment 11 Barry Jackson 2015-04-06 16:06:30 CEST
OK many thanks for your report and for testing - this also affects Cauldron so it's good that you caught it ;)

You can continue using that version until you eventually upgrade to Mga5 when it will update as normal.

Please leave the bug open as I will attend to Cauldron before fixing Mga4.

I have now fixed the over long entries for Mageia (on btrfs) and will push to updates testing.

Priority: Normal => High
Whiteboard: (none) => MGA5TOO
Severity: normal => major

Comment 12 Jude Ashvin Lobo Shenoy 2015-04-06 16:10:25 CEST
Yes i will leave it open. Seems like it just happened to me suddenly but good we got it much earlier before the 5 release. thanks again.
Barry Jackson 2015-06-03 00:01:47 CEST

Whiteboard: MGA5TOO => (none)

Comment 13 Samuel Verschelde 2015-09-21 13:19:08 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 14 Mészáros Csaba 2015-09-21 19:52:13 CEST
Created attachment 7024 [details]
kcm-grub2 message window

Ok. Well, the problem still exists, but I've noticed that only occurs when the KCM-grub2 in a modification.
If you manually change anything in the "/etc/default/grub" file and I send it to the update-grub2 then there is no problem.
I attached a picture.
Mészáros Csaba 2015-09-21 19:54:48 CEST

Version: 4 => 5

Comment 15 Barry Jackson 2015-09-21 23:21:34 CEST
Could you try the following in a terminal:
(use copy/paste to avoid errors) and enter one line at a time, hitting ENTER between lines.

su -
(give root password)
cp /usr/bin/os-prober /usr/bin/os-prober_bak
sed -i 's/blkid/\/usr\/sbin\/blkid/g'  /usr/bin/os-prober
exit

See if it makes any difference.
Comment 16 Mészáros Csaba 2015-09-22 01:22:29 CEST
Ãgy tökéletes! - Perfect!
Bug corrected.

sed -i 's:blkid:/usr/sbin/blkid:g' :) readable, and less typing.
Comment 17 Barry Jackson 2015-09-22 13:08:01 CEST
(In reply to Mészáros Csaba from comment #16)
> Ãgy tökéletes! - Perfect!
> Bug corrected.
> 
> sed -i 's:blkid:/usr/sbin/blkid:g' :) readable, and less typing.

OK great - thanks for reporting I will patch os-prober.

Regarding sed - thanks for the tip :)

Closing this bug as it's resolved for Mga5+ - will fix this last issue (#14) in Cauldron and open a bug for update to Mga5.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 18 Rémi Verschelde 2015-09-22 13:15:07 CEST
(In reply to Barry Jackson from comment #17)
> Closing this bug as it's resolved for Mga5+ - will fix this last issue (#14)
> in Cauldron and open a bug for update to Mga5.

You could use this very bug report to handle the Mageia 5 update, that how we do it usually.
Comment 19 Rémi Verschelde 2015-09-22 13:16:07 CEST
Reopening as it's not fixed in Mageia 5 yet. If you still prefer to use a separate bug report for the Mageia 5 update, then you should change the version tag of this bug to Cauldron when closing it.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 20 Barry Jackson 2015-09-22 13:25:31 CEST
Well it's really another issue, so trying to do the right thing I opened a fresh bug report referring to #14 here, for Mga5

The original bug was fixed before Mga5 release:

r819735 | barjac | 2015-04-06 15:24:24 +0100 (Mon, 06 Apr 2015) | 2 lines

- fixed missing os in menu (SuSE on btrfs) Mga#15209
- fixed over-long menu item for Mageia on btrfs


I can't do right for doing wrong it seems, and really don't have time at the moment, which is why I opened the other bug to remind me later. :\
Comment 21 Rémi Verschelde 2015-09-22 13:33:57 CEST
Alright, I misunderstood then. Indeed comment 14 is a new bug, and it had its place in a new bug report :)

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.