tompravi
October 19th, 2010, 06:20 PM
I have three installation of Windows :
/dev/sda1 Windows 7
/dev/sda2 Windows 7
/dev/sda3 Windows XP
Before the “new” grub I could boot a Windows partition hiding the other two Win_partitions.
I've searched, I found few solutions and I've created a 40_custom file in /etc/grub.d with the following settings :
#!/bin/sh
echo "Adding 40_custom menu entries." >&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Yiannis" {
insmod chain
insmod ntfs
parttool (hd0,1) hidden-
parttool (hd0,2) hidden+
parttool (hd0,3) hidden+
parttool (hd0,1) boot+
set root='(hd0,1)'
search --no-floppy
chainloader +1
}
menuentry "Alla" {
insmod chain
insmod ntfs
parttool (hd0,2) hidden-
parttool (hd0,1) hidden+
parttool (hd0,3) hidden+
set root='(hd0,2)'
parttool (hd0,2) boot+
search --no-floppy
chainloader +1
}
menuentry "Windows XP" {
insmod chain
insmod ntfs
parttool (hd0,3) hidden-
parttool (hd0,1) hidden+
parttool (hd0,2) hidden+
parttool (hd0,2) boot+
set root= (hd0,3)
search --no-floppy
chainloader +1
}
I try to boot Win on /dev/sda1 – (hd0,1) and I have the following messages :
setting partition type 0x17
setting partition type 0x17
setting partition type 0x17
partition 0 is active now
error : no argument specified
error : no device is set
If I'll remove the entry "search --no-floppy" I have only the second error message ( no device set ).
I've tried searching but I could not find any solution.
/dev/sda1 Windows 7
/dev/sda2 Windows 7
/dev/sda3 Windows XP
Before the “new” grub I could boot a Windows partition hiding the other two Win_partitions.
I've searched, I found few solutions and I've created a 40_custom file in /etc/grub.d with the following settings :
#!/bin/sh
echo "Adding 40_custom menu entries." >&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Yiannis" {
insmod chain
insmod ntfs
parttool (hd0,1) hidden-
parttool (hd0,2) hidden+
parttool (hd0,3) hidden+
parttool (hd0,1) boot+
set root='(hd0,1)'
search --no-floppy
chainloader +1
}
menuentry "Alla" {
insmod chain
insmod ntfs
parttool (hd0,2) hidden-
parttool (hd0,1) hidden+
parttool (hd0,3) hidden+
set root='(hd0,2)'
parttool (hd0,2) boot+
search --no-floppy
chainloader +1
}
menuentry "Windows XP" {
insmod chain
insmod ntfs
parttool (hd0,3) hidden-
parttool (hd0,1) hidden+
parttool (hd0,2) hidden+
parttool (hd0,2) boot+
set root= (hd0,3)
search --no-floppy
chainloader +1
}
I try to boot Win on /dev/sda1 – (hd0,1) and I have the following messages :
setting partition type 0x17
setting partition type 0x17
setting partition type 0x17
partition 0 is active now
error : no argument specified
error : no device is set
If I'll remove the entry "search --no-floppy" I have only the second error message ( no device set ).
I've tried searching but I could not find any solution.