Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] grub legacy to grub2 - windows dualboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 443

PostPosted: Sun Dec 08, 2013 9:01 am    Post subject: [solved] grub legacy to grub2 - windows dualboot Reply with quote

Hi, I wanna change grub legacy to grub2 on my laptop:
Linux on SD card:
Code:
/dev/sdb1      /boot   ext2
/dev/sdb2      /      ext4

Windows on /sda1
In BIOS is set booting from SD card.

Windows lines in grub legacy are:
Code:
title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader +1


I suppose that I have to change /etc/grub.d/40_custom.
My question is - are those lines correct for windows boot?

Code:
menuentry "Windows XP" {
     drivemap -s (hd0) (hd1)
     set root=(hd0,1)
     chainloader +1
     insmod part_msdos
     insmod ntldr
     insmod ntfs
     ntldr (hd0,msdos1)/ntldr
}


Thanks in advance.


Last edited by DeIM on Mon Dec 09, 2013 3:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Dec 08, 2013 6:44 pm    Post subject: Reply with quote

you need to change nothing.... stock grub2 + os prober + ntfs support will auto detect windows and put it in its rightful place. look at the grub2 wiki & grub2 quick start wiki. google them :twisted:
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 443

PostPosted: Mon Dec 09, 2013 3:45 pm    Post subject: Reply with quote

You're right. It was easier than I thought. THX
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum