View previous topic :: View next topic |
Author |
Message |
DeIM Guru
Joined: 11 Apr 2006 Posts: 443
|
Posted: Sun Dec 08, 2013 9:01 am Post subject: [solved] grub legacy to grub2 - windows dualboot |
|
|
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 |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sun Dec 08, 2013 6:44 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
DeIM Guru
Joined: 11 Apr 2006 Posts: 443
|
Posted: Mon Dec 09, 2013 3:45 pm Post subject: |
|
|
You're right. It was easier than I thought. THX |
|
Back to top |
|
|
|