Bug 52 - Windows is not added to grub boot list during installation
Summary: Windows is not added to grub boot list during installation
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
: 268 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-16 14:07 CET by Andres Kaaber
Modified: 2012-04-25 11:23 CEST (History)
7 users (show)

See Also:
Source RPM: drakx-installer-stage2
CVE:
Status comment:


Attachments
working grub with windows 7 (656 bytes, application/octet-stream)
2011-02-18 22:56 CET, Rémy CLOUARD (shikamaru)
Details
/root/drakx/report.bug.gz (97.81 KB, application/x-gzip)
2011-02-25 13:03 CET, Andres Kaaber
Details

Description Andres Kaaber 2011-02-16 14:07:59 CET
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b10) Gecko/20110206 Firefox/4.0b10
Build Identifier: 

Description of problem:
Windows is not added to grub boot list during installation. I have windows 7 and after installation of mageia it is not listed in grub.

Version-Release number of selected component (if applicable):


How reproducible:
Make a clean install to a computer where windows is installed.

Reproducible: 

Steps to Reproduce:
Comment 1 amadeu ferreira 2011-02-17 12:53:00 CET
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b10) Gecko/20110206
> Firefox/4.0b10
> Build Identifier: 
> 
> Description of problem:
> Windows is not added to grub boot list during installation. I have windows 7
> and after installation of mageia it is not listed in grub.
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> Make a clean install to a computer where windows is installed.
> 
> Reproducible: 
> 
> Steps to Reproduce:

nor it adds LMDE either.

How reproducible: make a clean install in sda2 having LMDE in SDA1;
accept Mageia's defaults concerning GRUB; on reboot only Mageia is listed.

CC: (none) => ami6lukas

Comment 2 Rémy CLOUARD (shikamaru) 2011-02-18 22:56:56 CET
Created attachment 9 [details]
working grub with windows 7

it works for me, see attached menu.lst

did you add a mount point for your windows partition ?
mine was automatically set as /media/windows

could you paste your menu.lst and your /etc/fstab ?
Rémy CLOUARD (shikamaru) 2011-02-18 22:57:16 CET

Keywords: (none) => NEEDINFO
CC: (none) => shikamaru

Comment 3 Andres Kaaber 2011-02-18 23:59:55 CET

(In reply to comment #2)
> Created attachment 9 [details]
> working grub with windows 7
> 
> it works for me, see attached menu.lst
> 
> did you add a mount point for your windows partition ?
> mine was automatically set as /media/windows

It was added automatically for me either in fstab but not to menu.lst
> 
> could you paste your menu.lst and your /etc/fstab ?

/boot/grub/menu.lst
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,4)/boot/gfxmenu
default 0

title linux
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=829205ea-d2da-4db6-b8a4-db281b9f5520 resume=UUID=e5e0bb4d-8979-452c-8e77-0aeacbbbdfd4 splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

title linux-nonfb
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=829205ea-d2da-4db6-b8a4-db281b9f5520 resume=UUID=e5e0bb4d-8979-452c-8e77-0aeacbbbdfd4
initrd (hd0,4)/boot/initrd.img

title failsafe
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=829205ea-d2da-4db6-b8a4-db281b9f5520 failsafe
initrd (hd0,4)/boot/initrd.img

title windows
root (hd0,1)
chainloader +1


/etc/fstab

# Entry for /dev/sda5 :
UUID=829205ea-d2da-4db6-b8a4-db281b9f5520 / ext4 acl,noatime 1 1
# Entry for /dev/sda7 :
UUID=e707baf6-9391-4247-b0c0-a2705c68f4c4 /home ext4 acl,noatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sda3 :
UUID=0C8E26C18E26A2E6 /media/windows ntfs-3g defaults,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=e5e0bb4d-8979-452c-8e77-0aeacbbbdfd4 swap swap defaults 0 0

I can remember that the same problem was with Mandriva 2010.1 / 2010.2 also. Only thing that I can think of is that this is a Dell laptop wich has 3 partitions for windows. Windows itself is installed on sda3 but windows is started from sda2 partition. Just a guess
Comment 4 Ahmad Samir 2011-02-24 23:55:59 CET
@Andres, please attach /root/drakx/report.bug.gz from the installed system.

Assignee: ahmadsamir3891 => bugsquad
Source RPM: (none) => grub

Comment 5 Andres Kaaber 2011-02-25 13:03:23 CET
Created attachment 33 [details]
/root/drakx/report.bug.gz
Comment 6 Rémy CLOUARD (shikamaru) 2011-02-26 13:07:41 CET
sorry but in your menu.lst I see

title windows
root (hd0,1)
chainloader +1

so if you choose that entry you should be able to boot windows.
Comment 7 Andres Kaaber 2011-02-26 14:49:56 CET
Yes as I need Windows sometimes I added it manually.
Ahmad Samir 2011-03-04 21:57:28 CET

Keywords: NEEDINFO => Triaged

AL13N 2011-03-07 08:21:40 CET

CC: (none) => maarten.vanraes

Comment 8 AL13N 2011-03-07 08:24:21 CET
had the same issue.

With me, it's one of those laptops with windows preloaded, and it was never started before, but the semi-installation is there.

Also Mandriva 2010.0 had been on it and it wasn't detected either for grub, (except that it was listed as an upgrade possibility)
Comment 9 Thorsten vanLil 2011-03-14 14:19:29 CET
*** Bug 268 has been marked as a duplicate of this bug. ***

CC: (none) => inster.css

Ahmad Samir 2011-03-16 03:04:52 CET

CC: (none) => pterjan

jeanluc CINELLI 2011-04-20 23:32:57 CEST

CC: (none) => enzolyte

Comment 10 Marja Van Waes 2011-09-28 23:00:42 CEST

> 
> I can remember that the same problem was with Mandriva 2010.1 / 2010.2 also.
> Only thing that I can think of is that this is a Dell laptop wich has 3
> partitions for windows. Windows itself is installed on sda3 but windows is
> started from sda2 partition. Just a guess

see https://bugs.mageia.org/show_bug.cgi?id=785, comment 2
That was a duplicate, only the platform was different

Did the problem still exist in Mageia 1 rc (or in 1 official)?

CC: (none) => m.van.waes
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=785
Source RPM: grub => drakx-installer-stage2

Comment 11 Samuel Verschelde 2011-10-01 00:32:06 CEST
Assigning to maintainer now that our maintainer's database has an entry for this package. Please assign back to bugsquad@mageia.org in case of a mistake from me.

Assignee: bugsquad => thierry.vignaud

Comment 12 Marja Van Waes 2011-12-11 21:26:12 CET
@ Assignee
Please confirm this bug was assigned correctly by putting "OK" on the whiteboard or by confirming in a comment
Comment 13 Andres Kaaber 2011-12-12 10:20:33 CET
Ok, but I haven't test it with latest Alpha iso's. Wanted to waint til beta.
Comment 14 Marja Van Waes 2011-12-12 20:56:43 CET
(In reply to comment #13)
> Ok, but I haven't test it with latest Alpha iso's. Wanted to waint til beta.

@ Andres,

Thanks for being willing to test with Mga 2 beta :)

BTW, with "Assignee" I meant the person to whom we assigned this bug to fix it ;)
Comment 15 Pascal Terjan 2011-12-12 21:18:16 CET
* running: blkid -o udev -p /dev/sda1
* blkid gave: vfat 07D9-0C05 DellUtility
* running: blkid -o udev -p /dev/sda2
* blkid gave: ntfs-3g A474239774236B6E RECOVERY
* running: blkid -o udev -p /dev/sda3
* blkid gave: ntfs-3g 0C8E26C18E26A2E6 OS

It seems your sda2 is called RECOVERY, which is why it gets ignored.
Comment 16 AL13N 2011-12-12 21:50:27 CET
huh? you mean it's ignored because it's called 'RECOVERY'? there is such a hardcoded check?
Comment 17 Pascal Terjan 2011-12-12 21:57:54 CET
Yes.

sub isRecovery {
    isFat_or_NTFS($_[0]) && ($_[0]{type_name} =~ /^Hidden/ ||
        member($_[0]{device_LABEL} ,
            # Extracted from /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
            # Hopefuly we'll ask to hal/udev someday
            'RECOVERY', 'PQSERVICE', 'HP_RECOVERY', 'Recovery Partition', 'DellUtility', 'DellRestore', 'IBM_SERVICE', 'SERVICEV001', 'SERVICEV002')
    )
}
Comment 18 AL13N 2011-12-12 22:14:17 CET
lol...

the thing is... what if you bought a laptop which has a windows on it, but you've never initialized it? (like my wife's laptop?)

iirc the windows wasn't on it, that's why i'm following this bug.

so it also means that i can never initialize(you know, choosing language and stuff) that windows?
Comment 19 Marja Van Waes 2012-03-14 20:00:48 CET
Pinging, because nothing has happened with this report for more than 3 months, it still has the status NEW or REOPENED.
Comment 20 Andres Kaaber 2012-04-25 11:23:42 CEST
Fixed

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


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